dotfiles/.config/sway/config.d/09-controls.conf

95 lines
4.0 KiB
Plaintext

# sway # controls
# Basics:
# Kill focused window
bindsym $mod+Shift+q kill
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
floating_modifier $mod normal
# Edit configuration files
bindsym $mod+Shift+c exec "$term lf -command cd $HOME/.config/sway/"
# Reload the configuration file
bindsym $mod+Shift+r reload
# Moving around:
# Move your focus around vim like
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $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
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# window switcher Alt+Tab
bindsym $mod+Tab exec "$HOME/.config/sway/scripts/window-switcher"
# Workspaces: for french keyboard, see ~/.config/sway/fr
# switch to workspace
bindsym $mad+ampersand workspace $ws1
bindsym $mad+eacute workspace $ws2
bindsym $mad+quotedbl workspace $ws3
bindsym $mad+apostrophe workspace $ws4
bindsym $mad+parenleft workspace $ws5
bindsym $mad+minus workspace $ws6
bindsym $mad+egrave workspace $ws7
bindsym $mad+underscore workspace $ws8
bindsym $mad+ccedilla workspace $ws9
bindsym $mad+agrave workspace $ws10
bindsym $mad+parenright workspace $ws11
bindsym $mad+equal workspace $ws12
# move focused container to workspace
bindsym $mad+Shift+ampersand move container to workspace $ws1
bindsym $mad+Shift+eacute move container to workspace $ws2
bindsym $mad+Shift+quotedbl move container to workspace $ws3
bindsym $mad+Shift+apostrophe move container to workspace $ws4
bindsym $mad+Shift+parenleft move container to workspace $ws5
bindsym $mad+Shift+minus move container to workspace $ws6
bindsym $mad+Shift+egrave move container to workspace $ws7
bindsym $mad+Shift+underscore move container to workspace $ws8
bindsym $mad+Shift+ccedilla move container to workspace $ws9
bindsym $mad+Shift+agrave move container to workspace $ws10
bindsym $mad+Shift+parenright move container to workspace $ws11
bindsym $mad+Shift+equal move container to workspace $ws12
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
# change workspaces
bindsym $mod+Ctrl+Right workspace next
bindsym Mod4+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
bindsym Mod4+Left workspace prev
#
# Layout stuff:
# You can "split" the current object of your focus
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
# Exit sway (logs you out of your Wayland session)
#bindsym $mod+Shift+e exec swaynag --background 4c566a --border d8dee9 --border-bottom d8dee9 --button-background 81a1c1 --text d8dee9 --button-text 2e3440 --border-bottom-size 1 --button-border-size 1 -m 'You pressed the exit shortcut...' -B ' shutdown!' 'systemctl poweroff' -B ' lockscreen' 'swaylock' -B ' exit sway' 'swaymsg exit'
bindsym $mod+Shift+e exec "nakedquit"