diff --git a/modules/hypr/hyprland/default.nix b/modules/hypr/hyprland/default.nix index b2c3b33..c14fffa 100644 --- a/modules/hypr/hyprland/default.nix +++ b/modules/hypr/hyprland/default.nix @@ -168,6 +168,7 @@ ", XF86AudioLowerVolume, exec, sh $sciPath/volume.sh -d" ", XF86AudioMute, exec, sh $sciPath/volume.sh -m" ", XF86AudioMicMute, exec, sh $sciPath/volume.sh -t" + ", XF86PowerOff, exec, sh $sciPath/rick.sh" ]; general = { diff --git a/modules/hypr/hyprland/scripts/lol.webm b/modules/hypr/hyprland/scripts/lol.webm new file mode 100644 index 0000000..b2c6571 Binary files /dev/null and b/modules/hypr/hyprland/scripts/lol.webm differ diff --git a/modules/hypr/hyprland/scripts/rick.sh b/modules/hypr/hyprland/scripts/rick.sh new file mode 100755 index 0000000..4ab1c68 --- /dev/null +++ b/modules/hypr/hyprland/scripts/rick.sh @@ -0,0 +1,3 @@ +mpv ~/nix/modules/hypr/hyprland/scripts/lol.webm & +sleep 0.5 +hyprctl dispatch fullscreen diff --git a/modules/system/misc/default.nix b/modules/system/misc/default.nix index 148264a..ec5292d 100644 --- a/modules/system/misc/default.nix +++ b/modules/system/misc/default.nix @@ -2,4 +2,5 @@ nix.settings.experimental-features = ["nix-command" "flakes"]; time.timeZone = "Europe/Zurich"; system.stateVersion = "23.11"; + services.logind.powerKey = "ignore"; }