mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-15 07:09:14 +02:00
- Resolved inotify support for browsers
This commit is contained in:
@@ -12,5 +12,5 @@ if systemctl -q --user is-enabled keyswap; then
|
||||
fi
|
||||
|
||||
# export DISPLAY={displayid};/usr/bin/xhost +SI:localuser:root
|
||||
mkdir -p /tmp/kinto
|
||||
cp /home/{username}/.config/kinto/kinto.py /tmp/kinto/kinto.py
|
||||
mkdir -p /tmp/kinto/xkeysnail
|
||||
cp /home/{username}/.config/kinto/kinto.py /tmp/kinto/xkeysnail/kinto.py
|
@@ -5,8 +5,8 @@ Description=xkeysnail
|
||||
Type=simple
|
||||
KillMode=process
|
||||
ExecStartPre=/bin/bash -c "{xhost} +SI:localuser:root && /sbin/runuser -l {username} -c /home/{username}/.config/kinto/prexk.sh"
|
||||
ExecStart=/usr/bin/sudo /bin/bash -c '{experimental-caret}/home/{username}/.config/kinto/xkeystart.sh /tmp/kinto/kinto.py'
|
||||
ExecStop=/bin/bash -c 'me=$$;ps -ef | grep \'[t]mp/kinto/kinto.py\' | awk -v me=$me \'$2 != me {print $2}\' | xargs kill;/usr/bin/killall xkeysnail;{kill-caret}'
|
||||
ExecStart=/usr/bin/sudo /bin/bash -c '{experimental-caret}/home/{username}/.config/kinto/xkeystart.sh /tmp/kinto/xkeysnail/kinto.py'
|
||||
ExecStop=/bin/bash -c 'me=$$;ps -ef | grep \'[t]mp/kinto/kinto.py\' | awk -v me=$me \'$2 != me {print $2}\' | xargs kill;/usr/bin/killall dbus-monitor;/usr/bin/killall xkeysnail;{kill-caret}'
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
Environment=DISPLAY={displayid}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# >/dev/null 2>&1
|
||||
/usr/local/bin/xkeysnail --quiet --watch "$1" &
|
||||
|
||||
inotifywait -m -e close_write,moved_to,create -q "$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" &
|
||||
|
Reference in New Issue
Block a user