trying out scratchpads
This commit is contained in:
parent
f06c30aa6e
commit
4deac779a0
4 changed files with 31 additions and 13 deletions
|
|
@ -19,6 +19,7 @@
|
|||
./packages.nix
|
||||
./rclone.nix
|
||||
# ./recoll.nix
|
||||
./scratchpad.nix
|
||||
./shell-aliases.nix
|
||||
./spotify-player.nix
|
||||
./ssh-hosts.nix
|
||||
|
|
|
|||
18
users/sid/home/hyprland/scratchpad.nix
Normal file
18
users/sid/home/hyprland/scratchpad.nix
Normal 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}"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue