From d04c0a2cb90ac479d6cae68331b920695f331c57 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 8 May 2025 17:12:10 +0200 Subject: [PATCH] the activewindow widget now opens the appdrawer when clicked --- desktopenvs/hyprland/eww/eww.yuck | 2 +- desktopenvs/hyprland/eww/scripts/drawer.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 desktopenvs/hyprland/eww/scripts/drawer.sh diff --git a/desktopenvs/hyprland/eww/eww.yuck b/desktopenvs/hyprland/eww/eww.yuck index cb485a2..6a6f337 100644 --- a/desktopenvs/hyprland/eww/eww.yuck +++ b/desktopenvs/hyprland/eww/eww.yuck @@ -26,7 +26,7 @@ (box :orientation "h" :space-evenly false :halign "start" (box :class "music" {"${battery}"}) (workspaceWidget :monitor monitor) - (box :onclick "scripts/windowswitcher" :class "music" {" ${activewindow}"}) + (button :onclick "scripts/drawer.sh" :class "music" {" ${activewindow}"}) ) ) diff --git a/desktopenvs/hyprland/eww/scripts/drawer.sh b/desktopenvs/hyprland/eww/scripts/drawer.sh new file mode 100755 index 0000000..90d7420 --- /dev/null +++ b/desktopenvs/hyprland/eww/scripts/drawer.sh @@ -0,0 +1,3 @@ +#!/bin/bash +nwg-drawer -fm "kitty -e yazi" -term kitty -wm hyprland -mb 20 -ml 20 -mr 20 -mt 20 -pblock hyprlock -pbpoweroff poweroff -pbexit "hyprctl dispatch exit" -pbreboot reboot +