user configs and monitor settings for hyprland
This commit is contained in:
@@ -16,10 +16,26 @@ in {
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = [
|
||||
"DP-3, 2560x1440@240, auto, auto, bitdepth, 10"
|
||||
"eDP-1,1920x1200@60.02,auto,1"
|
||||
];
|
||||
# monitor = [
|
||||
# "DP-3, 2560x1440@240, auto, auto, bitdepth, 10"
|
||||
# "eDP-1,1920x1200@60.02,auto,1"
|
||||
# ];
|
||||
monitor = map (
|
||||
m: "${m.name},${
|
||||
if m.enabled
|
||||
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1${
|
||||
if m.bitDepth != null
|
||||
then ",bitdepth,${toString m.bitDepth}"
|
||||
else ""
|
||||
}"
|
||||
else "disable"
|
||||
}"
|
||||
) (config.monitors);
|
||||
|
||||
workspace = map (
|
||||
m: "name:${m.workspace},monitor:${m.name}"
|
||||
) (lib.filter (m: m.enabled && m.workspace != null) config.monitors);
|
||||
|
||||
env = [
|
||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||
];
|
||||
|
||||
@@ -30,6 +30,11 @@ in {
|
||||
type = types.int;
|
||||
default = 60;
|
||||
};
|
||||
bitDepth = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
example = 10;
|
||||
};
|
||||
position = mkOption {
|
||||
type = types.str;
|
||||
default = "auto";
|
||||
|
||||
Reference in New Issue
Block a user