update hyprland config on laptop
workspace switch hotkeys resizing keys moonlander default layout on laptop add monitor rotation remove scaling on laptop display
This commit is contained in:
parent
033ce8dc23
commit
fddf319df9
6 changed files with 87 additions and 37 deletions
|
|
@ -5,13 +5,15 @@ let
|
|||
|
||||
renderDisplaysForHyprland = displays:
|
||||
"# === DISPLAY MODULE ===\n"
|
||||
+ concatStringsSep "\n" (map displayHyprlandSetting displays);
|
||||
+ concatStringsSep "\n" (map displayHyprlandSetting displays)
|
||||
+ "\n";
|
||||
|
||||
displayHyprlandSetting = display:
|
||||
"monitor = " + specificDisplay display +
|
||||
", " + resToString display.resolution +
|
||||
", " + positionToHyprlandString display.position +
|
||||
", " + toString display.scaling;
|
||||
", " + toString display.scaling +
|
||||
", " + "transform," + toString display.rotation;
|
||||
|
||||
swaybgJob = displays:
|
||||
{
|
||||
|
|
@ -28,7 +30,7 @@ let
|
|||
};
|
||||
|
||||
swaybgCmd = display:
|
||||
if (display.wallpaper != "") then "-o ${display.name} -i ${display.wallpaper}" else "";
|
||||
if (display.wallpaper != "") then "-o ${display.name} -i ${display.wallpaper} -m fill" else "";
|
||||
|
||||
specificDisplay = display:
|
||||
if display.description == ""
|
||||
|
|
@ -86,6 +88,10 @@ let
|
|||
type = types.float;
|
||||
default = 1.0;
|
||||
};
|
||||
rotation = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
};
|
||||
resolution = mkOption {
|
||||
description = "res";
|
||||
type = resolutionType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue