trying out scratchpads

This commit is contained in:
sid 2026-05-11 10:30:55 +02:00
parent f06c30aa6e
commit 4deac779a0
4 changed files with 31 additions and 13 deletions

21
flake.lock generated
View file

@ -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": {

View file

@ -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";

View file

@ -19,6 +19,7 @@
./packages.nix
./rclone.nix
# ./recoll.nix
./scratchpad.nix
./shell-aliases.nix
./spotify-player.nix
./ssh-hosts.nix

View file

@ -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}"
];
};
}