compatibility with megapixels 0.16: power button takes a picture instead of toggling the keyboard, only when megapixels is active
This commit is contained in:
parent
c4caf932ff
commit
e0cff05b0c
1 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,12 @@
|
|||
|
||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/powerbutton" ]; then
|
||||
"$XDG_CONFIG_HOME/sxmo/hooks/powerbutton"
|
||||
else
|
||||
XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")"
|
||||
WMCLASS="${1:-$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3-)}"
|
||||
if echo "$WMCLASS" | grep -i "megapixels"; then
|
||||
xdotool key --clearmodifiers "space"
|
||||
else
|
||||
sxmo_keyboard.sh toggle
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue