Skip to content

Commit

Permalink
fix hyprpanel hide & show
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherhadi committed Jan 7, 2025
1 parent 05aa21e commit 3a34579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions home/scripts/hyprpanel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a34579

Please sign in to comment.