signal compton to reinitialize on screen resolution change
parent
1c3662f24a
commit
4954b169f1
|
|
@ -76,7 +76,7 @@ rm -f $SIGNAL2 2>/dev/null
|
||||||
|
|
||||||
# gen screen resolutions to fluxbox menu
|
# gen screen resolutions to fluxbox menu
|
||||||
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \
|
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \
|
||||||
| sed -r "s:(.*):[exec] (\\1) {xrandr -s \\1}:" > ~/.fluxbox/menu_resolution
|
| sed -r "s:(.*):[exec] (\\1) {xrandr -s \\1; killall -SIGUSR1 compton}:" > ~/.fluxbox/menu_resolution
|
||||||
|
|
||||||
# In all cases, wait for the sound sleeper.
|
# In all cases, wait for the sound sleeper.
|
||||||
# If startup took longer (sound completed already), no extra wait
|
# If startup took longer (sound completed already), no extra wait
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue