Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- a=0
- dbus-monitor --session "type='signal',interface='org.freedesktop.ScreenSaver'" | \
- ( while true
- do read X
- if echo $X | grep "boolean false" &> /dev/null; then
- if [ "$a" -eq 0 ]
- then
- xinput --map-to-output 'Advanced Silicon S.A CoolTouch(TM) System' HDMI2
- if ! pgrep -x "touchegg" > /dev/null
- then
- touchegg %U
- fi
- a=1
- fi
- fi
- done )
Advertisement
Add Comment
Please, Sign In to add comment