Compare commits

...

2 Commits

Author SHA1 Message Date
Ben Reaves
b37a6000ee - Updated copy on gui folder for FreeBSD to copy correctly 2021-01-02 19:55:34 -05:00
Ben Reaves
52d2cac4f7 - Updated dename to detect helloSystem and FreeBSD DEs 2021-01-02 19:38:34 -05:00
8 changed files with 47 additions and 11 deletions

View File

@@ -1,4 +1,36 @@
#!/bin/bash #!/usr/bin/env bash
unamestr=$(uname)
if [ "$unamestr" = 'FreeBSD' ]; then
DESKTOP="unknown"
ps -aux | grep -E '[s]tart-hello'
if [ $? -ne 1 ];then
echo "hellosystem"
exit 0
fi
ps -aux | grep -E '[o]penbox'
if [ $? -ne 1 ];then
echo "openbox"
exit 0
fi
ps -aux | grep -E '[m]ate-panel'
if [ $? -ne 1 ];then
echo "mate"
exit 0
fi
ps -aux | grep -E '[x]fce4-session'
if [ $? -ne 1 ];then
echo "xfce"
exit 0
fi
fi
function detect_budgie() function detect_budgie()
{ {

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if pkgmgr="$( which apt-get )" 2> /dev/null; then if pkgmgr="$( which apt-get )" 2> /dev/null; then
echo "Debian" echo "Debian"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
dbus-monitor --session "type='signal',interface='org.gnome.SessionManager.Logout'" | grep '1' | dbus-monitor --session "type='signal',interface='org.gnome.SessionManager.Logout'" | grep '1' |
while read x; do while read x; do
# echo "$x" # echo "$x"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
xkeycount=$(pgrep 'xkeysnail' | wc -l) xkeycount=$(pgrep 'xkeysnail' | wc -l)

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -f {homedir}/.config/systemd/user/keyswap.timer ]; then if [ -f {homedir}/.config/systemd/user/keyswap.timer ]; then
systemctl --user stop keyswap.timer >/dev/null 2>&1 systemctl --user stop keyswap.timer >/dev/null 2>&1
systemctl --user disable keyswap.timer >/dev/null 2>&1 systemctl --user disable keyswap.timer >/dev/null 2>&1

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# /usr/local/bin/logoff.sh # /usr/local/bin/logoff.sh
while true; do while true; do
w | grep -E "$1.*$2" > /dev/null 2>&1 || (sudo systemctl stop xkeysnail && sudo pkill -f logoff) w | grep -E "$1.*$2" > /dev/null 2>&1 || (sudo systemctl stop xkeysnail && sudo pkill -f logoff)

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# >/dev/null 2>&1 # >/dev/null 2>&1
if [ -f /usr/local/bin/xkeysnail ];then if [ -f /usr/local/bin/xkeysnail ];then

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# set about:config?filter=ui.key.menuAccessKeyFocuses # set about:config?filter=ui.key.menuAccessKeyFocuses
# to false for wordwise to work in Firefox # to false for wordwise to work in Firefox
@@ -327,8 +327,12 @@ expsh=" "
# sudo ./system-config/unipkg.sh inotify-tools # sudo ./system-config/unipkg.sh inotify-tools
# fi # fi
if ! [ -x "$(command -v pip3)" ]; then if ! [ -x "$(command -v pip3)" ]; then
echo "Will need to install python3-pip..." if [ "$distro" == "freebsd" ]; then
sudo ./system-config/unipkg.sh python3-pip sudo python3 -m ensurepip
else
echo "Will need to install python3-pip..."
sudo ./system-config/unipkg.sh python3-pip
fi
fi fi
if ! [ -x "$(command -v python3-config)" ]; then if ! [ -x "$(command -v python3-config)" ]; then
if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ] || [ "$distro" == 'linuxmint' ]; then if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ] || [ "$distro" == 'linuxmint' ]; then
@@ -380,7 +384,7 @@ yes | cp -rf ./xkeysnail-config/xkeysnail.desktop ~/.config/kinto/xkeysnail.desk
echo "$(git describe --tag --abbrev=0 | head -n 1)" "build" "$(git rev-parse --short HEAD)" > ~/.config/kinto/version echo "$(git describe --tag --abbrev=0 | head -n 1)" "build" "$(git rev-parse --short HEAD)" > ~/.config/kinto/version
yes | cp -rf ./xkeysnail-config/kinto.py ./xkeysnail-config/kinto.py.new yes | cp -rf ./xkeysnail-config/kinto.py ./xkeysnail-config/kinto.py.new
yes | cp -rf ./xkeysnail-config/limitedadmins ./xkeysnail-config/limitedadmins.new yes | cp -rf ./xkeysnail-config/limitedadmins ./xkeysnail-config/limitedadmins.new
yes | cp -rf ./xkeysnail-config/gui/ ~/.config/kinto/ yes | cp -rf ./xkeysnail-config/gui/ ~/.config/kinto/gui
yes | cp -nrf ./xkeysnail-config/initkb ~/.config/kinto/initkb yes | cp -nrf ./xkeysnail-config/initkb ~/.config/kinto/initkb
yes | cp -rf ./xkeysnail-config/killdups.sh ~/.config/kinto/killdups.sh yes | cp -rf ./xkeysnail-config/killdups.sh ~/.config/kinto/killdups.sh
yes | cp -rf ./xkeysnail-config/trayapps/appindicator/kintotray.py ~/.config/kinto/kintotray.py yes | cp -rf ./xkeysnail-config/trayapps/appindicator/kintotray.py ~/.config/kinto/kintotray.py