add small shell script

This commit is contained in:
Torjus Håkestad 2024-03-03 00:03:22 +01:00
parent 35ada16dcb
commit ce1ea8959f
3 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@
enable = true;
settings = {
"$mainMod" = "SUPER";
"$shiftMainMod" = "SUPER_SHIFT";
"$term" = "kitty";
monitor = [
@ -114,6 +115,9 @@
"$mainMod,k,movewindow,u"
"$mainMod,j,movewindow,d"
# Force opacity
"$shiftMainMod,o,exec, hl-no-opacity"
# mumble ptt click
",code:202,exec,mumble rpc starttalking"

View File

@ -1,6 +1,6 @@
{ config, ... }: {
home.file.".local/bin/hl-no-opacity" = {
source = config.lib.file.mkOutOfStoreSymlink ./. + "/hl-no-opacity.sh";
source = ./hl-no-opacity.sh;
executable = true;
};
}

View File

@ -2,3 +2,4 @@
addr=$(hyprctl activewindow -j|jq -r .address)
hyprctl setprop "address:$addr" alpha 1 lock
hyprctl setprop "address:$addr" alphainactive 1 lock