add keybindings to automatically setup screens with xrandr in i3
This commit is contained in:
parent
0ba0025692
commit
d91d0a8a53
1 changed files with 13 additions and 0 deletions
|
@ -170,6 +170,19 @@ mode "resize" {
|
|||
|
||||
bindsym Mod4+r mode "resize"
|
||||
|
||||
|
||||
# Screen display
|
||||
set $mode_display Display (b) Bureau, (s) single
|
||||
mode "$mode_display" {
|
||||
bindsym b exec xrandr --output DP2-1 --auto --right-of eDP1 --output DP1-2 --auto --right-of DP2-1
|
||||
bindsym s exec xrandr --output DP2-1 --off --output DP1-2 --off
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym Mod4+F8 mode "$mode_display"
|
||||
|
||||
## Media keys
|
||||
# volume control
|
||||
bindsym XF86AudioLowerVolume exec /usr/bin/pactl set-sink-volume @DEFAULT_SINK@ '-5%'
|
||||
|
|
Loading…
Add table
Reference in a new issue