summaryrefslogtreecommitdiffstats
path: root/.config/qtile/autorc
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-02-10 11:16:22 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2022-02-10 11:16:22 +0100
commit6e3d2f12b249fded40251508ff71794cde3ee6f8 (patch)
treec03be7d6cb3c2a678dc4b1ac40e8b9c6d88bd9b3 /.config/qtile/autorc
parent9e95cdd5853c847e71024a789f2547a526202148 (diff)
downloaddotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.tar.gz
dotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.zip
update configs
Diffstat (limited to '.config/qtile/autorc')
-rwxr-xr-x.config/qtile/autorc13
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
3function off_monitor_if_hdmi_plugged_in() { 3function 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
21off_monitor_if_hdmi_plugged_in 23start nitrogen "--restore"
24monitor_settings
22caps_to_esc 25caps_to_esc
23 26
24start picom "-b -D 4 --vsync" 27start picom "-b -D 4 --vsync"
25start nitrogen "--restore"
26start run_spotifyd