mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-01 16:56:38 +02:00
- Added support for Manjaro Gnome and KDE for xkeysnail
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
#!/bin/bash
|
||||
# >/dev/null 2>&1
|
||||
/usr/local/bin/xkeysnail --quiet --watch "$1" &
|
||||
|
||||
if [ -f /usr/local/bin/xkeysnail ];then
|
||||
xkeyfullpath="/usr/local/bin/xkeysnail"
|
||||
elif [ -f /usr/bin/xkeysnail ];then
|
||||
xkeyfullpath="/usr/bin/xkeysnail"
|
||||
else
|
||||
xkeyfullpath=`which xkeysnail`
|
||||
fi
|
||||
|
||||
"$xkeyfullpath" --quiet --watch "$1" &
|
||||
|
||||
inotifywait -m -e close_write,moved_to,create,modify /tmp/kinto/xkeysnail |
|
||||
|
||||
while read -r path; do
|
||||
/usr/bin/killall xkeysnail
|
||||
/usr/local/bin/xkeysnail --quiet --watch "$1" &
|
||||
"$xkeyfullpath" --quiet --watch "$1" &
|
||||
done
|
Reference in New Issue
Block a user