1
0
Fork 0

update `sway` config

urosm 2023-12-26 10:23:28 +01:00
parent 7fc77cda11
commit 7e707bf880
1 changed files with 43 additions and 32 deletions

View File

@ -23,7 +23,7 @@ bindsym $mod+home exec nmcli -g "type,name,active" connection show \
| sh \
| xargs -tI{} notify-send "{}"
bindsym $mod+shift+home exec footclient nmtui
bindsym $mod+o exec find -not -path "*/.*" \
bindsym $mod+o exec find -L -not -path "*/.*" \
| fuzzel -d \
| xargs -I{} xdg-open "{}"
bindsym $mod+shift+o exec find -L -type d \
@ -51,32 +51,41 @@ bindsym $mod+shift+$up move up
bindsym $mod+shift+$down move down
bindsym $mod+shift+$left move left
bindsym $mod+shift+$right move right
# workspace
set $ws0 0:cal
set $ws1 1:www
set $ws2 2:txt
set $ws3 3:doc
set $ws4 4:pdf
set $ws5 5:cmd
set $ws6 6:cmd
set $ws7 7:cmd
set $ws8 8:cmd
set $ws9 9:rdp
# switch to workspace
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+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym $mod+next workspace next
bindsym $mod+prior workspace prev
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
bindsym $mod+tab workspace next
bindsym $mod+shift+tab workspace prev
# move focused to workspace
bindsym $mod+shift+1 move container to workspace number 1, workspace number 1
bindsym $mod+shift+2 move container to workspace number 2, workspace number 2
bindsym $mod+shift+3 move container to workspace number 3, workspace number 3
bindsym $mod+shift+4 move container to workspace number 4, workspace number 4
bindsym $mod+shift+5 move container to workspace number 5, workspace number 5
bindsym $mod+shift+6 move container to workspace number 6, workspace number 6
bindsym $mod+shift+7 move container to workspace number 7, workspace number 7
bindsym $mod+shift+8 move container to workspace number 8, workspace number 8
bindsym $mod+shift+9 move container to workspace number 9, workspace number 9
bindsym $mod+shift+0 move container to workspace number 10, workspace number 10
bindsym $mod+shift+next move container to workspace next, workspace next
bindsym $mod+shift+prior move container to workspace prev, workspace prev
bindsym $mod+shift+1 move container to workspace $ws1, workspace $ws1
bindsym $mod+shift+2 move container to workspace $ws2, workspace $ws2
bindsym $mod+shift+3 move container to workspace $ws3, workspace $ws3
bindsym $mod+shift+4 move container to workspace $ws4, workspace $ws4
bindsym $mod+shift+5 move container to workspace $ws5, workspace $ws5
bindsym $mod+shift+6 move container to workspace $ws6, workspace $ws6
bindsym $mod+shift+7 move container to workspace $ws7, workspace $ws7
bindsym $mod+shift+8 move container to workspace $ws8, workspace $ws8
bindsym $mod+shift+9 move container to workspace $ws9, workspace $ws9
bindsym $mod+shift+0 move container to workspace $ws0, workspace $ws0
# resize
bindsym $mod+control+$left resize shrink width
bindsym $mod+control+$down resize grow height
@ -124,10 +133,10 @@ mode $mark_mode {
bindsym c mark --toggle c, mode default
bindsym backspace unmark, mode default
# return
bindsym escape mode "default"
bindsym $mod+escape mode "default"
bindsym escape mode default
bindsym $mod+escape mode default
}
bindsym $mod+m mode $mark_mode
bindsym $mod+shift+m mode $mark_mode
# tab mode #####################################################################
set $tab_mode "tab [abc]"
@ -136,10 +145,10 @@ mode $tab_mode {
bindsym b [con_mark="b"] focus, mode default
bindsym c [con_mark="c"] focus, mode default
# return
bindsym escape mode "default"
bindsym $mod+escape mode "default"
bindsym escape mode default
bindsym $mod+escape mode default
}
bindsym $mod+tab mode $tab_mode
bindsym $mod+m mode $tab_mode
# session mode #################################################################
set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend re(b)oot (p)oweroff"
@ -209,7 +218,9 @@ xwayland disable
exec swayidle
exec wlsunset -l 45 -L 15
exec mako
exec foot --server
workspace $ws0, exec thunderbird
workspace $ws1, exec firefox
workspace $ws2, exec foot --server
# include ######################################################################
include ~/.config/sway/`hostname`