added volume notification
This commit is contained in:
parent
da27987793
commit
246973759d
5 changed files with 36 additions and 6 deletions
11
Scripts/background-changer.sh
Executable file
11
Scripts/background-changer.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
wallpapers_path=/home/emge/Wallpapers/
|
||||
|
||||
# while true; do
|
||||
# swaybg -i $(find $wallpapers_path -type f | shuf -n 1) -m fill
|
||||
# sleep 29m
|
||||
# done
|
||||
# sleep 1m
|
||||
|
||||
swaymsg output "*" bg $(find $wallpapers_path -type f | shuf -n 1) fill
|
19
Scripts/volume-notif.sh
Executable file
19
Scripts/volume-notif.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# dunst change volume notification
|
||||
|
||||
# set varialbe $volume to current volume level
|
||||
# --get-volume returns two equal values, the awk
|
||||
# pipe pulls just the first one - both values
|
||||
# should match unless balance was adjusted
|
||||
volume=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
|
||||
# set variable $muted to current mute setting
|
||||
muted=$(pulsemixer --get-mute)
|
||||
|
||||
if [[ $muted == 1 || $volume == 0 ]]; then
|
||||
# show muted notification
|
||||
dunstify -u low -i audio-volume-muted -h string:x-dunst-stack-tag:Volume "Volume Muted"
|
||||
else
|
||||
# show volume notification
|
||||
dunstify -u low -i audio-volume-high -h string:x-dunst-stack-tag:Volume -h int:value:"$volume" "Volume: ${volume}%"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue