From f2ba3a6a7247283f6e5fcab99358658bcbadec27 Mon Sep 17 00:00:00 2001 From: Aram Markarov Date: Sat, 14 Feb 2026 15:26:33 +0100 Subject: [PATCH] rempoved hyprpanel.sh folder --- scripts/hyprpanel.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 scripts/hyprpanel.sh diff --git a/scripts/hyprpanel.sh b/scripts/hyprpanel.sh deleted file mode 100755 index 44d5e38..0000000 --- a/scripts/hyprpanel.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -PANEL_CMD="hyprpanel" -PANEL_KILL="pkill .hyprpanel-wrap" - -while true; do - ACTIVE_WS=$(hyprctl -j activeworkspace | jq '.id') - - CLIENTS_ON_WS=$(hyprctl -j clients \ - | jq "[.[] | select(.workspace.id == $ACTIVE_WS)] | length") - - if [ "$CLIENTS_ON_WS" -gt 0 ]; then - # Workspace is NOT empty → kill panel - pgrep -f .hyprpanel-wrap >/dev/null && $PANEL_KILL - else - # Workspace is empty → launch panel - pgrep -f .hyprpanel-wrap >/dev/null || $PANEL_CMD & - fi - - sleep 0.5 -done -