mirror of
https://github.com/d3m0k1d/dots.git
synced 2026-03-15 02:12:43 +00:00
Add my dots
This commit is contained in:
11
.config/waybar/scripts/amixer-toggle.sh
Executable file
11
.config/waybar/scripts/amixer-toggle.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check the current state of the speaker
|
||||
state=$(amixer -D pulse sget Master | awk '/\[on\]/{print "unmute"; exit} /\[off\]/{print "mute"; exit}')
|
||||
|
||||
# Toggle the state of the speaker
|
||||
#
|
||||
if [ "$state" = "[on] "]; then
|
||||
amixer
|
||||
# amixer -D pulse sset Master "$state" > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user