mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-23 01:52:46 +00:00
feat: hyprland scrolling
This commit is contained in:
@@ -12,6 +12,7 @@ in
|
||||
{
|
||||
options.desktops.hyprland = {
|
||||
enable = lib.mkEnableOption "Enable a DE based on Hyprland";
|
||||
scrolling = lib.mkEnableOption "Hyprland scrolling wm";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -34,8 +35,12 @@ in
|
||||
};
|
||||
input.numlock_by_default = true;
|
||||
};
|
||||
plugins = with pkgs.hyprlandPlugins; [
|
||||
];
|
||||
plugins = lib.mkIf cfg.scrolling (
|
||||
with pkgs.hyprlandPlugins;
|
||||
[
|
||||
hyprscrolling
|
||||
]
|
||||
);
|
||||
};
|
||||
home = {
|
||||
packages = with pkgs; [ grim ];
|
||||
|
||||
@@ -57,7 +57,9 @@ in
|
||||
layout.struts.top = 80;
|
||||
};
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
general.layout = "master";
|
||||
plugin.hyprscrolling = lib.mkIf config.desktops.hyprland.scrolling {
|
||||
column_width = 0.4;
|
||||
};
|
||||
master = {
|
||||
orientation = "center";
|
||||
slave_count_for_center_master = 0;
|
||||
@@ -65,19 +67,13 @@ in
|
||||
allow_small_split = true;
|
||||
};
|
||||
render.direct_scanout = 0;
|
||||
/*
|
||||
monitor = [
|
||||
"${monitorline},sdrbrightness,1.3"
|
||||
"DP-3,addreserved,340,0,0,0"
|
||||
];
|
||||
*/
|
||||
monitorv2 = {
|
||||
output = "DP-3";
|
||||
mode = "3840x2160@144";
|
||||
position = "0x0";
|
||||
scale = 1;
|
||||
bitdepth = 10;
|
||||
addreserved = "340,0,0,0";
|
||||
addreserved = "80,0,0,0";
|
||||
cm = if cfg.hdr then "hdredid" else "srgb";
|
||||
sdr_min_luminance = 0.25;
|
||||
sdr_max_luminance = 250;
|
||||
@@ -88,7 +84,7 @@ in
|
||||
min_refresh_rate = 48;
|
||||
no_break_fs_vrr = 1;
|
||||
};
|
||||
experimental.xx_color_management_v4 = true;
|
||||
# experimental.xx_color_management_v4 = true;
|
||||
};
|
||||
|
||||
programs.waybar.settings.mainBar =
|
||||
|
||||
@@ -19,11 +19,13 @@ in
|
||||
home-manager.users.${username} = {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bindr = [ "SUPER,SUPER_L,exec,uwsm app -- ${lib.getExe pkgs.walker}" ];
|
||||
layerrule = [
|
||||
# TODO: Add layer rules for walker
|
||||
"blur, anyrun"
|
||||
"ignorealpha 0.3, anyrun"
|
||||
];
|
||||
/*
|
||||
layerrule = [
|
||||
# TODO: Add layer rules for walker
|
||||
"blur, anyrun"
|
||||
"ignorealpha 0.3, anyrun"
|
||||
];
|
||||
*/
|
||||
};
|
||||
programs.niri.settings.binds."Mod+Space".action.spawn = [ (lib.getExe pkgs.walker) ];
|
||||
home.packages = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user