add(hyprland): plugin is fixed!
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hypr/binds.nix
|
./hypr/binds.nix
|
||||||
./hypr/general.nix
|
./hypr/general.nix
|
||||||
@@ -12,4 +12,7 @@
|
|||||||
];
|
];
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support...
|
wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support...
|
||||||
|
wayland.windowManager.hyprland.plugins = [
|
||||||
|
pkgs.hyprlandPlugins.hyprsplit
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,22 +71,18 @@
|
|||||||
"SUPER, Tab, Cycle workspaces, workspace, previous"
|
"SUPER, Tab, Cycle workspaces, workspace, previous"
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
# Generate binds for Super + [1-10] to switch workspaces
|
# Generate binds for Super + [1-5] to switch workspaces on current monitor
|
||||||
# and Super + Shift + [1-10] to move window to workspace
|
# and Super + Shift + [1-5] to move window to workspace on current monitor
|
||||||
builtins.concatLists (builtins.genList (
|
builtins.concatLists (builtins.genList (
|
||||||
i: let
|
i: let
|
||||||
ws = i + 1;
|
ws = i + 1;
|
||||||
key = toString (
|
key = toString ws;
|
||||||
if ws == 10
|
|
||||||
then 0
|
|
||||||
else ws
|
|
||||||
);
|
|
||||||
in [
|
in [
|
||||||
"SUPER, ${key}, Switch to workspace ${toString ws}, exec, hakase-workspace-switch-force ${toString ws}"
|
"SUPER, ${key}, Switch to workspace ${toString ws}, split:workspace, ${toString ws}"
|
||||||
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, movetoworkspace, ${toString ws}"
|
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, split:movetoworkspace, ${toString ws}"
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
10)
|
5)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"killall -SIGUSR2 .ghostty-wrappe"
|
"killall -SIGUSR2 .ghostty-wrappe"
|
||||||
];
|
];
|
||||||
exec-once = [
|
exec-once = [
|
||||||
|
"hyprpm reload -n"
|
||||||
"[workspace special:preload silent] uwsm app -- firefox"
|
"[workspace special:preload silent] uwsm app -- firefox"
|
||||||
"[workspace special:preload silent] uwsm app -- firefox -P YouTube"
|
"[workspace special:preload silent] uwsm app -- firefox -P YouTube"
|
||||||
"[workspace special:preload silent] uwsm app -- xdg-terminal-exec"
|
"[workspace special:preload silent] uwsm app -- xdg-terminal-exec"
|
||||||
|
|||||||
@@ -18,5 +18,12 @@
|
|||||||
direct_scanout = true;
|
direct_scanout = true;
|
||||||
cm_enabled = true;
|
cm_enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin = {
|
||||||
|
hyprsplit = {
|
||||||
|
num_workspaces = 5;
|
||||||
|
persistent_workspaces = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+25
-4
@@ -333,11 +333,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766498696,
|
"lastModified": 1767201430,
|
||||||
"narHash": "sha256-74qO6ynwUav+QqNhBVn/4yoBCpU6r3/eCkX/V11uL+E=",
|
"narHash": "sha256-4BUM06GqP5YAVnWvxkdeYuweMF6n+oKdxJI5S9TmA1E=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "f7f357f15f83612078eb0919ca08b71cac01c25e",
|
"rev": "48a024e0322bbd7c4c88126498ec478444ec4cb2",
|
||||||
"revCount": 6741,
|
"revCount": 6763,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -448,6 +448,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprsplit": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland": [
|
||||||
|
"hyprland"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1766546378,
|
||||||
|
"narHash": "sha256-GSoSLHErh1mRfgXM57W98L67MMBHKCemHzxoZPrejSI=",
|
||||||
|
"owner": "shezdy",
|
||||||
|
"repo": "hyprsplit",
|
||||||
|
"rev": "9a8b55f4269bfa5c59d03ed9f4502f433572c616",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "shezdy",
|
||||||
|
"repo": "hyprsplit",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hyprtoolkit": {
|
"hyprtoolkit": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aquamarine": [
|
"aquamarine": [
|
||||||
@@ -764,6 +784,7 @@
|
|||||||
"elephant": "elephant",
|
"elephant": "elephant",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
|
"hyprsplit": "hyprsplit",
|
||||||
"nixovim": "nixovim",
|
"nixovim": "nixovim",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
|||||||
@@ -27,6 +27,10 @@
|
|||||||
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
hyprsplit = {
|
||||||
|
url = "github:shezdy/hyprsplit";
|
||||||
|
inputs.hyprland.follows = "hyprland";
|
||||||
|
};
|
||||||
nixovim = {
|
nixovim = {
|
||||||
# FIXME: treesitter does not install automatically (disabled due to read-only problems)
|
# FIXME: treesitter does not install automatically (disabled due to read-only problems)
|
||||||
url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
|
url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
|
||||||
|
|||||||
Reference in New Issue
Block a user