Add scale to Niri config
This commit is contained in:
parent
1b3613326f
commit
d2aebddc26
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, scale ? null, ...}: let
|
||||
{
|
||||
pkgs,
|
||||
scale ? null,
|
||||
...
|
||||
}: let
|
||||
terminal = "${pkgs.foot}/bin/footclient";
|
||||
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||
|
|
@ -53,6 +57,9 @@
|
|||
in {
|
||||
# Since native Home Manager doesn't have a programs.niri module yet,
|
||||
# we generate the KDL configuration file directly.
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard
|
||||
];
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
@ -129,11 +136,15 @@ in {
|
|||
focus-follows-mouse max-scroll-amount="10%"
|
||||
warp-mouse-to-focus
|
||||
}
|
||||
${if scale != null then ''
|
||||
${
|
||||
if scale != null
|
||||
then ''
|
||||
output "eDP-1" {
|
||||
scale ${toString scale}
|
||||
}
|
||||
'' else ""} window-rule {
|
||||
''
|
||||
else ""
|
||||
} window-rule {
|
||||
match app-id="vicinae"
|
||||
open-floating true
|
||||
}
|
||||
|
|
@ -150,8 +161,8 @@ ${if scale != null then ''
|
|||
Mod+Tab { toggle-overview; }
|
||||
|
||||
// Vicinae Binds
|
||||
Mod+C { spawn "vicinae" "vicinae://extensions/vicinae/clipboard/history"; }
|
||||
Mod+N { spawn "vicinae" "vicinae://extensions/vicinae/wm/switch-windows"; }
|
||||
Mod+C { spawn "vicinae" "vicinae://launch/clipboard/history"; }
|
||||
Mod+N { spawn "vicinae" "vicinae://launch/wm/switch-windows"; }
|
||||
Mod+Escape { spawn "vicinae" "open" "-q" "Power Management "; }
|
||||
Mod+Space { spawn "vicinae" "toggle"; }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue