sway: update from upstream
This commit is contained in:
parent
b43db19a3c
commit
27e47fda4c
1 changed files with 14 additions and 15 deletions
29
sway/config
29
sway/config
|
@ -17,7 +17,7 @@ set $right l
|
||||||
set $term termite
|
set $term termite
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: it's recommended that you pass the final command to sway
|
# Note: it's recommended that you pass the final command to sway
|
||||||
#set $menu dmenu_path | dmenu | xargs swaymsg exec
|
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||||
set $menu termite --name=launcher -e ~/.config/sway/sway-launcher
|
set $menu termite --name=launcher -e ~/.config/sway/sway-launcher
|
||||||
for_window [app_id="^launcher$"] floating enable, border none
|
for_window [app_id="^launcher$"] floating enable, border none
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ output * bg /home/cgirard/Images/wallpaper.jpg fit
|
||||||
#
|
#
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
|
@ -83,13 +82,13 @@ input * {
|
||||||
#
|
#
|
||||||
# Basics:
|
# Basics:
|
||||||
#
|
#
|
||||||
# start a terminal
|
# Start a terminal
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
|
|
||||||
# kill focused window
|
# Kill focused window
|
||||||
bindsym $mod+Shift+c kill
|
bindsym $mod+Shift+c kill
|
||||||
|
|
||||||
# start your launcher
|
# Start your launcher
|
||||||
bindsym $mod+p exec $menu
|
bindsym $mod+p exec $menu
|
||||||
bindsym $mod+Shift+w exec "swaylock -f -c 000000"
|
bindsym $mod+Shift+w exec "swaylock -f -c 000000"
|
||||||
|
|
||||||
|
@ -100,10 +99,10 @@ input * {
|
||||||
# mouse button for dragging.
|
# mouse button for dragging.
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
|
||||||
# reload the configuration file
|
# Reload the configuration file
|
||||||
bindsym $mod+q reload
|
bindsym $mod+q reload
|
||||||
|
|
||||||
# exit sway (logs you out of your Wayland session)
|
# Exit sway (logs you out of your Wayland session)
|
||||||
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+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'
|
||||||
#
|
#
|
||||||
# Moving around:
|
# Moving around:
|
||||||
|
@ -113,18 +112,18 @@ input * {
|
||||||
bindsym $mod+$down focus down
|
bindsym $mod+$down focus down
|
||||||
bindsym $mod+$up focus up
|
bindsym $mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
bindsym $mod+$right focus right
|
||||||
# or use $mod+[up|down|left|right]
|
# Or use $mod+[up|down|left|right]
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
bindsym $mod+Down focus down
|
bindsym $mod+Down focus down
|
||||||
bindsym $mod+Up focus up
|
bindsym $mod+Up focus up
|
||||||
bindsym $mod+Right focus right
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
# _move_ the focused window with the same, but add Shift
|
# Move the focused window with the same, but add Shift
|
||||||
bindsym $mod+Shift+$left move left
|
bindsym $mod+Shift+$left move left
|
||||||
bindsym $mod+Shift+$down move down
|
bindsym $mod+Shift+$down move down
|
||||||
bindsym $mod+Shift+$up move up
|
bindsym $mod+Shift+$up move up
|
||||||
bindsym $mod+Shift+$right move right
|
bindsym $mod+Shift+$right move right
|
||||||
# ditto, with arrow keys
|
# Ditto, with arrow keys
|
||||||
bindsym $mod+Shift+Left move left
|
bindsym $mod+Shift+Left move left
|
||||||
bindsym $mod+Shift+Down move down
|
bindsym $mod+Shift+Down move down
|
||||||
bindsym $mod+Shift+Up move up
|
bindsym $mod+Shift+Up move up
|
||||||
|
@ -132,7 +131,7 @@ input * {
|
||||||
#
|
#
|
||||||
# Workspaces:
|
# Workspaces:
|
||||||
#
|
#
|
||||||
# switch to workspace
|
# Switch to workspace
|
||||||
bindsym $mod+ampersand workspace 1
|
bindsym $mod+ampersand workspace 1
|
||||||
bindsym $mod+eacute workspace 2
|
bindsym $mod+eacute workspace 2
|
||||||
bindsym $mod+quotedbl workspace 3
|
bindsym $mod+quotedbl workspace 3
|
||||||
|
@ -143,7 +142,7 @@ input * {
|
||||||
bindsym $mod+underscore workspace 8
|
bindsym $mod+underscore workspace 8
|
||||||
bindsym $mod+ccedilla workspace 9
|
bindsym $mod+ccedilla workspace 9
|
||||||
bindsym $mod+agrave workspace 10
|
bindsym $mod+agrave workspace 10
|
||||||
# move focused container to workspace
|
# Move focused container to workspace
|
||||||
bindsym $mod+Shift+ampersand move container to workspace 1
|
bindsym $mod+Shift+ampersand move container to workspace 1
|
||||||
bindsym $mod+Shift+eacute move container to workspace 2
|
bindsym $mod+Shift+eacute move container to workspace 2
|
||||||
bindsym $mod+Shift+quotedbl move container to workspace 3
|
bindsym $mod+Shift+quotedbl move container to workspace 3
|
||||||
|
@ -179,7 +178,7 @@ input * {
|
||||||
# Swap focus between the tiling area and the floating area
|
# Swap focus between the tiling area and the floating area
|
||||||
bindsym $mod+space focus mode_toggle
|
bindsym $mod+space focus mode_toggle
|
||||||
|
|
||||||
# move focus to the parent container
|
# Move focus to the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
#
|
#
|
||||||
# Scratchpad:
|
# Scratchpad:
|
||||||
|
@ -206,13 +205,13 @@ mode "resize" {
|
||||||
bindsym $up resize shrink height 10px
|
bindsym $up resize shrink height 10px
|
||||||
bindsym $right resize grow width 10px
|
bindsym $right resize grow width 10px
|
||||||
|
|
||||||
# ditto, with arrow keys
|
# Ditto, with arrow keys
|
||||||
bindsym Left resize shrink width 10px
|
bindsym Left resize shrink width 10px
|
||||||
bindsym Down resize grow height 10px
|
bindsym Down resize grow height 10px
|
||||||
bindsym Up resize shrink height 10px
|
bindsym Up resize shrink height 10px
|
||||||
bindsym Right resize grow width 10px
|
bindsym Right resize grow width 10px
|
||||||
|
|
||||||
# return to default mode
|
# Return to default mode
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue