diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-24 22:09:44 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-24 22:09:44 +0200 |
| commit | d02babb482b3189bbafec3e1ed12aa6565b6e377 (patch) | |
| tree | bc9d0a0e2bebe6c118d8d993bf98aa0ca9cb92ff | |
| parent | 13ecfb0a3bf119e996487aa15db50d9778d3a22a (diff) | |
scripts: add loadconfig
| -rw-r--r-- | common/home/hyprland/default.nix | 9 | ||||
| -rw-r--r-- | common/home/scripts/loadconfig | 15 |
2 files changed, 23 insertions, 1 deletions
diff --git a/common/home/hyprland/default.nix b/common/home/hyprland/default.nix index edffdd6..be5fe0e 100644 --- a/common/home/hyprland/default.nix +++ b/common/home/hyprland/default.nix @@ -14,7 +14,8 @@ "$mod, Escape, exec, hyprlock" "$mod, Space, exec, wofi --show run" "$mod, O, exec, openproject" - "$mod, v, exec, openproject -e nvim" + "$mod, V, exec, openproject -e nvim" + "$mod+Shift, S, exec, loadconfig" "$mod+Shift, Return, exec, alacritty" "$mod+Shift, B, exec, firefox" @@ -132,5 +133,11 @@ swallow_regex = "^(Alacritty)$"; animate_manual_resizes = true; }; + + windowrulev2 = [ + "pin,class:^(Hyprland::WinClass::Floating)$" + "float,class:^(Hyprland::WinClass::Floating)$" + "center,class:^(Hyprland::WinClass::Floating)$" + ]; }; } diff --git a/common/home/scripts/loadconfig b/common/home/scripts/loadconfig new file mode 100644 index 0000000..9f3fe57 --- /dev/null +++ b/common/home/scripts/loadconfig @@ -0,0 +1,15 @@ +#!/bin/sh + +cmd=$(printf "test\nswitch" | wofi -d -p 'Loading Type') + +[ -z "$cmd" ] && exit + +echo CMD = $cmd + +alacritty --class Hyprland::WinClass::Floating -e sh -c " +sudo nixos-rebuild $cmd --flake '$HOME/global/system/config/' +echo +echo Press [Return] to continue +echo +read +" |