mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-03-19 15:50:30 +01:00
feat: adds sketchybar configuration
This commit is contained in:
parent
d8cdb130b5
commit
4b0e72ec7a
9 changed files with 226 additions and 0 deletions
26
modules/home/sketchybar/plugins/volume.sh
Executable file
26
modules/home/sketchybar/plugins/volume.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
# The volume_change event supplies a $INFO variable in which the current volume
|
||||
# percentage is passed to the script.
|
||||
|
||||
if [ "$SENDER" = "volume_change" ]; then
|
||||
VOLUME="$INFO"
|
||||
|
||||
CURRENT="$(SwitchAudioSource -c)"
|
||||
|
||||
#case "$VOLUME" in
|
||||
#[6-9][0-9] | 100)
|
||||
# ICON=""
|
||||
# ;;
|
||||
#[3-5][0-9])
|
||||
# ICON=""
|
||||
# ;;
|
||||
#[1-9] | [1-2][0-9])
|
||||
# ICON=""
|
||||
# ;;
|
||||
#*) ICON="" ;;
|
||||
#esac
|
||||
|
||||
# sketchybar --set "$NAME" icon="$ICON" label="$CURRENT: $VOLUME%"
|
||||
sketchybar --set "$NAME" label="VOL: $CURRENT: $VOLUME%"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue