change notification system to swaync

This commit is contained in:
Simon Rieger 2025-04-22 09:13:57 +02:00
parent be2307614c
commit 907a94ede0
4 changed files with 27 additions and 5 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%+ && ~/.config/hypr/scripts/wp-vol.sh bindel = ,XF86AudioRaiseVolume, 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 = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && ~/.config/hypr/scripts/wp-vol.sh bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
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,10 +19,11 @@ $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 = swaync &
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
exec-once = [workspace 4 silent] flatpak run com.spotify.Client
# Bitwarden Window Floating # Bitwarden Window Floating
exec-once = ~/.config/hypr/scripts/bitwarden.sh exec-once = ~/.config/hypr/scripts/bitwarden.sh

View file

@ -24,6 +24,7 @@
"battery", "battery",
"clock", "clock",
"tray", "tray",
"custom/notification",
"custom/power" "custom/power"
], ],
// Modules configuration // Modules configuration
@ -193,6 +194,26 @@
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}, },
"custom/notification": {
"tooltip": false,
"format": "{} {icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/power": { "custom/power": {
"format" : "⏻ ", "format" : "⏻ ",
"tooltip": false, "tooltip": false,

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 mako @virtualization virt-what SwayNotificationCenter
## Multimedia ## Multimedia
sudo dnf install -y \ sudo dnf install -y \