From 0483131b62c6270f27e661ebcbc5a17edb8ba040 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 22 Dec 2018 17:02:37 -0500 Subject: [PATCH] bspwm: Run xeventbind in the background if found This makes it so that the X DPI and other components are automatically changed on resolution change. --- bspwm/.config/bspwm/bspwmrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 52d7f6d8..66ecdcf4 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -51,6 +51,10 @@ compton -b # Start polybar and other things based on DPI ~/.config/xeventbind/on-resolution-change.sh +if hash xeventbind 2>/dev/null; then + xeventbind resolution $HOME/.config/xeventbind/on-resolution-change.sh & +fi + # bspc rules bspc rule -a mpv state=floating bspc rule -a feh state=floating