mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-20 19:41:40 +00:00
Merge branch 'MatthiasCoppens-master' into master
This commit is contained in:
commit
b7fbb8784f
1 file changed
+2
-2
@@ -33,7 +33,7 @@ if [ -e /proc/$$/comm ]; then
|
|||||||
# get name of binary
|
# get name of binary
|
||||||
read -r name < "/proc/$ppid/comm"
|
read -r name < "/proc/$ppid/comm"
|
||||||
case $name in
|
case $name in
|
||||||
*sh|"${0##*/}"|tmux|screen) ;; # skip shells
|
*sh|"${0##*/}") ;; # skip shells
|
||||||
*[Ll]ogin*|*init*) break;; # exit when the top is reached
|
*[Ll]ogin*|*init*) break;; # exit when the top is reached
|
||||||
*) term="$name" # anything else can be assumed to be the terminal
|
*) term="$name" # anything else can be assumed to be the terminal
|
||||||
esac
|
esac
|
||||||
@@ -47,7 +47,7 @@ if [ -e /proc/$$/comm ]; then
|
|||||||
for i in /proc/*/comm; do
|
for i in /proc/*/comm; do
|
||||||
read -r c < "$i"
|
read -r c < "$i"
|
||||||
case $c in
|
case $c in
|
||||||
awesome|xmonad*|qtile|i3*|*box*|*wm*) wm="${c%%-*}"; break;;
|
awesome|xmonad*|qtile|sway|i3*|*box*|*wm*) wm="${c%%-*}"; break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user