My Nix Infra
nix nixos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

mako: group vol and brightness noti

ydcjeff 9ab5e48a 407787f8

+16 -3
+2 -2
bin/ez-cmd-hwctl
··· 19 19 status="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f3)" 20 20 vol="${vol/./}" # remove dot 21 21 vol="${vol#0}" # remove leading 0 22 - notify-send -u normal "Volume: $vol% $status" 22 + notify-send -a 'wp-vol' "Volume: $vol% $status" -h int:value:"$vol" 23 23 elif [[ "$1" == "brightness" ]]; then 24 24 case "$2" in 25 25 "up") brightnessctl set 5%+ ;; ··· 28 28 current="$(brightnessctl get)" 29 29 max="$(brightnessctl max)" 30 30 ratio="$(awk -v c="$current" -v m="$max" 'BEGIN { print(c/m*100) }')" 31 - notify-send -u normal "Brightness: $ratio%" 31 + notify-send -a 'brightnessctl' "Brightness: $ratio%" -h int:value:"$ratio" 32 32 fi
+14 -1
modules/desktop.nix
··· 136 136 padding = 16; 137 137 border-radius = 4; 138 138 default-timeout = 5000; 139 - layer = "overlay"; 140 139 "mode=dnd" = { 141 140 invisible = 1; 141 + }; 142 + "app-name=wp-vol" = { 143 + layer = "overlay"; 144 + history = 0; 145 + anchor = "center"; 146 + group-by = "app-name"; 147 + format = "<b>%s</b>\\n%b"; 148 + }; 149 + "app-name=brightnessctl" = { 150 + layer = "overlay"; 151 + history = 0; 152 + anchor = "center"; 153 + group-by = "app-name"; 154 + format = "<b>%s</b>\\n%b"; 142 155 }; 143 156 }; 144 157 };