logo

dotfiles

My dotfiles, one branch per machine, rebased on base git clone https://hacktivis.me/git/dotfiles.git
commit: 5f5fbea5e2e99b2e226e0462d895a9f77881df3a
parent 7fb18547884b18766155f892ff135cd15d304a88
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 21 Mar 2021 21:37:21 +0100

sway: Pass --to-code to all key-based bindsym commands

Diffstat:

M.config/sway/config104++++++++++++++++++++++++++++++++++++++++----------------------------------------
1 file changed, 52 insertions(+), 52 deletions(-)

diff --git a/.config/sway/config b/.config/sway/config @@ -18,33 +18,33 @@ exec swayidle -w \ # Keybindings # Based on XMonad -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 -bindsym $mod+Shift+1 move window to workspace 1 -bindsym $mod+Shift+2 move window to workspace 2 -bindsym $mod+Shift+3 move window to workspace 3 -bindsym $mod+Shift+4 move window to workspace 4 -bindsym $mod+Shift+5 move window to workspace 5 -bindsym $mod+Shift+6 move window to workspace 6 -bindsym $mod+Shift+7 move window to workspace 7 -bindsym $mod+Shift+8 move window to workspace 8 -bindsym $mod+Shift+9 move window to workspace 9 -bindsym $mod+Shift+0 move window to workspace 10 - -bindsym $mod+q reload -bindsym $mod+Shift+q exit -bindsym $mod+w focus output left -bindsym $mod+Shift+w move window to output left -bindsym $mod+e focus output right -bindsym $mod+Shift+e move window to output right +bindsym --to-code $mod+1 workspace 1 +bindsym --to-code $mod+2 workspace 2 +bindsym --to-code $mod+3 workspace 3 +bindsym --to-code $mod+4 workspace 4 +bindsym --to-code $mod+5 workspace 5 +bindsym --to-code $mod+6 workspace 6 +bindsym --to-code $mod+7 workspace 7 +bindsym --to-code $mod+8 workspace 8 +bindsym --to-code $mod+9 workspace 9 +bindsym --to-code $mod+0 workspace 10 +bindsym --to-code $mod+Shift+1 move window to workspace 1 +bindsym --to-code $mod+Shift+2 move window to workspace 2 +bindsym --to-code $mod+Shift+3 move window to workspace 3 +bindsym --to-code $mod+Shift+4 move window to workspace 4 +bindsym --to-code $mod+Shift+5 move window to workspace 5 +bindsym --to-code $mod+Shift+6 move window to workspace 6 +bindsym --to-code $mod+Shift+7 move window to workspace 7 +bindsym --to-code $mod+Shift+8 move window to workspace 8 +bindsym --to-code $mod+Shift+9 move window to workspace 9 +bindsym --to-code $mod+Shift+0 move window to workspace 10 + +bindsym --to-code $mod+q reload +bindsym --to-code $mod+Shift+q exit +bindsym --to-code $mod+w focus output left +bindsym --to-code $mod+Shift+w move window to output left +bindsym --to-code $mod+e focus output right +bindsym --to-code $mod+Shift+e move window to output right input "2:10:TPPS/2_Elan_TrackPoint" { scroll_factor 2 @@ -64,11 +64,11 @@ input "1149:4130:Kensington_USB_Orbit" { # Fucks with games input * dwt disabled -bindsym $mod+Shift+p exec exec passmenu -bindsym $mod+p exec $menu +bindsym --to-code $mod+Shift+p exec exec passmenu +bindsym --to-code $mod+p exec $menu bindsym $mod+Return exec $term -bindsym $mod+Shift+c kill +bindsym --to-code $mod+Shift+c kill bindsym $mod+space layout toggle all bindsym $mod+Shift+space layout stacking @@ -77,20 +77,20 @@ floating_modifier $mod normal tiling_drag enable # Move your focus around -bindsym $mod+$left focus left -bindsym $mod+$down focus down -bindsym $mod+$up focus up -bindsym $mod+$right focus right +bindsym --to-code $mod+$left focus left +bindsym --to-code $mod+$down focus down +bindsym --to-code $mod+$up focus up +bindsym --to-code $mod+$right focus right # _move_ the focused window with the same, but add Shift -bindsym $mod+Shift+$left move left -bindsym $mod+Shift+$down move down -bindsym $mod+Shift+$up move up -bindsym $mod+Shift+$right move right - -bindsym $mod+f fullscreen -bindsym $mod+s layout stacking -bindsym $mod+a focus parent +bindsym --to-code $mod+Shift+$left move left +bindsym --to-code $mod+Shift+$down move down +bindsym --to-code $mod+Shift+$up move up +bindsym --to-code $mod+Shift+$right move right + +bindsym --to-code $mod+f fullscreen +bindsym --to-code $mod+s layout stacking +bindsym --to-code $mod+a focus parent # # Scratchpad: # @@ -102,10 +102,10 @@ bindsym $mod+a focus parent # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. - bindsym $mod+minus scratchpad show + bindsym --to-code $mod+minus scratchpad show -bindsym $mod+t floating disable -bindsym $mod+Shift+t floating enable +bindsym --to-code $mod+t floating disable +bindsym --to-code $mod+Shift+t floating enable # # Resizing containers: @@ -115,10 +115,10 @@ mode "resize" { # right will grow the containers width # up will shrink the containers height # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px + bindsym --to-code $left resize shrink width 10px + bindsym --to-code $down resize grow height 10px + bindsym --to-code $up resize shrink height 10px + bindsym --to-code $right resize grow width 10px # ditto, with arrow keys bindsym Left resize shrink width 10px @@ -130,7 +130,7 @@ mode "resize" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+r mode "resize" +bindsym --to-code $mod+r mode "resize" bar { swaybar_command waybar @@ -160,8 +160,8 @@ bindsym Print exec 'slurp | grim -g - /tmp/screen.png' exec_always swaymsg 'output * bg "'${MY_WALLPAPER}'" "'${MY_WALLPAPER_MODE}'"' -#bindsym $mod+b bar hidden_state toggle -bindsym $mod+b exec killall -SIGUSR1 waybar +#bindsym --to-code $mod+b bar hidden_state toggle +bindsym --to-code $mod+b exec killall -SIGUSR1 waybar bindsym XF86AudioMute exec amixer set Master playback toggle bindsym XF86AudioRaiseVolume exec amixer set Master playback 1%+