Shortcut to disable laptop display
This commit is contained in:
parent
15dbd7a545
commit
794d0039d7
2 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,8 @@ set $filemanager thunar
|
||||||
bindsym XF86MyComputer exec $filemanager
|
bindsym XF86MyComputer exec $filemanager
|
||||||
|
|
||||||
# change display layout
|
# change display layout
|
||||||
bindsym XF86Display exec arandr
|
bindsym $mod+XF86Display exec arandr
|
||||||
|
bindsym XF86Display exec --no-startup-id $HOME/.config/i3/enable-only-hdmi.sh
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
|
|
6
i3/enable-only-hdmi.sh
Executable file
6
i3/enable-only-hdmi.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xrandr --output HDMI-1 --auto &&
|
||||||
|
xrandr --output eDP-1 --off &&
|
||||||
|
$(dirname "$0")/../polybar/launch.sh &&
|
||||||
|
i3-msg 'workspace 1'
|
Loading…
Reference in a new issue