fixes 4 NORTH + yazi openers1
This commit is contained in:
@@ -1,20 +1,44 @@
|
||||
{ config, pkgs, pkgs-unstable, rice, lib, ... }:
|
||||
{ config, pkgs, pkgs-unstable, host, nvidia, rice, lib, ... }:
|
||||
let
|
||||
animation-speed = "2";
|
||||
transparency = rice.transparency;
|
||||
gap-size = 10;
|
||||
gap-size = 20;
|
||||
rounding = 10;
|
||||
border-width = 2;
|
||||
monitors = {
|
||||
main = {
|
||||
name = "eDP-1";
|
||||
resolution = "1920x1200";
|
||||
position = "0x0";
|
||||
scale = "1.0";
|
||||
xps = {
|
||||
main = {
|
||||
name = "eDP-1";
|
||||
resolution = "1920x1200";
|
||||
position = "0x0";
|
||||
scale = "1.0";
|
||||
};
|
||||
second = {
|
||||
name = "DP-1";
|
||||
resolution = "1920x1080";
|
||||
position = "1920x0";
|
||||
scale = "1.0";
|
||||
};
|
||||
};
|
||||
second = {
|
||||
name = "DP-1";
|
||||
resolution = "1920x1080";
|
||||
position = "1920x0";
|
||||
scale = "1.0";
|
||||
north = {
|
||||
main = {
|
||||
name = "DP-4";
|
||||
resolution = "2560x1440";
|
||||
position = "1920x0";
|
||||
scale = "1.0";
|
||||
};
|
||||
left = {
|
||||
name = "HDME-A-3";
|
||||
resolution = "1920x1080";
|
||||
position = "0x180";
|
||||
scale = "1.0";
|
||||
};
|
||||
right = {
|
||||
name = "HDMI-A-3";
|
||||
resolution = "1920x1080";
|
||||
position = "4480x80";
|
||||
scale = "1.0";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
@@ -73,50 +97,74 @@ in
|
||||
settings = {
|
||||
# source = /home/nx2/.config/hypr/hyprland-nosync.conf;
|
||||
|
||||
monitor = [
|
||||
"${monitors.main.name}, ${monitors.main.resolution}, ${monitors.main.position}, ${monitors.main.scale}"
|
||||
];
|
||||
monitor =
|
||||
if host == "NxXPS" then [
|
||||
"${monitors.xps.main.name}, ${monitors.xps.main.resolution}, ${monitors.xps.main.position}, ${monitors.xps.main.scale}"
|
||||
"${monitors.xps.second.name}, ${monitors.xps.second.resolution}, ${monitors.xps.second.position}, ${monitors.xps.second.scale}"
|
||||
] else [
|
||||
"${monitors.north.main.name}, ${monitors.north.main.resolution}, ${monitors.north.main.position}, ${monitors.north.main.scale}"
|
||||
"${monitors.north.left.name}, ${monitors.north.left.resolution}, ${monitors.north.left.position}, ${monitors.north.left.scale}"
|
||||
"${monitors.north.right.name}, ${monitors.north.right.resolution}, ${monitors.north.right.position}, ${monitors.north.right.scale}"
|
||||
];
|
||||
|
||||
workspace = [
|
||||
"${monitors.main.name}, 11"
|
||||
"${monitors.main.name}, 12"
|
||||
"${monitors.main.name}, 13"
|
||||
"${monitors.main.name}, 14"
|
||||
"${monitors.main.name}, 15"
|
||||
"${monitors.main.name}, 16"
|
||||
"${monitors.main.name}, 17"
|
||||
"${monitors.main.name}, 18"
|
||||
"${monitors.main.name}, 19"
|
||||
"${monitors.main.name}, 10,gapsin:0,gapsout:0"
|
||||
"${monitors.main.name}, 100"
|
||||
"${monitors.second.name}, 21,gapsin:0,gapsout:0"
|
||||
"${monitors.second.name}, 21"
|
||||
"${monitors.second.name}, 22"
|
||||
"${monitors.second.name}, 23"
|
||||
"${monitors.second.name}, 24"
|
||||
"${monitors.second.name}, 25"
|
||||
"${monitors.second.name}, 26"
|
||||
"${monitors.second.name}, 27"
|
||||
"${monitors.second.name}, 28"
|
||||
"${monitors.second.name}, 29"
|
||||
"${monitors.second.name}, 20"
|
||||
];
|
||||
workspace =
|
||||
let
|
||||
d1 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.main.name;
|
||||
d3 = if host == "NxXPS" then monitors.xps.second.name else monitors.north.left.name;
|
||||
d2 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.right.name;
|
||||
compact = ",gapsin:0,gapsout:0,rounding:0,bordersize:0";
|
||||
in
|
||||
[
|
||||
"${d1}, 11"
|
||||
"${d1}, 12"
|
||||
"${d1}, 13"
|
||||
"${d1}, 14"
|
||||
"${d1}, 15"
|
||||
"${d1}, 16"
|
||||
"${d1}, 17"
|
||||
"${d1}, 18"
|
||||
"${d1}, 19"
|
||||
"${d1}, 10${compact}"
|
||||
"${d1}, 100${compact}"
|
||||
"${d2}, 21${compact}"
|
||||
"${d2}, 22"
|
||||
"${d2}, 23"
|
||||
"${d2}, 24"
|
||||
"${d2}, 25"
|
||||
"${d2}, 26"
|
||||
"${d2}, 27"
|
||||
"${d2}, 28"
|
||||
"${d2}, 29"
|
||||
"${d2}, 20"
|
||||
"${d3}, 31"
|
||||
"${d3}, 32"
|
||||
"${d3}, 33"
|
||||
"${d3}, 34"
|
||||
"${d3}, 35"
|
||||
"${d3}, 36"
|
||||
"${d3}, 37"
|
||||
"${d3}, 38"
|
||||
"${d3}, 39"
|
||||
"${d3}, 30"
|
||||
];
|
||||
|
||||
"device:logitech-wireless-mouse-mx-master-1" = {
|
||||
sensitivity = -0.2;
|
||||
};
|
||||
|
||||
|
||||
# env = XCURSOR_SIZE,18
|
||||
|
||||
# env = GTK_IM_MODULE,ibus
|
||||
# env = QT_IM_MODULE,ibus
|
||||
# env = XMODIFIERS,@im=ibus
|
||||
env = if nvidia.enable == true then [
|
||||
"LIBVA_DRIVER_NAME,nvidia"
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"GBM_BACKEND,nvidia-drm"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
] else [];
|
||||
|
||||
input = {
|
||||
sensitivity = 0.1;
|
||||
kb_layout = "de";
|
||||
follow_mouse = "2";
|
||||
follow_mouse = "1";
|
||||
touchpad = {
|
||||
natural_scroll = true;
|
||||
scroll_factor = "0.9";
|
||||
@@ -126,7 +174,7 @@ in
|
||||
general = {
|
||||
gaps_in = builtins.div gap-size 2;
|
||||
gaps_out = gap-size;
|
||||
border_size = "1";
|
||||
border_size = border-width;
|
||||
"col.active_border" = "rgba(888888ff)";
|
||||
"col.inactive_border" = "rgba(000000ff)";
|
||||
|
||||
@@ -136,9 +184,7 @@ in
|
||||
};
|
||||
|
||||
decoration = {
|
||||
|
||||
rounding = "0";
|
||||
|
||||
rounding = rounding;
|
||||
drop_shadow = false;
|
||||
shadow_range = "20";
|
||||
shadow_offset = "0 0";
|
||||
@@ -162,7 +208,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
# bezier = "myBezier, 0.01, 0.9, 0.1, 1.0"; #o
|
||||
@@ -379,12 +424,13 @@ in
|
||||
# "SUPER, <,"
|
||||
"SUPER, Y, execr, waybar_mode set ' '"
|
||||
"SUPER, Y, submap, scrR"
|
||||
"SUPER, X, exec, pkill wlogout || wlogout --protocol layer-shell -b 5 -T 450 -B 450"
|
||||
"SUPER, C, exec, /home/nx2/scripts/quickconfig/quickconfig.sh "
|
||||
"SUPER, X, exec, pkill wlogout || wlogout --protocol layer-shell -b 3"
|
||||
# "SUPER, C, exec, /home/nx2/scripts/quickconfig/quickconfig.sh "
|
||||
"SUPER, C, exec, codium,"
|
||||
"SUPER, V, togglefloating, "
|
||||
"SUPER, B, exec, bitwarden-desktop"
|
||||
"SUPER, N, togglesplit"
|
||||
"SUPER, M, exec, /home/nx2/scripts/meme-full-screen/meme-full-screen.sh "
|
||||
# "SUPER, M, exec, /home/nx2/scripts/meme-full-screen/meme-full-screen.sh "
|
||||
# "SUPER, comma, exec, /home/nx2/scripts/change-language.sh"
|
||||
"SUPER, ., exec, echo key x:Prior | dotool"
|
||||
"SUPER, -, exec, echo key x:Next | dotool"
|
||||
@@ -442,9 +488,14 @@ in
|
||||
"SUPER, mouse:272, movewindow"
|
||||
"SUPER, mouse:273, resizewindow"
|
||||
];
|
||||
|
||||
bindl = [
|
||||
# ",switch:on:Lid Switch, exec, hyprlock &"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
|
||||
# .d8888. db db d8888b. 88b d88 d8b d88888b. .d8888.
|
||||
# 88' YP 88 88 88 '8D 88YbdP88 dP'Yb 88' '8b 88' YP
|
||||
# '8bo. 88 88 88oooY' 88 YP 88 d8. .8b 88. .8P '8bo.
|
||||
@@ -736,11 +787,14 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/hypr/hyprlock.conf".text = ''
|
||||
|
||||
home.file =
|
||||
let
|
||||
m = if host == "NxXPS" then monitors.xps.main.name else monitors.north.main.name;
|
||||
in
|
||||
{
|
||||
".config/hypr/hyprlock.conf".text = ''
|
||||
background {
|
||||
monitor = ${monitors.main.name}
|
||||
monitor = ${m}
|
||||
|
||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||
path = /home/nx2/Pictures/nix-wall.png
|
||||
@@ -808,7 +862,7 @@ in
|
||||
valign = bottom
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user