diff --git a/flake.lock b/flake.lock index 6d59dbd..c2cdbb1 100644 --- a/flake.lock +++ b/flake.lock @@ -5478,11 +5478,11 @@ ] }, "locked": { - "lastModified": 1778487558, - "narHash": "sha256-rjQ8FLqUYB+e4gv+fh63e9PuGf8O32KKqixPuBUujJc=", + "lastModified": 1778490594, + "narHash": "sha256-4n/c3e6DrP7rE9ghZCbop5DlyqvogvfMoNIddhJdMKc=", "owner": "nix-community", "repo": "NUR", - "rev": "53583e32ec23953a8849d7f823da2b267f61821f", + "rev": "b2fc44f35b6dddefa62c4d430e609d8ff958f1b2", "type": "github" }, "original": { @@ -6856,18 +6856,17 @@ "stylix": "stylix_8" }, "locked": { - "lastModified": 1778449158, - "narHash": "sha256-CFmp5RjuwC6OjoSFNE9Fu4kJ526W6Y6G+SEXqRndP/I=", - "ref": "release-25.11", - "rev": "d953dd7f8a5d66dc1e98976a9d9a3f76f8e649bc", - "revCount": 72, + "lastModified": 1778186150, + "narHash": "sha256-+c+hppYv49meqibMZieHw4TGW8HL3qGGpBn9k0XIGX0=", + "ref": "refs/heads/develop", + "rev": "fe6df369cb0c77d2f991919e61a9d1aaf2bc9fa6", + "revCount": 42, "type": "git", - "url": "https://git.sid.ovh/sid/synix.git" + "url": "file:///home/sid/src/synix" }, "original": { - "ref": "release-25.11", "type": "git", - "url": "https://git.sid.ovh/sid/synix.git" + "url": "file:///home/sid/src/synix" } }, "systems": { diff --git a/flake.nix b/flake.nix index f49450d..699e31a 100644 --- a/flake.nix +++ b/flake.nix @@ -8,8 +8,8 @@ home-manager.url = "github:nix-community/home-manager/release-25.11"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; - synix.url = "git+https://git.sid.ovh/sid/synix.git?ref=release-25.11"; - # synix.url = "git+file:///home/sid/src/synix"; + # synix.url = "git+https://git.sid.ovh/sid/synix.git?ref=release-25.11"; + synix.url = "git+file:///home/sid/src/synix"; synix.inputs.nixpkgs.follows = "nixpkgs"; servers.url = "git+https://git.sid.ovh/sid/sid.ovh.git"; diff --git a/users/sid/home/hyprland/default.nix b/users/sid/home/hyprland/default.nix index bc37213..00c0ea9 100644 --- a/users/sid/home/hyprland/default.nix +++ b/users/sid/home/hyprland/default.nix @@ -19,6 +19,7 @@ ./packages.nix ./rclone.nix # ./recoll.nix + ./scratchpad.nix ./shell-aliases.nix ./spotify-player.nix ./ssh-hosts.nix diff --git a/users/sid/home/hyprland/scratchpad.nix b/users/sid/home/hyprland/scratchpad.nix new file mode 100644 index 0000000..8b491e2 --- /dev/null +++ b/users/sid/home/hyprland/scratchpad.nix @@ -0,0 +1,18 @@ +let + term = "kitty"; + ws = "scratchpad"; + + exec = "hyprctl clients | grep -q 'workspace: special:${ws}' || ${term} & hyprctl dispatch togglespecialworkspace special:${ws}"; + +in +{ + wayland.windowManager.hyprland.settings = { + bind = [ "$mod, minus, exec, ${exec}" ]; + windowrule = [ + "size 80% 80%, class:^(${term})$, workspace:special:${ws}" + "center, class:^(${term})$, workspace:special:${ws}" + "float, class:^(${term})$, workspace:special:${ws}" + "bordersize 2, class:^(${term})$, workspace:special:${ws}" + ]; + }; +}