Skip to content

Commit 181d97c

Browse files
committed
moved pavucontrol check to proper place
1 parent 83f524d commit 181d97c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

i3-helpers/noctrlq.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
W=$(xdotool getactivewindow)
66
S1=$(xprop -id "${W}" |awk -F '"' '/WM_CLASS/{print $4}')
7-
if [ "$S1" != "Firefox" ] && [ "$S1" != "Firefox Developer Edition" ]; then
8-
xvkbd -xsendevent -text "\Cq"
9-
elif [ "$S1" = "pavucontrol" ]; then
7+
8+
if [ "$S1" = "pavucontrol" ]; then
109
xvkbd -xsendevent -text "\C\Aq"
10+
elif [ "$S1" != "Firefox" ] && [ "$S1" != "Firefox Developer Edition" ]; then
11+
xvkbd -xsendevent -text "\Cq"
1112
fi

0 commit comments

Comments
 (0)