sway: add bindings for switching monitors
This commit is contained in:
parent
2cc4c63118
commit
8db7d784f4
|
@ -17,6 +17,10 @@ set $right right
|
||||||
#set $term xfce4-terminal
|
#set $term xfce4-terminal
|
||||||
set $term foot
|
set $term foot
|
||||||
set $files thunar
|
set $files thunar
|
||||||
|
# Monitor names
|
||||||
|
set $MON0 "eDP-1"
|
||||||
|
set $MON1 "HDMI-A-1"
|
||||||
|
|
||||||
# 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 --
|
||||||
|
@ -105,6 +109,10 @@ hide_edge_borders both
|
||||||
# Reload the configuration file
|
# Reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|
||||||
|
# Switch monitors
|
||||||
|
bindsym $mod+m output $MON0 disable ; output $MON1 enable
|
||||||
|
bindsym $mod+Shift+m output $MON1 disable ; output $MON0 enable
|
||||||
|
|
||||||
# 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'
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue