summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-05-22 16:09:20 +0200
committerGitHub <noreply@github.com>2026-05-22 16:09:20 +0200
commit71dfeedffaa1d289d86533f96525695a3dfb198a (patch)
treecbfcc96ee01ab3ff07720b3a3317915b2d8e7612 /nixos
parenta6f4dbfa197514751e221766a16cbf9b858377f8 (diff)
Update cat.nix
Diffstat (limited to 'nixos')
-rw-r--r--nixos/cat.nix43
1 files changed, 24 insertions, 19 deletions
diff --git a/nixos/cat.nix b/nixos/cat.nix
index 37cfe0a..29bb2ea 100644
--- a/nixos/cat.nix
+++ b/nixos/cat.nix
@@ -185,26 +185,31 @@
};
home.packages = with pkgs; [
- (writeShellScriptBin "power" ''
- options="lock\nlogout\nshutdown\nreboot"
- choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">")
+ (writeShellScriptBin "master" ''
+ options="config\nsettings\nwallpaper\nssh\npower"
+ choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">")
- case "$choice" in
- lock)
- ${pkgs.hyprlock}/bin/hyprlock
- ;;
- logout)
- command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || ${pkgs.hyprland}/bin/hyprctl dispatch exit
- ;;
- shutdown)
- shutdown now
- ;;
- reboot)
- reboot
- ;;
- esac
- '')
- ];
+ case "$choice" in
+ *config*) exec "config" ;;
+ *settings*) exec "settings" ;;
+ *wallpaper*) exec "wallpaper" ;;
+ *ssh*) exec "ssh" ;;
+ *power*) exec "power" ;;
+ esac
+ '')
+
+ (writeShellScriptBin "power" ''
+ options="lock\nlogout\nshutdown\nreboot"
+ choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">")
+
+ case "$choice" in
+ *lock*) ${pkgs.hyprlock}/bin/hyprlock ;;
+ *logout*) hyprctl dispatch exit ;;
+ *shutdown*) systemctl poweroff ;;
+ *reboot*) systemctl reboot ;;
+ esac
+ '')
+];
home.pointerCursor = {
gtk.enable = true;