Add move workspace keybinds

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-08 20:52:13 +02:00
parent 4c06875f89
commit 36aa1f8005

View file

@ -22,9 +22,6 @@ bindsym $mod+Shift+r reload
# open link from clipboard in default application # open link from clipboard in default application
bindsym $mod+Shift+o exec mimeo "$(wl-paste)" bindsym $mod+Shift+o exec mimeo "$(wl-paste)"
# flash the current window
bindsym $mod+n exec flash_window
# turn on and off internal screen # turn on and off internal screen
bindsym --locked XF86Search output eDP-1 enable bindsym --locked XF86Search output eDP-1 enable
bindsym --locked Shift+XF86Search output eDP-1 disable bindsym --locked Shift+XF86Search output eDP-1 disable
@ -42,32 +39,28 @@ bindsym $mod+Backspace exec makoctl invoke
bindsym Control+Escape exec makoctl dismiss bindsym Control+Escape exec makoctl dismiss
# activate lockscreen # activate lockscreen
bindsym Control+Shift+l exec loginctl lock-session bindsym Control+Shift+Backspace exec loginctl lock-session
# Move your focus around # Move your focus around
bindsym $mod+h focus left bindsym $mod+h focus left
bindsym $mod+j focus down bindsym $mod+j focus down
bindsym $mod+k focus up bindsym $mod+k focus up
bindsym $mod+l focus right bindsym $mod+l focus 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 focused window
# _move_ the focused window with the same, but add Shift
bindsym $mod+Shift+h move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right bindsym $mod+Shift+l move right
# 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
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# Layout stuff:
# Split direction # Split direction
bindsym $mod+y splith bindsym $mod+y splith
bindsym $mod+x splitv bindsym $mod+x splitv
@ -132,16 +125,20 @@ bindsym --locked XF86AudioStop exec playerctl stop
bindsym --locked Ctrl+Alt+s exec playerctl stop bindsym --locked Ctrl+Alt+s exec playerctl stop
# rotate screen # rotate screen
bindsym $mod+Control+Right output eDP-1 transform 90 bindsym $mod+m+Right output eDP-1 transform 90
bindsym $mod+Control+Up output eDP-1 transform 0 bindsym $mod+m+Up output eDP-1 transform 0
bindsym $mod+Control+Down output eDP-1 transform 180 bindsym $mod+m+Down output eDP-1 transform 180
bindsym $mod+Control+Left output eDP-1 transform 270 bindsym $mod+m+Left output eDP-1 transform 270
bindsym $mod+m+h output eDP-1 transform 270
bindsym $mod+m+j output eDP-1 transform 180
bindsym $mod+m+l output eDP-1 transform 90
bindsym $mod+m+k output eDP-1 transform 0
# display brightness # display brightness
bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
# switch to urgent workspace # Switch to urgent workspace
bindsym $mod+u [urgent=latest] focus bindsym $mod+u [urgent=latest] focus
# Switch to workspace # Switch to workspace
@ -168,6 +165,16 @@ bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10 bindsym $mod+Shift+0 move container to workspace 10
# Move workspace to monitor in direction
bindsym Control+Shift+h move workspace to output left
bindsym Control+Shift+j move workspace to output down
bindsym Control+Shift+k move workspace to output up
bindsym Control+Shift+l move workspace to output right
bindsym Control+Shift+Left move workspace to output left
bindsym Control+Shift+Down move workspace to output down
bindsym Control+Shift+Up move workspace to output up
bindsym Control+Shift+Right move workspace to output right
# Take a screenshot to clipboard # Take a screenshot to clipboard
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy -t image/png bindsym Print exec grim -g "$(slurp -d)" - | wl-copy -t image/png