refactor(hyprland): move nvidia option > wayland.nvidia/add hyprlands.extras

hyprland extras to serve as place to add hyprecosystem projects
This commit is contained in:
ooks-io 2024-04-01 18:07:43 +13:00
parent ba410aa838
commit 82f539c989
9 changed files with 61 additions and 54 deletions

View file

@ -4,8 +4,6 @@ let
packages = {
hyprvolume = pkgs.callPackage ./hyprvolume.nix {};
hyprbrightness = pkgs.callPackage ./hyprbrightness.nix {};
# Script to help Hyprland quit https://github.com/hyprwm/Hyprland/issues/3558#issuecomment-1848768654
hyprkillsession = pkgs.callPackage ./hyprkillsession.nix {};
};
in
packages

View file

@ -1,17 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "hyprkillsession";
runtimeInputs = with pkgs; [ procps ];
text = ''
if pgrep -x Hyprland >/dev/null; then
hyprctl dispatch exit 0
sleep 2
if pgrep -x Hyprland >/dev/null; then
killall -9 Hyprland
fi
fi
'';
}