trying hyprland plugins but no worky :sadge:
This commit is contained in:
parent
d127bddb0d
commit
d914e05efc
3 changed files with 577 additions and 21 deletions
|
|
@ -2,6 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
@ -46,8 +47,12 @@
|
|||
config = lib.mkIf config.desktop.hyprland.enable {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||
configPackages = [
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
|
||||
];
|
||||
extraPortals = [
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
hyprlock = {
|
||||
|
|
@ -56,10 +61,16 @@
|
|||
};
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage =
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
settings = {
|
||||
monitor = config.desktop.hyprland.monitors;
|
||||
workspace = config.desktop.hyprland.workspaces.workspaces;
|
||||
exec-once = [
|
||||
"hyprctl plugin load "
|
||||
(lib.mkIf (config.desktop.walker.enable) "elephant")
|
||||
(lib.mkIf (config.desktop.waybar.enable) "waybar")
|
||||
(lib.mkIf (config.desktop.wallpaper.enable) "waypaper --restore --random")
|
||||
|
|
@ -97,11 +108,13 @@
|
|||
"$mod, K, exec, playerctl play-pause"
|
||||
"$mod, L, exec, playerctl, next"
|
||||
"$mod, G, togglefloating,"
|
||||
# "$mod, H, hyprexpo:expo, toggle"
|
||||
"$mod, F1, exec, hyprlock"
|
||||
"$shiftmod, E, exec, codium"
|
||||
"$controlmod, up, exec, light -A 10"
|
||||
"$controlmod, down, exec, light -U 10"
|
||||
"$controlmod, Q, exec, hyprctl kill"
|
||||
|
||||
]
|
||||
++ (builtins.concatLists (
|
||||
builtins.genList (
|
||||
|
|
@ -152,7 +165,27 @@
|
|||
color = "rgba(1a1a1aee)";
|
||||
};
|
||||
};
|
||||
plugin = {
|
||||
hyprexpo = {
|
||||
columns = 3;
|
||||
gap_size = 20;
|
||||
bg_col = "rgb(e1e1e2)";
|
||||
workspace_method = "first 1";
|
||||
enable_gesture = true;
|
||||
gesture_distance = 300;
|
||||
gesture_positive = true;
|
||||
gesture_negative = true;
|
||||
};
|
||||
hyprtrails = {
|
||||
color = "rgba(1a1a1aee)";
|
||||
};
|
||||
};
|
||||
};
|
||||
plugins = [
|
||||
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails
|
||||
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprexpo
|
||||
|
||||
];
|
||||
};
|
||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue