From: Amazingca Date: Mon, 23 Mar 2026 05:58:59 +0000 (-0600) Subject: Add DND toggle script X-Git-Url: http://git.amazingca.dev/?a=commitdiff_plain;h=ecd123fde78889165c6d52c9c2272ef85174dd82;p=autumn%2Fdots Add DND toggle script --- diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index e45d4ab..a4fa056 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -202,7 +202,7 @@ $mainMod = SUPER # Sets "Super" key as main modifier bind = $mainMod, A, exec, $menu bind = $mainMod, C, exec, cinny bind = $mainMod, D, exec, discord -bind = $mainMod SHIFT, D, exec, swaync-client -d +bind = $mainMod SHIFT, D, exec, nu ~/.config/hypr/togglednd.nu bind = $mainMod, E, exec, $fileManager bind = $mainMod, F, exec, feishin bind = $mainMod SHIFT, F, exec, fladder diff --git a/config/hypr/scripts/togglednd.nu b/config/hypr/scripts/togglednd.nu new file mode 100644 index 0000000..b7977ca --- /dev/null +++ b/config/hypr/scripts/togglednd.nu @@ -0,0 +1,3 @@ +mut state = "off" +if ((swaync-client -d) == "true") { $state = "on" } +hyprctl notify -1 1500 "rgb(e7deff)" $"fontsize:19 Do Not Disturb turned ($state)" diff --git a/config/ironbar/config.toml b/config/ironbar/config.toml index 64e20af..4dc4b7e 100644 --- a/config/ironbar/config.toml +++ b/config/ironbar/config.toml @@ -47,6 +47,3 @@ icon_size = 20 cpu = 1 memory = 1 temp = 1 - -[[end]] -type = "notifications"