aboutsummaryrefslogtreecommitdiff
path: root/bspwmrc
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-04-02 15:02:21 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-04-02 15:02:21 +0200
commit0fff22af6d22a60c0fbf982f596b9c103bb1c6d3 (patch)
tree6d49f2265ed0da68546736ebbb98a9f9136f0af6 /bspwmrc
parentbe4fdf85c759b8920608ec4ad828a0daefdce767 (diff)
more versatile dual monitor scripts
Diffstat (limited to 'bspwmrc')
-rwxr-xr-xbspwmrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/bspwmrc b/bspwmrc
index d30d18c..c967f66 100755
--- a/bspwmrc
+++ b/bspwmrc
@@ -17,8 +17,7 @@
pgrep -x sxhkd > /dev/null || sxhkd &
-xrandr --output 'DP2' --auto
-xrandr --output 'DP2' --right-of 'eDP1'
+SCR1=$(xrandr -q | grep ' connected' | grep primary | awk '{print $1}')
xss-lock --transfer-sleep-lock -- i3lock-fancy-rapid 1 10 &
@@ -42,7 +41,7 @@ killall -qw dunst; dunst &
killall -qw polybar; ~/.config/polybar/launch.sh &
killall -qw init_monitor.sh; ~/.config/bspwm/init_monitor.sh &
-bspc monitor 'eDP1' -n 1 -d 1 2 3 4 5 6 7 8 9
+bspc monitor "${SCR1}" -n 1 -d 1 2 3 4 5 6 7 8 9
bspc config border_width 0
bspc config window_gap 10