add scripts
This commit is contained in:
parent
997acebdcc
commit
0783ec3725
|
@ -69,14 +69,21 @@
|
||||||
echo "[ERROR] => Wrong argument..."
|
echo "[ERROR] => Wrong argument..."
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
toogle_blur = writeScriptBin "toogle_blur" (builtins.readFile ./toogle_blur);
|
||||||
|
toogle_oppacity = writeScriptBin "toogle_oppacity" (builtins.readFile ./toogle_oppacity);
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wall-change
|
wall-change
|
||||||
wallpaper-picker
|
wallpaper-picker
|
||||||
|
|
||||||
push
|
push
|
||||||
commit
|
commit
|
||||||
|
|
||||||
dsize
|
dsize
|
||||||
runbg
|
runbg
|
||||||
music
|
music
|
||||||
|
|
||||||
|
toogle_blur
|
||||||
|
toogle_oppacity
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
7
modules/home/scripts/toogle_blur.sh
Executable file
7
modules/home/scripts/toogle_blur.sh
Executable 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
|
9
modules/home/scripts/toogle_oppacity.sh
Executable file
9
modules/home/scripts/toogle_oppacity.sh
Executable 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
|
Loading…
Reference in a new issue