From 6e3d2f12b249fded40251508ff71794cde3ee6f8 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 10 Feb 2022 11:16:22 +0100 Subject: update configs --- .config/qtile/autorc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '.config/qtile/autorc') 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 @@ #!/bin/bash -function off_monitor_if_hdmi_plugged_in() { +function monitor_settings() { + sleep .5 monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) if [ $monitor_status == 1 ]; then - xrandr --auto - xrandr --output eDP-1 --off + # xrandr --auto + # xrandr --output eDP-1 --off + xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1 fi } @@ -18,9 +20,8 @@ function start() { $($1 $2) & } -off_monitor_if_hdmi_plugged_in +start nitrogen "--restore" +monitor_settings caps_to_esc start picom "-b -D 4 --vsync" -start nitrogen "--restore" -start run_spotifyd -- cgit v1.2.3