add scripts

This commit is contained in:
Frost-Phoenix 2023-11-12 11:58:49 +01:00
parent 997acebdcc
commit 0783ec3725
3 changed files with 23 additions and 0 deletions

View file

@ -69,14 +69,21 @@
echo "[ERROR] => Wrong argument..."
fi
'';
toogle_blur = writeScriptBin "toogle_blur" (builtins.readFile ./toogle_blur);
toogle_oppacity = writeScriptBin "toogle_oppacity" (builtins.readFile ./toogle_oppacity);
in {
home.packages = with pkgs; [
wall-change
wallpaper-picker
push
commit
dsize
runbg
music
toogle_blur
toogle_oppacity
];
}

View file

@ -0,0 +1,7 @@
#!/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

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if hyprctl getoption decoration:active_opacity | grep "float: 1" >/dev/null ; then
hyprctl keyword decoration:active_opacity 0.85 >/dev/null
hyprctl keyword decoration:inactive_opacity 0.85 >/dev/null
else
hyprctl keyword decoration:active_opacity 1 >/dev/null
hyprctl keyword decoration:inactive_opacity 1 >/dev/null
fi