many: had this lying around in a stash idk

This commit is contained in:
Sijmen 2020-05-10 02:44:57 +02:00
parent e19c5849ef
commit 2a8c1edfca
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48
6 changed files with 14 additions and 12 deletions

View file

@ -2,6 +2,7 @@
# VERSION: 3.0 # VERSION: 3.0
SETUVAR __fish_init_2_39_8:\x1d SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_initialized:2398
SETUVAR fish_color_autosuggestion:555\x1ebrblack SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:\x2d\x2dbold SETUVAR fish_color_command:\x2d\x2dbold

View file

@ -1,8 +1,5 @@
#!/usr/bin/fish #!/usr/bin/fish
if pidof ddcutil xbacklight $argv[1..-1]
exit 1
end
set brightness (cat /sys/class/backlight/intel_backlight/brightness) set brightness (cat /sys/class/backlight/intel_backlight/brightness)
set bar (seq -s "─" 0 (math $brightness / 42) | tr -d '[:digit:]') set bar (seq -s "─" 0 (math $brightness / 42) | tr -d '[:digit:]')
@ -11,7 +8,7 @@ set body "$percentage\n $bar"
set title ' Helderheid' set title ' Helderheid'
set file /tmp/notify-brightness.id set file /tmp/notify-brightness.id
set age (find "$file" -cmin -0,025) set age (find "$file" -cmin -0.025)
if [ -n "$age" ] if [ -n "$age" ]
notify-send.sh -r (cat "$file") -t 1500 "$title" "$body" notify-send.sh -r (cat "$file") -t 1500 "$title" "$body"
touch "$file" touch "$file"
@ -20,5 +17,3 @@ else
echo $id > "$file" echo $id > "$file"
chmod 600 "$file" chmod 600 "$file"
end end
ddcutil setvcp 10 $brightness

View file

@ -23,6 +23,8 @@ import re
# http://fortawesome.github.io/Font-Awesome/icons/ # http://fortawesome.github.io/Font-Awesome/icons/
FA_CHROME = "\uF268" FA_CHROME = "\uF268"
FA_CODE = "\uF121" FA_CODE = "\uF121"
FA_CODE_BRANCH = "\uF126"
FA_DISCORD = "\uF392"
FA_DOWNLOAD = "\uF019" FA_DOWNLOAD = "\uF019"
FA_FILE_PDF_O = "\uF1C1" FA_FILE_PDF_O = "\uF1C1"
FA_FILE_TEXT_O = "\uF0F6" FA_FILE_TEXT_O = "\uF0F6"
@ -50,10 +52,11 @@ XORG_ICONS = {
"chromium": FA_CHROME, "chromium": FA_CHROME,
"code": FA_CODE, "code": FA_CODE,
"code-oss": FA_CODE, "code-oss": FA_CODE,
"discord": FA_DISCORD,
"emacs": FA_CODE, "emacs": FA_CODE,
"evince": FA_FILE_PDF_O, "evince": FA_FILE_PDF_O,
"feh": FA_PICTURE_O, "feh": FA_PICTURE_O,
"Firefox": FA_FIREFOX, "firefox": FA_FIREFOX,
"gimp-2.10": FA_PAINT_BRUSH, "gimp-2.10": FA_PAINT_BRUSH,
"gnome-calendar": FA_CALENDAR, "gnome-calendar": FA_CALENDAR,
"Gnome-terminal": FA_TERMINAL, "Gnome-terminal": FA_TERMINAL,
@ -66,7 +69,6 @@ XORG_ICONS = {
"libreoffice": FA_FILE_TEXT_O, "libreoffice": FA_FILE_TEXT_O,
"mupdf": FA_FILE_PDF_O, "mupdf": FA_FILE_PDF_O,
"nautilus": FA_FOLDER, "nautilus": FA_FOLDER,
"notion-nativefier-102b2f": FA_BOOK,
"org.gnome.Nautilus": FA_FOLDER, "org.gnome.Nautilus": FA_FOLDER,
"pulseeffects": FA_VOLUME_UP, "pulseeffects": FA_VOLUME_UP,
"slic3r-gui": FA_CUBE, "slic3r-gui": FA_CUBE,
@ -114,6 +116,7 @@ WAYLAND_ICONS = {
"Steam": FA_STEAM, "Steam": FA_STEAM,
"subl": FA_CODE, "subl": FA_CODE,
"subl3": FA_CODE, "subl3": FA_CODE,
"sublime_merge": FA_CODE_BRANCH,
"telegramdesktop": FA_TELEGRAM, "telegramdesktop": FA_TELEGRAM,
"termite": FA_TERMINAL, "termite": FA_TERMINAL,
"thunar": FA_FOLDER, "thunar": FA_FOLDER,

View file

@ -35,7 +35,7 @@ end
set title "$icon Volume ($name)" set title "$icon Volume ($name)"
set file /tmp/notify-volume.id set file /tmp/notify-volume.id
set age (find "$file" -cmin -0,025) set age (find "$file" -cmin -0.025)
if [ -n "$age" ] if [ -n "$age" ]
notify-send.sh -r (cat "$file") -t 1500 "$title" "$body" notify-send.sh -r (cat "$file") -t 1500 "$title" "$body"
touch "$file" touch "$file"

View file

@ -1,4 +1,5 @@
default-timeout=10000 default-timeout=10000
layer=overlay
background-color=#292B2EFF background-color=#292B2EFF
border-color=#4DB6ACFF border-color=#4DB6ACFF

View file

@ -115,7 +115,7 @@ bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
# bindsym $mod+space focus mode_toggle bindsym $mod+d focus mode_toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
@ -218,7 +218,7 @@ for_window [class="^jetbrains-toolbox$"] floating enable
for_window [app_id="^gnome-calculator$"] floating enable for_window [app_id="^gnome-calculator$"] floating enable
for_window [app_id="^qemu$"] floating enable for_window [app_id="^qemu$"] floating enable
for_window [class="^jetbrains-" title="^win0$"] floating enable for_window [class="^jetbrains-" title="^win0$"] floating enable
for_window [app_id="^thunar$" title="^Voortgang van bestandbewerking$"] floating enable for_window [title="^Select Folder$"] floating enable
# Light theme # Light theme
## class border backgr. text indic. child_border ## class border backgr. text indic. child_border
@ -259,6 +259,7 @@ bindsym $mod+r mode "resize"
# finds out, if available) # finds out, if available)
bar { bar {
status_command i3status status_command i3status
icon_theme suru
colors { colors {
# Light theme # Light theme
#background #fafafa #background #fafafa
@ -302,6 +303,7 @@ input "2:10:TPPS/2_IBM_TrackPoint" {
input type:keyboard { input type:keyboard {
xkb_options caps:backspace,compose:ralt xkb_options caps:backspace,compose:ralt
xkb_layout us
} }
exec --no-startup-id source /etc/profile exec --no-startup-id source /etc/profile