From 9189eb97cc15c63bf3bb6e3eac106f64a5804ecd Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Wed, 4 Dec 2024 15:26:33 +0000 Subject: [PATCH] Add smart_borders, use waybar and shorten resize section, add failed attempt count to swaylock --- config | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/config b/config index f890725..21b31c6 100644 --- a/config +++ b/config @@ -10,7 +10,7 @@ set { $term foot $audiomixer $term pulsemixer $screenshot wayshot -s "`slurp`" --file /tmp/out.png - $lock 'swaylock -f -c 000000' + $lock swaylock -f -F -c 000000 $menu bemenu-run \ -p spawn \ --list 30 \ @@ -100,20 +100,14 @@ bindsym { # Resizing containers: # mode "resize" { - # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height - bindsym { - $left resize shrink width 10px - $down resize grow height 10px - $up resize shrink height 10px - $right resize grow width 10px - - # Return to default mode - Return mode "default" - Escape mode "default" - } + bindsym { + $left resize shrink width 40px + $down resize grow height 40px + $up resize shrink height 40px + $right resize grow width 40px + Return mode "default" + Escape mode "default" + } } # @@ -130,7 +124,8 @@ output { # exec swayidle -w \ timeout 300 $lock \ - timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + timeout 600 'swaymsg "output * power off"' \ + resume 'swaymsg "output * power on"' \ before-sleep $lock # @@ -138,9 +133,7 @@ exec swayidle -w \ # bar { position top - status_command while echo "`uname -r` / `cat /proc/loadavg | cut -d' ' -f1-3` / `swaymsg -t get_inputs | jq -r '.[0].xkb_active_layout_name'` / `date +'%a %d/%m %T'`"; do sleep 1; done - # Who the fuck uses trays what the fuck dude - tray_output none + swaybar_command waybar colors { statusline #CC838C @@ -166,6 +159,7 @@ client.unfocused #404040 #000000 #404040 #404040 #404040 # Defaults default_border pixel 2 +smart_borders no_gaps workspace_layout default floating_modifier $mod normal