sisko/home: Configure hypr* in nix

This commit is contained in:
2026-06-05 23:55:23 +02:00
parent 1fc54a31cd
commit fc9e1572d1
10 changed files with 931 additions and 97 deletions
+146
View File
@@ -0,0 +1,146 @@
{ lib, config, ... }:
{
wayland.windowManager.hyprland = {
systemd.enable = false; # Required for UWSM
systemd.enableXdgAutostart = false;
configType = "lua";
settings =
let
wpDir = "${config.home.homeDirectory}/Pictures/wallpapers";
in
{
on._args = [
"hyprland.start"
(lib.generators.mkLuaInline (
''
function()
''
+
lib.concatMapStringsSep "\n" (cmd: ''hl.exec_cmd("${cmd}")'') [
"swaync"
"hyprswitch init --size-factor 5 &"
"wl-paste --type text --watch cliphist store #Stores only text data"
"wl-paste --type image --watch cliphist store #Stores only image data"
# TODO: the hyprpaper hm-module still generates the old config format, use ipc temporarily
"hyprctl hyprpaper wallpaper 'DP-1, ${wpDir}/Ultrawide_Stray_City.png'"
"hyprctl hyprpaper wallpaper 'DP-2, ${wpDir}/cyberpunk-gas-station-1.jpg'"
]
+ ''
end
''
))
];
monitor = [
# Sisko
{
output = "desc:Philips Consumer Electronics Company 49M2C8900 AU42525000628";
mode = "highres@highrr";
position = "0x0";
scale = "1";
supports_hdr = 1;
}
{
output = "desc:LG Electronics LG ULTRAWIDE 407NTABCV312";
mode = "highres@highrr";
position = "600x-1440";
scale = "1";
supports_hdr = 1;
}
# fa-t14-2025
# TODO
# Other
{
output = "";
mode = "preferred";
position = "auto";
scale = "auto";
}
];
config = {
general = {
gaps_in = 8;
gaps_out = 12;
border_size = 1;
"col.active_border" = {
colors = [
"rgba(33ccffee)"
"rgba(00ff99ee)"
];
angle = 45;
};
"col.inactive_border" = "rgba(595959aa)";
resize_on_border = false;
allow_tearing = false;
layout = "dwindle";
};
decoration = {
rounding = 8;
active_opacity = 1.0;
inactive_opacity = 1.0;
shadow = {
enabled = true;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};
blur = {
enabled = true;
size = 3;
passes = 1;
vibrancy = 0.1696;
};
};
animations.enabled = false; # TODO
dwindle = {
preserve_split = true;
};
master = {
new_status = "master";
};
binds = {
movefocus_cycles_fullscreen = 1;
};
misc = {
force_default_wallpaper = 0;
disable_hyprland_logo = true;
};
input = {
kb_layout = "us";
kb_variant = "intl";
kb_model = "";
kb_options = "ctrl:nocaps";
kb_rules = "";
follow_mouse = 1;
sensitivity = 0;
touchpad = {
natural_scroll = false;
};
};
};
};
};
}