diff options
Diffstat (limited to '.config/qtile/autorc')
-rwxr-xr-x | .config/qtile/autorc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.config/qtile/autorc b/.config/qtile/autorc index 14969c9..e195665 100755 --- a/.config/qtile/autorc +++ b/.config/qtile/autorc | |||
@@ -1,12 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | function off_monitor_if_hdmi_plugged_in() { | 3 | function monitor_settings() { |
4 | sleep .5 | ||
4 | monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) | 5 | monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) |
5 | 6 | ||
6 | if [ $monitor_status == 1 ]; | 7 | if [ $monitor_status == 1 ]; |
7 | then | 8 | then |
8 | xrandr --auto | 9 | # xrandr --auto |
9 | xrandr --output eDP-1 --off | 10 | # xrandr --output eDP-1 --off |
11 | xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1 | ||
10 | fi | 12 | fi |
11 | } | 13 | } |
12 | 14 | ||
@@ -18,9 +20,8 @@ function start() { | |||
18 | $($1 $2) & | 20 | $($1 $2) & |
19 | } | 21 | } |
20 | 22 | ||
21 | off_monitor_if_hdmi_plugged_in | 23 | start nitrogen "--restore" |
24 | monitor_settings | ||
22 | caps_to_esc | 25 | caps_to_esc |
23 | 26 | ||
24 | start picom "-b -D 4 --vsync" | 27 | start picom "-b -D 4 --vsync" |
25 | start nitrogen "--restore" | ||
26 | start run_spotifyd | ||