sway: use Super modifier instead of Alt
this allows applications to use the Alt key
This commit is contained in:
parent
41aa13621d
commit
8bd7fa8a3f
|
@ -22,6 +22,9 @@ let
|
|||
snip-cmd = "${wtype} $(${list-snips} | ${fuzzel} -d -i -w 60 | ${strip-comments})";
|
||||
# TODO: next splatmoji release should allow `-s none` to disable skin tones
|
||||
emoji-cmd = "${pkgs.splatmoji}/bin/splatmoji -s medium-light type";
|
||||
|
||||
# mod = "Mod1"; # Alt
|
||||
mod = "Mod4"; # Super
|
||||
in ''
|
||||
### default font
|
||||
font pango:monospace 8
|
||||
|
@ -48,66 +51,66 @@ in ''
|
|||
client.background #ffffff
|
||||
|
||||
### key bindings
|
||||
floating_modifier Mod1
|
||||
floating_modifier ${mod}
|
||||
## media keys
|
||||
bindsym XF86AudioRaiseVolume exec ${vol-up-cmd}
|
||||
bindsym XF86AudioLowerVolume exec ${vol-down-cmd}
|
||||
bindsym Mod1+Page_Up exec ${vol-up-cmd}
|
||||
bindsym Mod1+Page_Down exec ${vol-down-cmd}
|
||||
bindsym ${mod}+Page_Up exec ${vol-up-cmd}
|
||||
bindsym ${mod}+Page_Down exec ${vol-down-cmd}
|
||||
bindsym XF86AudioMute exec ${mute-cmd}
|
||||
bindsym XF86MonBrightnessUp exec ${brightness-up-cmd}
|
||||
bindsym XF86MonBrightnessDown exec ${brightness-down-cmd}
|
||||
## special functions
|
||||
bindsym Mod1+Print exec ${screenshot-cmd}
|
||||
bindsym Mod1+l exec ${lock-cmd}
|
||||
bindsym Mod1+s exec ${snip-cmd}
|
||||
bindsym Mod1+slash exec ${emoji-cmd}
|
||||
bindsym Mod1+d exec ${launcher-cmd}
|
||||
bindsym Mod1+Return exec ${terminal-cmd}
|
||||
bindsym Mod1+Shift+q kill
|
||||
bindsym Mod1+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
bindsym Mod1+Shift+c reload
|
||||
bindsym ${mod}+Print exec ${screenshot-cmd}
|
||||
bindsym ${mod}+l exec ${lock-cmd}
|
||||
bindsym ${mod}+s exec ${snip-cmd}
|
||||
bindsym ${mod}+slash exec ${emoji-cmd}
|
||||
bindsym ${mod}+d exec ${launcher-cmd}
|
||||
bindsym ${mod}+Return exec ${terminal-cmd}
|
||||
bindsym ${mod}+Shift+q kill
|
||||
bindsym ${mod}+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
bindsym ${mod}+Shift+c reload
|
||||
## layout
|
||||
bindsym Mod1+b splith
|
||||
bindsym Mod1+v splitv
|
||||
bindsym Mod1+f fullscreen toggle
|
||||
bindsym Mod1+a focus parent
|
||||
bindsym Mod1+w layout tabbed
|
||||
bindsym Mod1+e layout toggle split
|
||||
bindsym Mod1+Shift+space floating toggle
|
||||
bindsym Mod1+space focus mode_toggle
|
||||
bindsym Mod1+r mode resize
|
||||
bindsym ${mod}+b splith
|
||||
bindsym ${mod}+v splitv
|
||||
bindsym ${mod}+f fullscreen toggle
|
||||
bindsym ${mod}+a focus parent
|
||||
bindsym ${mod}+w layout tabbed
|
||||
bindsym ${mod}+e layout toggle split
|
||||
bindsym ${mod}+Shift+space floating toggle
|
||||
bindsym ${mod}+space focus mode_toggle
|
||||
bindsym ${mod}+r mode resize
|
||||
## movement
|
||||
bindsym Mod1+Up focus up
|
||||
bindsym Mod1+Down focus down
|
||||
bindsym Mod1+Left focus left
|
||||
bindsym Mod1+Right focus right
|
||||
bindsym Mod1+Shift+Up move up
|
||||
bindsym Mod1+Shift+Down move down
|
||||
bindsym Mod1+Shift+Left move left
|
||||
bindsym Mod1+Shift+Right move right
|
||||
bindsym ${mod}+Up focus up
|
||||
bindsym ${mod}+Down focus down
|
||||
bindsym ${mod}+Left focus left
|
||||
bindsym ${mod}+Right focus right
|
||||
bindsym ${mod}+Shift+Up move up
|
||||
bindsym ${mod}+Shift+Down move down
|
||||
bindsym ${mod}+Shift+Left move left
|
||||
bindsym ${mod}+Shift+Right move right
|
||||
## workspaces
|
||||
bindsym Mod1+1 workspace number 1
|
||||
bindsym Mod1+2 workspace number 2
|
||||
bindsym Mod1+3 workspace number 3
|
||||
bindsym Mod1+4 workspace number 4
|
||||
bindsym Mod1+5 workspace number 5
|
||||
bindsym Mod1+6 workspace number 6
|
||||
bindsym Mod1+7 workspace number 7
|
||||
bindsym Mod1+8 workspace number 8
|
||||
bindsym Mod1+9 workspace number 9
|
||||
bindsym Mod1+Shift+1 move container to workspace number 1
|
||||
bindsym Mod1+Shift+2 move container to workspace number 2
|
||||
bindsym Mod1+Shift+3 move container to workspace number 3
|
||||
bindsym Mod1+Shift+4 move container to workspace number 4
|
||||
bindsym Mod1+Shift+5 move container to workspace number 5
|
||||
bindsym Mod1+Shift+6 move container to workspace number 6
|
||||
bindsym Mod1+Shift+7 move container to workspace number 7
|
||||
bindsym Mod1+Shift+8 move container to workspace number 8
|
||||
bindsym Mod1+Shift+9 move container to workspace number 9
|
||||
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}+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+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
|
||||
bindsym ${mod}+Shift+9 move container to workspace number 9
|
||||
## "scratchpad" = ??
|
||||
bindsym Mod1+Shift+minus move scratchpad
|
||||
bindsym Mod1+minus scratchpad show
|
||||
bindsym ${mod}+Shift+minus move scratchpad
|
||||
bindsym ${mod}+minus scratchpad show
|
||||
|
||||
### defaults
|
||||
mode "resize" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user