Gen 426: Shell script nix files work properly now
This commit is contained in:
12
glasshouse-desktop/home/scripts/toggle_blur.nix
Normal file
12
glasshouse-desktop/home/scripts/toggle_blur.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ self, pkgs }:
|
||||
|
||||
|
||||
pkgs.writeShellScriptBin "toggle_blur" (''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if hyprctl getoption decoration:blur:enabled | grep "int: 1" >/dev/null ; then
|
||||
hyprctl keyword decoration:blur:enabled false >/dev/null
|
||||
else
|
||||
hyprctl keyword decoration:blur:enabled true >/dev/null
|
||||
fi
|
||||
'')
|
||||
Reference in New Issue
Block a user