Kieran's opinionated (and probably slightly dumb) nix config

chore: switch to native audio limit

dunkirk.sh f02c324e 43304ccd

verified
Changed files
+1 -1
home-manager
+1 -1
home-manager/dots/hyprland.conf
···
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
-
bindel=, XF86AudioRaiseVolume, exec, current_volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}' | sed 's/%//'); current_volume=$(echo "$current_volume * 100" | bc); new_volume=$(echo "$current_volume + 5" | bc); new_volume=$(echo "$new_volume" | awk '{if ($1 > 200) print 200; else print $1}'); wpctl set-volume @DEFAULT_AUDIO_SINK@ "${new_volume}%"; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
+
bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 5%+; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
bindel=, XF86RFKill, exec, notify-desktop "$(rfkill list | grep -q '^\s*Soft blocked: yes' && echo 'Airplane Mode is ON' || echo 'Airplane Mode is OFF')" -t 800