diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index d91e1fc..5246706 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -5,7 +5,6 @@ # Read `man 5 sway` for a complete reference. ### Variables -# # Logo key. Use Mod1 for Alt. set $mod Mod4 # Home row direction keys, like vim @@ -13,28 +12,26 @@ set $left h set $down j set $up k set $right l -# Your preferred terminal emulator -set $term footclient -t xterm - -# Lockscreen -set $lock swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2 -exec swayidle timeout 570 'swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' - -#exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' +# Your preferred terminal emulator +set $term footclient -t xterm /usr/bin/fish # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. #set $menu dmenu_path | dmenu | xargs swaymsg exec -- - -set $menu SHELL=/bin/sh wofi -G -I -t footclient -M fuzzy -O alphabetical | xargs swaymsg exec -- #set $menu SHELL=/bin/sh j4-dmenu-desktop --dmenu 'wofi -d -G -I' | xargs swaymsg exec -- +set $menu SHELL=/bin/sh wofi -G -I -t footclient -O alphabetical | xargs swaymsg exec -- + +# Lockscreen +set $lock swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2 + + include /etc/sway/config-vars.d/* ### Output configuration -# +# You can get the names of your outputs by running: swaymsg -t get_outputs # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output * bg /usr/local/share/backgrounds/night-landscape.jpg fill # @@ -57,9 +54,6 @@ bindsym $mod+Shift+o gaps outer current minus 5 bindsym $mod+i gaps inner current plus 5 bindsym $mod+Shift+i gaps inner current minus 5 -# -# You can get the names of your outputs by running: swaymsg -t get_outputs - ### Idle configuration # # Example configuration: @@ -73,6 +67,8 @@ bindsym $mod+Shift+i gaps inner current minus 5 # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. +exec swayidle timeout 570 'swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' + ### Input configuration # # Example configuration: @@ -154,7 +150,7 @@ bindsym $mod+1 workspace number 1: bindsym $mod+2 workspace number 2:爵 bindsym $mod+3 workspace number 3: bindsym $mod+4 workspace number 4: -bindsym $mod+5 workspace number 5: +bindsym $mod+5 workspace number 5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 @@ -165,7 +161,7 @@ bindsym $mod+Shift+1 move container to workspace number 1: bindsym $mod+Shift+2 move container to workspace number 2:爵 bindsym $mod+Shift+3 move container to workspace number 3: bindsym $mod+Shift+4 move container to workspace number 4: -bindsym $mod+Shift+5 move container to workspace number 5: +bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 @@ -304,13 +300,13 @@ exec --no-startup-id nextcloud exec --no-startup-id foot -s exec --no-startup-id /usr/lib/x86_64-linux-gnu/ukui-polkit/polkit-ukui-authentication-agent-1 # Manual autostart graphical -exec foot +exec foot /usr/bin/fish for_window [class="foot"] move to workspace 1: exec qutebrowser for_window [class="qutebrowser"] move to workspace 2:爵 -exec foot --title ncspotterm ncspot +exec foot --title ncspotterm /usr/bin/fish -c ncspot for_window [title="ncspotterm"] move to workspace 3: -exec foot --title neomutt neomutt +exec foot --title neomutt /usr/bin/fish -c neomutt for_window [title="neomutt"] move to workspace 4: # Autostart from autostart stuff here