diff options
Diffstat (limited to 'nixos/cat.nix')
| -rw-r--r-- | nixos/cat.nix | 24 |
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 ">") |
