From 3a34579f35541f0f7c72af72a77e79ce58645788 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:34:54 +0100 Subject: [PATCH] fix hyprpanel hide & show --- home/scripts/hyprpanel/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/scripts/hyprpanel/default.nix b/home/scripts/hyprpanel/default.nix index 9c59cb8..eb760f5 100644 --- a/home/scripts/hyprpanel/default.nix +++ b/home/scripts/hyprpanel/default.nix @@ -16,22 +16,22 @@ let ''; hyprpanel-hide = pkgs.writeShellScriptBin "hyprpanel-hide" '' - status=$(hyprpanel -r "isWindowVisible('bar-0')") + status=$(hyprpanel isWindowVisible bar-0) if [[ $status == "true" ]]; then hyprpanel -t bar-0 fi - status=$(hyprpanel -r "isWindowVisible('bar-1')") + status=$(hyprpanel isWindowVisible bar-1) if [[ $status == "true" ]]; then hyprpanel -t bar-1 fi ''; hyprpanel-show = pkgs.writeShellScriptBin "hyprpanel-show" '' - status=$(hyprpanel -r "isWindowVisible('bar-0')") + status=$(hyprpanel isWindowVisible bar-0) if [[ $status == "false" ]]; then hyprpanel -t bar-0 fi - status=$(hyprpanel -r "isWindowVisible('bar-1')") + status=$(hyprpanel isWindowVisible bar-1) if [[ $status == "false" ]]; then hyprpanel -t bar-1 fi