feat: add hyprscratch scratchpad management with rule reapply fork
- Add hyprscratch from colonelpanic8/reapply-rules-on-toggle fork that reapplies size/position/float rules on every toggle (not just spawn) - Configure 9 scratchpads: htop, volume, spotify, element, slack, transmission, dropdown, gmail, messages - Use clean mode (hide on workspace change) and auto-dismiss (only dropdown persists) - Fix pavucontrol class (org.pulseaudio.pavucontrol) and dropdown position (offset by taffybar height) - Add kanshi-sni, dbus-menu, dbus-hslogger flake inputs and follows Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
63
nixos/flake.lock
generated
63
nixos/flake.lock
generated
@@ -475,6 +475,27 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-ignore-nix_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"kanshi-sni",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1762808025,
|
||||
"narHash": "sha256-XmjITeZNMTQXGhhww6ed/Wacy2KzD6svioyCX7pkUu4=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-sync-rs": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
@@ -484,11 +505,11 @@
|
||||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770784385,
|
||||
"narHash": "sha256-EOKx6nqDMY0jRA65NVgYarlzOxfYNWM3Mso4oNJ6RA0=",
|
||||
"lastModified": 1770787421,
|
||||
"narHash": "sha256-rkFoV37meFqOImTwH/0dNrBf1r4ZkoU8g85NKwLLAMY=",
|
||||
"owner": "colonelpanic8",
|
||||
"repo": "git-sync-rs",
|
||||
"rev": "670b127a9e29b463e27ac5bac002b7ac612df93b",
|
||||
"rev": "14032471eb80ae69b17c85066208a000062d0fe9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -915,15 +936,16 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1767812182,
|
||||
"narHash": "sha256-w91iSY7sor8DmBaUv2zYByf0lPWtWLqVn4LitmxZV9E=",
|
||||
"owner": "sashetophizika",
|
||||
"lastModified": 1770789464,
|
||||
"narHash": "sha256-ZP9yyJERehoCl18QwaSHq2eh2UgBr7ZjnnEXk5z2WaA=",
|
||||
"owner": "colonelpanic8",
|
||||
"repo": "hyprscratch",
|
||||
"rev": "28fd0f9774b4be6034301a5484b00800eb6f3747",
|
||||
"rev": "8a20dd005e80935b5cdd21568605cf7023d58293",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "sashetophizika",
|
||||
"owner": "colonelpanic8",
|
||||
"ref": "reapply-rules-on-toggle",
|
||||
"repo": "hyprscratch",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -1099,6 +1121,30 @@
|
||||
},
|
||||
"parent": []
|
||||
},
|
||||
"kanshi-sni": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"flake-utils"
|
||||
],
|
||||
"git-ignore-nix": "git-ignore-nix_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770750664,
|
||||
"narHash": "sha256-rwDki2UKyZ90LefJLCGPBTZSMNgPGdhmVq0Swf7Pa+8=",
|
||||
"owner": "taffybar",
|
||||
"repo": "kanshi-sni",
|
||||
"rev": "d2c49b844f6f4d1988996214fa5bdf5c3dd0748a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "taffybar",
|
||||
"repo": "kanshi-sni",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mova": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@@ -1608,6 +1654,7 @@
|
||||
"hyprland-plugins": "hyprland-plugins",
|
||||
"hyprscratch": "hyprscratch",
|
||||
"imalison-taffybar": "imalison-taffybar",
|
||||
"kanshi-sni": "kanshi-sni",
|
||||
"nix": "nix",
|
||||
"nixified-ai": "nixified-ai",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
|
||||
@@ -55,6 +55,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
kanshi-sni = {
|
||||
url = "github:taffybar/kanshi-sni";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-utils.follows = "flake-utils";
|
||||
};
|
||||
};
|
||||
|
||||
# Hyprland and plugins from official flakes for proper plugin compatibility
|
||||
hyprland = {
|
||||
url = "git+https://github.com/hyprwm/Hyprland?submodules=1&ref=refs/tags/v0.53.0";
|
||||
@@ -70,6 +78,11 @@
|
||||
inputs.hyprland.follows = "hyprland";
|
||||
};
|
||||
|
||||
hyprscratch = {
|
||||
url = "github:colonelpanic8/hyprscratch/reapply-rules-on-toggle";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
railbird-secrets = {
|
||||
url = "git+ssh://gitea@dev.railbird.ai:1123/railbird/secrets-flake.git";
|
||||
inputs = {
|
||||
@@ -112,6 +125,8 @@
|
||||
status-notifier-item.follows = "status-notifier-item";
|
||||
xmonad.follows = "xmonad";
|
||||
xmonad-contrib.follows = "xmonad-contrib";
|
||||
dbus-menu.follows = "dbus-menu";
|
||||
dbus-hslogger.follows = "dbus-hslogger";
|
||||
weeder-nix.inputs.pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
@@ -123,6 +138,11 @@
|
||||
flake-utils.follows = "flake-utils";
|
||||
xmonad.follows = "xmonad";
|
||||
taffybar.follows = "taffybar";
|
||||
dbus-menu.follows = "dbus-menu";
|
||||
dbus-hslogger.follows = "dbus-hslogger";
|
||||
gtk-sni-tray.follows = "gtk-sni-tray";
|
||||
gtk-strut.follows = "gtk-strut";
|
||||
status-notifier-item.follows = "status-notifier-item";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -142,6 +162,8 @@
|
||||
flake-utils.follows = "flake-utils";
|
||||
git-ignore-nix.follows = "git-ignore-nix";
|
||||
status-notifier-item.follows = "status-notifier-item";
|
||||
gtk-strut.follows = "gtk-strut";
|
||||
dbus-menu.follows = "dbus-menu";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -163,6 +185,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
dbus-menu = {
|
||||
url = "github:taffybar/dbus-menu";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-utils.follows = "flake-utils";
|
||||
git-ignore-nix.follows = "git-ignore-nix";
|
||||
};
|
||||
};
|
||||
|
||||
dbus-hslogger = {
|
||||
url = "github:IvanMalison/dbus-hslogger";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
vscode-server = {
|
||||
url = "github:nix-community/nixos-vscode-server";
|
||||
inputs = {
|
||||
|
||||
@@ -10,10 +10,77 @@ makeEnable config "myModules.hyprland" true {
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.hyprscratch.homeModules.default
|
||||
{
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
systemdTarget = "hyprland-session.target";
|
||||
};
|
||||
|
||||
programs.hyprscratch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
daemon_options = "clean";
|
||||
global_options = "";
|
||||
global_rules = "float;size monitor_w*0.95 monitor_h*0.95;center";
|
||||
|
||||
htop = {
|
||||
command = "alacritty --class htop-scratch --title htop -e htop";
|
||||
class = "htop-scratch";
|
||||
};
|
||||
|
||||
volume = {
|
||||
command = "pavucontrol";
|
||||
class = "org.pulseaudio.pavucontrol";
|
||||
};
|
||||
|
||||
spotify = {
|
||||
command = "spotify";
|
||||
class = "spotify";
|
||||
};
|
||||
|
||||
element = {
|
||||
command = "element-desktop";
|
||||
class = "Element";
|
||||
};
|
||||
|
||||
slack = {
|
||||
command = "slack";
|
||||
class = "Slack";
|
||||
};
|
||||
|
||||
transmission = {
|
||||
command = "transmission-gtk";
|
||||
class = "transmission-gtk";
|
||||
};
|
||||
|
||||
dropdown = {
|
||||
command = "ghostty --config-file=/home/imalison/.config/ghostty/dropdown";
|
||||
class = "com.mitchellh.ghostty.dropdown";
|
||||
options = "persist";
|
||||
rules = "float;size monitor_w monitor_h*0.5;move 0 60;noborder;noshadow;animation slide";
|
||||
};
|
||||
|
||||
gmail = {
|
||||
command = "google-chrome-stable --new-window https://mail.google.com/mail/u/0/#inbox";
|
||||
class = "google-chrome";
|
||||
title = "Gmail";
|
||||
};
|
||||
|
||||
messages = {
|
||||
command = "google-chrome-stable --new-window https://messages.google.com/web/conversations";
|
||||
class = "google-chrome";
|
||||
title = "Messages";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
# Hyprland-specific packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Hyprland utilities
|
||||
kanshi # Monitor hotplug management
|
||||
hyprpaper # Wallpaper
|
||||
hypridle # Idle daemon
|
||||
hyprlock # Screen locker
|
||||
|
||||
Reference in New Issue
Block a user