Snippy: Detect kitty as a terminal
This commit is contained in:
parent
6279234f22
commit
a1a82bd395
2
snippy
2
snippy
@ -68,7 +68,7 @@ bashdown(){
|
|||||||
|
|
||||||
is_gui(){
|
is_gui(){
|
||||||
name="$(xprop -id "$(xdotool getwindowfocus)" WM_CLASS | cut -d'"' -f2 | tr '[:upper:]' '[:lower:]')"
|
name="$(xprop -id "$(xdotool getwindowfocus)" WM_CLASS | cut -d'"' -f2 | tr '[:upper:]' '[:lower:]')"
|
||||||
[[ "$name" =~ term|tilda ]] && return 1
|
[[ "$name" =~ term|tilda|kitty ]] && return 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user