use xrandr --mode, support for primary monitor only
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
SIGNAL=~/.fehbg
|
||||
rm -f $SIGNAL
|
||||
|
||||
OUTPUT=$(xrandr 2>/dev/null | grep 'connected' | cut -d " " -f 1)
|
||||
MODE=$1
|
||||
|
||||
xrandr --output $OUTPUT --mode $MODE
|
||||
|
||||
while [ -e $SIGNAL ]; do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
killall -SIGUSR1 compton
|
||||
Reference in New Issue
Block a user