From 80de1efda4ad936ae03057b1b22bd096cd15c69a Mon Sep 17 00:00:00 2001 From: caley Date: Thu, 28 May 2026 15:31:36 +0200 Subject: Update cat.nix --- nixos/cat.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/cat.nix b/nixos/cat.nix index 44723ab..3bc6db5 100644 --- a/nixos/cat.nix +++ b/nixos/cat.nix @@ -18,8 +18,8 @@ programs.fish = { enable = true; shellAbbrs = { - rebuild = ""; - update = ""; + rebuild = "sudo nixos-rebuild switch --flake /etc/nixos/#cat"; + update = "nix flake update --flake /etc/nixos/ && sudo nixos-rebuild switch --flake /etc/nixos/#cat"; }; functions = { fish_greeting = { body = ""; }; @@ -213,6 +213,26 @@ home.packages = with pkgs; [ esac '') + (writeShellScriptBin "settings" '' + options="fade\nvertical\nhorizontal" + choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">") + + case "$choice" in + fade) + hyprctl eval 'hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })' > /dev/null + hyprctl eval 'hl.animation({ leaf = "specialWorkspace", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })' > /dev/null + ${pkgs.libnotify}/bin/notify-send "animations" "fade" ;; + vertical) + hyprctl eval 'hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "hard", style = "slidevert" })' > /dev/null + hyprctl eval 'hl.animation({ leaf = "specialWorkspace", enabled = true, speed = 5, bezier = "hard", style = "slidevert" })' > /dev/null + ${pkgs.libnotify}/bin/notify-send "animations" "vertical" ;; + horizontal) + hyprctl eval 'hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "hard", style = "slide" })' > /dev/null + hyprctl eval 'hl.animation({ leaf = "specialWorkspace", enabled = true, speed = 5, bezier = "hard", style = "slide" })' > /dev/null + ${pkgs.libnotify}/bin/notify-send "animations" "horizontal" ;; + esac + '') + (writeShellScriptBin "power" '' options="lock\nlogout\nreboot\nshutdown" choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">") -- cgit v1.3.1