From 4aaa186aef336e462ff50a8fba571a034f5d28a3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 19 May 2025 10:33:42 +0200 Subject: [PATCH] toggleable top bar --- desktopenvs/hyprland/btop/btop.conf | 2 +- desktopenvs/hyprland/hypr-usr/binds.conf | 2 +- desktopenvs/hyprland/scripts/togglebar.sh | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 desktopenvs/hyprland/scripts/togglebar.sh diff --git a/desktopenvs/hyprland/btop/btop.conf b/desktopenvs/hyprland/btop/btop.conf index 760e7f2..e57733a 100644 --- a/desktopenvs/hyprland/btop/btop.conf +++ b/desktopenvs/hyprland/btop/btop.conf @@ -1,4 +1,4 @@ -#? Config file for btop v. 1.4.2 +#? Config file for btop v. 1.4.3 #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index 7533d95..6834fb3 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -31,7 +31,7 @@ $vimdown = j # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal -bind = $mainMod, Z, exec, $terminal btop +bind = $mainMod, Z, exec, ~/Dotfiles/desktopenvs/hyprland/scripts/togglebar.sh bind = $mainMod, Q, killactive, bind = $mainMod, M, exec, $editor bind = $mainMod, F, exec, $fileManager diff --git a/desktopenvs/hyprland/scripts/togglebar.sh b/desktopenvs/hyprland/scripts/togglebar.sh new file mode 100755 index 0000000..9c86260 --- /dev/null +++ b/desktopenvs/hyprland/scripts/togglebar.sh @@ -0,0 +1,8 @@ +#!/bin/bash +statecon=$(eww state | xargs) +echo $statecon +if [[ -z `echo $statecon` ]] ;then + ~/Dotfiles/desktopenvs/hyprland/scripts/monitorhandler.sh +else + eww close-all +fi