small thunar and greetd changes and some refactoring
This commit is contained in:
9
scripts/bin/pavucontrol-toggle.sh
Executable file
9
scripts/bin/pavucontrol-toggle.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
if pgrep -f "pavucontrol" >/dev/null; then
|
||||
pkill -f "pavucontrol"
|
||||
else
|
||||
if ! hyprctl dispatch exec pavucontrol; then
|
||||
echo "Failed to launch Pavucontrol"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user