mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Disable experimental features on non-dev or alpha branches.
This commit is contained in:
@@ -78,14 +78,21 @@ if [ $# -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 == "chromebook" ]]; then
|
if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 == "chromebook" ]]; then
|
||||||
while true; do
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
read -rep $'\nExperimental Support for Firefox/Chrome Back/Forward hotkeys (Cmd+Left/Right)?\n(Keys could get stuck, switch windows or press ctrl &/or super to release) (y/n)\n' yn
|
if [ "$branch" == "dev" ] || [ "$branch" == "alpha" ];then
|
||||||
case $yn in
|
while true; do
|
||||||
[Yy]* ) exp='/sbin/runuser -l {username} -c "export DISPLAY={displayid};/home/{username}/.config/kinto/caret_status_xkey.sh\&";'; expsh='"/home/{username}/.config/kinto/caret_status_xkey.sh"'; break;;
|
read -rep $'\nExperimental Support for Firefox/Chrome Back/Forward hotkeys (Cmd+Left/Right)?\n(Keys could get stuck, switch windows or press ctrl &/or super to release) (y/n)\n' yn
|
||||||
[Nn]* ) exp=" "; expsh=" " break;;
|
case $yn in
|
||||||
# * ) echo "Please answer yes or no.";;
|
[Yy]* ) exp='/sbin/runuser -l {username} -c "export DISPLAY={displayid};/home/{username}/.config/kinto/caret_status_xkey.sh\&";'; expsh='"/home/{username}/.config/kinto/caret_status_xkey.sh"'; break;;
|
||||||
esac
|
[Nn]* ) exp=" "; expsh=" " break;;
|
||||||
done
|
# * ) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo -e "\nSupport for Firefox/Chrome Back/Forward hotkeys (Cmd+Left/Right) disabled on $branch w/ xkeysnail \n"
|
||||||
|
exp=" "
|
||||||
|
expsh=" "
|
||||||
|
fi
|
||||||
sudo systemctl enable xkeysnail >/dev/null 2>&1
|
sudo systemctl enable xkeysnail >/dev/null 2>&1
|
||||||
if ! [ -x "$(command -v inotifywait)" ]; then
|
if ! [ -x "$(command -v inotifywait)" ]; then
|
||||||
echo "Will need to install inotify-tools to restart key remapper live for config file changes..."
|
echo "Will need to install inotify-tools to restart key remapper live for config file changes..."
|
||||||
|
Reference in New Issue
Block a user