tangled
alpha
login
or
join now
dunkirk.sh
/
dots
3
fork
atom
Kieran's opinionated (and probably slightly dumb) nix config
3
fork
atom
overview
issues
pulls
pipelines
chore: switch to native audio limit
dunkirk.sh
10 months ago
f02c324e
43304ccd
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+1
-1
1 changed file
expand all
collapse all
unified
split
home-manager
dots
hyprland.conf
+1
-1
home-manager/dots/hyprland.conf
···
161
161
162
162
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
163
163
164
164
-
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
164
164
+
bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 5%+; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
165
165
bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; notify-desktop "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -t 800
166
166
167
167
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