diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 43640e9..01d8ae6 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -22,7 +22,6 @@ exec-once = nm-applet exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = $HOME/.scripts/swayidle.sh exec-once = swayosd-server -exec-once = mako # XWayland diff --git a/.config/mako/config b/.config/mako/config index adab154..50b9e6f 100644 --- a/.config/mako/config +++ b/.config/mako/config @@ -6,3 +6,6 @@ border-radius=4 border-size=2 font='JetBrainsMono Nerd Font' 11 outer-margin=30,30,0,0 + +[mode=dnd] +invisible=1 diff --git a/.scripts/set-wallpaper.sh b/.scripts/set-wallpaper.sh index 8fa84bb..25ef891 100755 --- a/.scripts/set-wallpaper.sh +++ b/.scripts/set-wallpaper.sh @@ -325,6 +325,9 @@ else if pgrep -u "$USER" mako > /dev/null; then echo "Reloading Mako." makoctl reload & + else + echo "Starting mako." + hyprctl dispatch exec mako > /dev/null & fi fi diff --git a/.scripts/waybar-dnd-toggle.sh b/.scripts/waybar-dnd-toggle.sh new file mode 100755 index 0000000..eeac139 --- /dev/null +++ b/.scripts/waybar-dnd-toggle.sh @@ -0,0 +1,22 @@ +#!/bin/sh + + +if [[ "$1" != "--no-toggle" ]]; then + if makoctl mode | grep -q dnd; then + makoctl mode -r dnd + else + makoctl mode -a dnd + fi +fi + + +if makoctl mode | grep -q dnd; then + class="dnd-enabled" +else + class="dnd-disabled" +fi + + +cat << EOF +{"text": "", "alt": "$class", "class": "$class", "percentage": ""} +EOF