update, add hyprland plugin

This commit is contained in:
Kopatz
2025-02-15 16:32:56 +01:00
parent 865527d74b
commit c9fdecc704
6 changed files with 118 additions and 82 deletions

View File

@@ -1,8 +1,9 @@
{
imports = [
./hyprland-settings.nix
./hyprland-settings.nix
./hyprspace.nix
#./hyprland-xwaylandvideobridge.nix not needed anymore
./waybar.nix
./hyprlock.nix
./waybar.nix
./hyprlock.nix
];
}

View File

@@ -77,10 +77,8 @@ in {
touchpad = { natural_scroll = true; };
sensitivity = if osConfig.networking.hostName == "kop-pc" then
-0.4
else
0; # -1.0 - 1.0, 0 means no modification.
accel_profile = "flat";
sensitivity = 0;
};
cursor = { no_hardware_cursors = true; };
@@ -115,7 +113,7 @@ in {
#blur_passes = 1
#blur_new_optimizations = on
shadow = {
shadow = {
enabled = true;
range = 4;
render_power = 3;

View File

@@ -0,0 +1,26 @@
{ config, osConfig, pkgs, inputs, lib, ... }:
let cfg = osConfig.custom.graphical.hyprland;
in {
config = lib.mkIf cfg.enable {
wayland.windowManager.hyprland = {
plugins = [ pkgs.hyprlandPlugins.hyprspace ];
settings = {
bind = [
"$mainMod, TAB, overview:toggle"
"$mainMod SHIFT, TAB, overview:toggle, all"
];
plugin = [{
overview = {
affectStrut = false;
hideTopLayers = true;
panelHeight = 250;
showEmptyWorkspace = false;
showNewWorkspace = true;
disableBlur = true;
};
}];
};
};
};
}