This commit is contained in:
Hadi
2024-10-04 10:58:53 +02:00
parent 7047ffe785
commit 8f6b049129
9 changed files with 91 additions and 89 deletions

View File

@@ -5,6 +5,7 @@
./brightness
./caffeine
./hyprpanel
./hyprfocus
./night-shift
./screenshot
./nerdfont_fzf

View File

@@ -0,0 +1,19 @@
{ pkgs, ... }:
let
hyprfocus = pkgs.writeShellScriptBin "hyprfocus" ''
hyprctl keyword "general:gaps_in" 0
hyprctl keyword "general:gaps_out" 0
# TODO: Fix this:
hyprpanel-toggle
hyprctl keyword "general:border_size" 1
hyprctl keyword "decoration:rounding" 0
hyprctl keyword "decoration:drop_shadow" false
hyprctl keyword "decoration:inactive_opacity" 0.98
hyprctl keyword "decoration:active_opacity" 1
'';
hyprfocus-kill = pkgs.writeShellScriptBin "hyprfocus-kill" ''
hyprctl reload
hyprpanel-reload
'';
in { home.packages = [ hyprfocus hyprfocus-kill ]; }

View File

@@ -6,8 +6,13 @@ let
hyprpanel -t bar-2
hyprpanel -t bar-3
'';
hyprpanel-reload = pkgs.writeShellScriptBin "hyprpanel-reload" ''
[ $(pgrep "ags") ] && pkill ags
hyprctl dispatch exec hyprpanel
'';
in { home.packages = [ hyprpanel-toggle hyprpanel-reload ]; }
hyprpanel-kill = pkgs.writeShellScriptBin "hyprpanel-kill" ''
[ $(pgrep "ags") ] && pkill ags
'';
in { home.packages = [ hyprpanel-toggle hyprpanel-reload hyprpanel-kill ]; }