From 794d0039d7ba3853a8ab532fdd4187c4c669789e Mon Sep 17 00:00:00 2001 From: M1dgard Date: Wed, 25 Apr 2018 12:15:45 +0200 Subject: [PATCH] Shortcut to disable laptop display --- i3/config | 3 ++- i3/enable-only-hdmi.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 i3/enable-only-hdmi.sh diff --git a/i3/config b/i3/config index 3c697e2..28b65d7 100644 --- a/i3/config +++ b/i3/config @@ -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 ############################# diff --git a/i3/enable-only-hdmi.sh b/i3/enable-only-hdmi.sh new file mode 100755 index 0000000..0798a56 --- /dev/null +++ b/i3/enable-only-hdmi.sh @@ -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'