mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
xss-lock: do not trigger a XRandR event
I need to fix that later...
This commit is contained in:
parent
c7365a8886
commit
dfb7cb555e
1 changed files with 4 additions and 4 deletions
|
@ -25,10 +25,10 @@ case "$1" in
|
|||
trap "systemctl --user kill -s CONT redshift@${display}.service" EXIT
|
||||
trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity
|
||||
trap 'echo notify: locker started; kill %% 2> /dev/null; exit 0' TERM # locker started
|
||||
outputs=($(xrandr --current | sed -n 's/\([^ ]*\) connected .*/\1/p'))
|
||||
for out in ${outputs[@]}; do
|
||||
xrandr --output $out --brightness 0.2
|
||||
done
|
||||
# outputs=($(xrandr --current | sed -n 's/\([^ ]*\) connected .*/\1/p'))
|
||||
# for out in ${outputs[@]}; do
|
||||
# xrandr --output $out --brightness 0.2
|
||||
# done
|
||||
sleep infinity &
|
||||
wait
|
||||
echo "notify: end"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue