From f80e8a9b8f87bbc19948454b7946f567432c1d34 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Thu, 8 Oct 2026 21:51:44 +0200 Subject: [PATCH] swaync better --- CONFIG/sway/config | 14 +++++--------- CONFIG/swaync/config.json | 21 +++++++++++++++++++++ CONFIG/swaync/style.css | 6 ++++-- 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/CONFIG/sway/config b/CONFIG/sway/config index d87d5b3..ce02771 100644 --- a/CONFIG/sway/config +++ b/CONFIG/sway/config @@ -255,14 +255,10 @@ bindsym { # Launch the file explorer $mod+o exec pcmanfm - # Dismiss current notification - $mod+n exec swaync-client -c - - # Dismiss all notifications - $mod+Shift+n exec swaync-client -C - - # Toggle the SwayNC control center panel - $mod+Shift+m exec swaync-client -t -sw + # Notifications + $mod+n exec swaync-client --hide-latest + $mod+Shift+n exec swaync-client --close-latest + $mod+m exec swaync-client -t -sw } # config tools @@ -277,7 +273,7 @@ mode "$mode_monitor" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+m mode "$mode_monitor" +bindsym $mod+Shift+m mode "$mode_monitor" # ------------------------------------------ # AUTOSTART diff --git a/CONFIG/swaync/config.json b/CONFIG/swaync/config.json index 269c2d7..573c1aa 100644 --- a/CONFIG/swaync/config.json +++ b/CONFIG/swaync/config.json @@ -22,6 +22,8 @@ "dnd", "mpris", "volume", + "backlight", + "buttons-grid", "notifications" ], "widget-config": { @@ -36,6 +38,25 @@ "mpris": { "image-size": 96, "image-radius": 8 + }, + "volume": { + "label": "Volume", + "show-percentage": true + }, + "backlight": { + "label": "Brightness" + }, + "buttons-grid": { + "actions": [ + { + "label": "WiFi", + "command": "nm-connection-editor" + }, + { + "label": "Bluetooth", + "command": "blueman-manager" + } + ] } } } diff --git a/CONFIG/swaync/style.css b/CONFIG/swaync/style.css index f38f206..b798f25 100644 --- a/CONFIG/swaync/style.css +++ b/CONFIG/swaync/style.css @@ -1,4 +1,4 @@ -@define-color bg #0A0A0A; +@define-color bg rgba(10, 10, 10, 0.85); @define-color border #333333; @define-color text #FFFFFF; @define-color focus #00E5FF; @@ -38,7 +38,9 @@ button:hover { .widget-dnd, .widget-mpris, -.widget-volume { +.widget-volume, +.widget-backlight, +.widget-buttons-grid { background: transparent; border: 1px solid @border; margin: 8px;