Shortcut to disable laptop display

This commit is contained in:
M1dgard 2018-04-25 12:15:45 +02:00
parent 15dbd7a545
commit 794d0039d7
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 8 additions and 1 deletions

View file

@ -90,7 +90,8 @@ set $filemanager thunar
bindsym XF86MyComputer exec $filemanager
# 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
View 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'