set mako as notification system

This commit is contained in:
Simon Rieger 2025-04-12 19:10:42 +02:00
parent af560f943b
commit 516f5d30e4
5 changed files with 24 additions and 4 deletions

View file

@ -69,9 +69,9 @@ bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness # Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && ~/.config/hypr/scripts/wp-vol.sh
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && ~/.config/hypr/scripts/wp-vol.sh
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && ~/.config/hypr/scripts/wp-vol.sh
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+ bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%- bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-

View file

@ -19,6 +19,7 @@ $menu = fuzzel
exec-once = [workspace 1 silent] $terminal exec-once = [workspace 1 silent] $terminal
exec-once = nm-applet & exec-once = nm-applet &
exec-once = blueman-applet & exec-once = blueman-applet &
exec-once = mako &
exec-once = waybar & hyprpaper exec-once = waybar & hyprpaper
exec-once = [workspace 2 silent] firefox exec-once = [workspace 2 silent] firefox
exec-once = hypridle exec-once = hypridle

View file

@ -0,0 +1,8 @@
#!/bin/sh
# Get the volume level and convert it to a percentage
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume=$(echo "$volume" | awk '{print $2}')
volume=$(echo "( $volume * 100 ) / 1" | bc)
notify-send -t 1000 -a 'wp-vol' -h int:value:$volume "Volume: ${volume}%"

View file

@ -27,3 +27,14 @@ on-notify=exec mpv /usr/share/sounds/freedesktop/stereo/dialog-error.oga
[category=mpd] [category=mpd]
default-timeout=2000 default-timeout=2000
group-by=category group-by=category
[app-name=wp-vol]
layer=overlay
history=0
anchor=top-center
[mode=do-not-disturb]
invisible=1
[mode=do-not-disturb app-name=wp-vol]
invisible=0

View file

@ -38,7 +38,7 @@ sudo dnf install -y \
dkms libdrm-devel hplip ydotool pkg-config \ dkms libdrm-devel hplip ydotool pkg-config \
libxkbcommon-devel scdoc inotify-tools \ libxkbcommon-devel scdoc inotify-tools \
net-snmp-utils net-snmp snmpd virt-manager \ net-snmp-utils net-snmp snmpd virt-manager \
@virtualization virt-what @virtualization virt-what mako
## Multimedia ## Multimedia
sudo dnf install -y \ sudo dnf install -y \