feat: differentiate between laptop and desktop

This commit is contained in:
Fabio Lenherr 2023-01-03 09:20:42 +01:00
parent 3a59d32f55
commit 5bb44594bb
50 changed files with 3432 additions and 1 deletions

12
eww_laptop/scripts/toggle-mute Executable file
View file

@ -0,0 +1,12 @@
#! /bin/bash
SINK=$(pactl info | grep "Default Sink"| awk -F 'Default Sink: ' ' { print $2 } ')
pactl set-sink-mute $SINK toggle
MUTE=$(pactl list sinks | grep -A 6 "$SINK" | grep "Mute: yes" | tr -d '\t')
if [ "$MUTE" = "Mute: yes" ]; then
dunstify -a "toggleMute" -r 2 -u low "Muted"
else
dunstify -a "toggleMute" -r 2 -u low "Unmuted"
fi