summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-05-28 15:31:36 +0200
committerGitHub <noreply@github.com>2026-05-28 15:31:36 +0200
commit80de1efda4ad936ae03057b1b22bd096cd15c69a (patch)
tree6ab56c353e3b6eebd177b853fdff7266703b102d
parentdc18aedc27afe3652a7ffa10ec9d544cac24f5b5 (diff)
Update cat.nix
-rw-r--r--nixos/cat.nix24
1 files changed, 22 insertions, 2 deletions
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 ">")