From 2a8c1edfcaec3d365a7047fc4e96ba35a5f78087 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sun, 10 May 2020 02:44:57 +0200 Subject: [PATCH] many: had this lying around in a stash idk --- config/fish/fish_variables | 1 + config/i3/backlight.fish | 9 ++------- config/i3/icons.py | 7 +++++-- config/i3/volume.fish | 2 +- config/mako/config | 1 + config/sway/config | 6 ++++-- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/config/fish/fish_variables b/config/fish/fish_variables index ab1dfc4..be7647f 100644 --- a/config/fish/fish_variables +++ b/config/fish/fish_variables @@ -2,6 +2,7 @@ # VERSION: 3.0 SETUVAR __fish_init_2_39_8:\x1d SETUVAR __fish_init_2_3_0:\x1d +SETUVAR __fish_initialized:2398 SETUVAR fish_color_autosuggestion:555\x1ebrblack SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_command:\x2d\x2dbold diff --git a/config/i3/backlight.fish b/config/i3/backlight.fish index 8fc82f1..8f7c152 100755 --- a/config/i3/backlight.fish +++ b/config/i3/backlight.fish @@ -1,8 +1,5 @@ #!/usr/bin/fish -if pidof ddcutil - exit 1 -end - +xbacklight $argv[1..-1] set brightness (cat /sys/class/backlight/intel_backlight/brightness) set bar (seq -s "─" 0 (math $brightness / 42) | tr -d '[:digit:]') @@ -11,7 +8,7 @@ set body "$percentage\n $bar" set title ' Helderheid' set file /tmp/notify-brightness.id -set age (find "$file" -cmin -0,025) +set age (find "$file" -cmin -0.025) if [ -n "$age" ] notify-send.sh -r (cat "$file") -t 1500 "$title" "$body" touch "$file" @@ -20,5 +17,3 @@ else echo $id > "$file" chmod 600 "$file" end - -ddcutil setvcp 10 $brightness diff --git a/config/i3/icons.py b/config/i3/icons.py index 8dc2d63..73ea19c 100644 --- a/config/i3/icons.py +++ b/config/i3/icons.py @@ -23,6 +23,8 @@ import re # http://fortawesome.github.io/Font-Awesome/icons/ FA_CHROME = "\uF268" FA_CODE = "\uF121" +FA_CODE_BRANCH = "\uF126" +FA_DISCORD = "\uF392" FA_DOWNLOAD = "\uF019" FA_FILE_PDF_O = "\uF1C1" FA_FILE_TEXT_O = "\uF0F6" @@ -50,10 +52,11 @@ XORG_ICONS = { "chromium": FA_CHROME, "code": FA_CODE, "code-oss": FA_CODE, + "discord": FA_DISCORD, "emacs": FA_CODE, "evince": FA_FILE_PDF_O, "feh": FA_PICTURE_O, - "Firefox": FA_FIREFOX, + "firefox": FA_FIREFOX, "gimp-2.10": FA_PAINT_BRUSH, "gnome-calendar": FA_CALENDAR, "Gnome-terminal": FA_TERMINAL, @@ -66,7 +69,6 @@ XORG_ICONS = { "libreoffice": FA_FILE_TEXT_O, "mupdf": FA_FILE_PDF_O, "nautilus": FA_FOLDER, - "notion-nativefier-102b2f": FA_BOOK, "org.gnome.Nautilus": FA_FOLDER, "pulseeffects": FA_VOLUME_UP, "slic3r-gui": FA_CUBE, @@ -114,6 +116,7 @@ WAYLAND_ICONS = { "Steam": FA_STEAM, "subl": FA_CODE, "subl3": FA_CODE, + "sublime_merge": FA_CODE_BRANCH, "telegramdesktop": FA_TELEGRAM, "termite": FA_TERMINAL, "thunar": FA_FOLDER, diff --git a/config/i3/volume.fish b/config/i3/volume.fish index f23113a..1eeee04 100755 --- a/config/i3/volume.fish +++ b/config/i3/volume.fish @@ -35,7 +35,7 @@ end set title "$icon Volume ($name)" set file /tmp/notify-volume.id -set age (find "$file" -cmin -0,025) +set age (find "$file" -cmin -0.025) if [ -n "$age" ] notify-send.sh -r (cat "$file") -t 1500 "$title" "$body" touch "$file" diff --git a/config/mako/config b/config/mako/config index b6b0dec..00cb9b9 100644 --- a/config/mako/config +++ b/config/mako/config @@ -1,4 +1,5 @@ default-timeout=10000 +layer=overlay background-color=#292B2EFF border-color=#4DB6ACFF diff --git a/config/sway/config b/config/sway/config index 252d967..a361211 100644 --- a/config/sway/config +++ b/config/sway/config @@ -115,7 +115,7 @@ bindsym $mod+e layout toggle split bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows -# bindsym $mod+space focus mode_toggle +bindsym $mod+d focus mode_toggle # focus the parent container 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="^qemu$"] 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 ## class border backgr. text indic. child_border @@ -259,6 +259,7 @@ bindsym $mod+r mode "resize" # finds out, if available) bar { status_command i3status + icon_theme suru colors { # Light theme #background #fafafa @@ -302,6 +303,7 @@ input "2:10:TPPS/2_IBM_TrackPoint" { input type:keyboard { xkb_options caps:backspace,compose:ralt + xkb_layout us } exec --no-startup-id source /etc/profile