From c569d43f1535cada3954d1550adf69609ac68b51 Mon Sep 17 00:00:00 2001 From: "Antoine Phan, on LuminisArcana" Date: Sat, 7 Mar 2026 01:58:26 -0500 Subject: [PATCH] Update niri and mako --- mako/.config/mako/config | 43 ++++++++++++++++++-------- mako/.config/mako/test-mako.sh | 56 ++++++++++++++++++++++++++++++++++ niri/.config/niri/config.kdl | 2 +- 3 files changed, 88 insertions(+), 13 deletions(-) create mode 100644 mako/.config/mako/test-mako.sh diff --git a/mako/.config/mako/config b/mako/.config/mako/config index 1cd6c27..3f9b057 100644 --- a/mako/.config/mako/config +++ b/mako/.config/mako/config @@ -1,27 +1,46 @@ sort=-time -anchor=bottom-right +anchor=top-right layer=overlay -background-color=#2e3440 -width=480 -height=240 + +# Modern soft design: semi-transparent dark, no harsh borders +background-color=#32435dcc +text-color=#cdd6f4 +width=420 +height=120 border-size=1 -border-color=#bac0d0 -border-radius=10 +border-color=#ffffff77 +border-radius=12 +outer-margin=16 +padding=12 + icons=1 -max-icon-size=64 +max-icon-size=48 default-timeout=5000 ignore-timeout=1 -font=Assistant Bold 12 -outer-margin=40 +font=Fira Sans 12 [urgency=low] -border-color=#cccccc +border-color=#89b4fa77 +background-color=#1e1e2edd +text-color=#a6adc8 +default-timeout=3000 [urgency=normal] -border-color=#d08770 +border-color=#b4befe77 +background-color=#101730dd +text-color=#cdd6f4 +default-timeout=5000 [urgency=high] -border-color=#bf616a +border-color=#f9e2af77 +background-color=#45403ddd +text-color=#f5e0dc +default-timeout=10000 + +[urgency=critical] +border-color=#f38ba877 +background-color=#4a3642dd +text-color=#f5e0dc default-timeout=0 [category=mpd] diff --git a/mako/.config/mako/test-mako.sh b/mako/.config/mako/test-mako.sh new file mode 100644 index 0000000..df76f3b --- /dev/null +++ b/mako/.config/mako/test-mako.sh @@ -0,0 +1,56 @@ +systemctl --user restart mako +notify-send "Mako restarted" +sleep 2 + +# Test simple notification +notify-send "Test Notification" "This is a simple notification." +sleep 2 + +# Test different urgency levels +notify-send -u low "Low Urgency" "This is a low urgency notification." +sleep 1 +notify-send -u normal "Normal Urgency" "This is a normal urgency notification." +sleep 1 +notify-send -u critical "High Urgency" "This is a high urgency notification." +sleep 2 + +# Test notification with icon +notify-send -i dialog-information "With Icon" "This notification has an icon." +sleep 2 + +# Test notification in custom category +notify-send -c mpd "MPD Category" "This notification tests the mpd category." +sleep 2 + +# Test notification with short timeout (only applies if ignore-timeout is not set) +notify-send -t 1000 "Short Timeout" "This should disappear quickly." +sleep 2 + +# Test notification with long timeout +notify-send -t 10000 "Long Timeout" "This should stay longer." +sleep 2 + +# Test multi-line body +notify-send "Multiline Test" "Line 1 +Line 2 +Line 3" +sleep 2 + +# Test width - intentionally long title/body to check wrapping +notify-send "Long Notification Title Testing Wrapping In Mako Notification System" "This is a long notification body to see how the text gets wrapped and how it looks in the mako notification window. The width limit should prevent overflow." +sleep 2 + +# Test notification with unicode/emojis +notify-send "Emoji 🚀 Test" "This notification contains emojis 🎉👍" +sleep 2 + +# Test multiple notifications in quick succession +for i in $(seq 1 5); do + notify-send "Batch Test $i" "This is notification number $i" + sleep 1 +done +sleep 2 + +# Test notification that should persist (critical urgency and normal has default-timeout=0 in some configs) +notify-send -u critical "Persistent Notification" "This notification should not timeout automatically." +sleep 3 diff --git a/niri/.config/niri/config.kdl b/niri/.config/niri/config.kdl index d42476e..2627d2b 100644 --- a/niri/.config/niri/config.kdl +++ b/niri/.config/niri/config.kdl @@ -10,7 +10,7 @@ environment { XCURSOR_SIZE "12" QT_QPA_PLATFORMTHEME "qt5ct" // GTK_THEME "adw-gtk3-dark:dark" - // GDK_BACKEND "wayland,x11,*" + GDK_BACKEND "wayland,x11,*" QT_QPA_PLATFORM "wayland;xcb" // QT_AUTO_SCREEN_SCALE_FACTOR "1"