2024-11-07 02:11:22 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-10-06 14:18:46 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) mkIf mkEnableOption;
|
|
|
|
cfg = config.snowhawk.dwm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.snowhawk.dwm = {
|
|
|
|
enable = mkEnableOption "niri home-manager module";
|
2024-11-07 03:14:42 +00:00
|
|
|
|
|
|
|
useXFixes = mkEnableOption "using unclutter-xfixes instead of unclutter";
|
2024-10-06 14:18:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# WM Stuff
|
|
|
|
xsession.numlock.enable = true;
|
2024-11-07 03:14:42 +00:00
|
|
|
|
|
|
|
services.unclutter = {
|
|
|
|
enable = true;
|
|
|
|
package = if cfg.useXFixes then pkgs.unclutter-xfixes else pkgs.unclutter;
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.services.unclutter.Service.ExecStart =
|
|
|
|
let cfg = config.services.unclutter;
|
|
|
|
in lib.mkForce ''
|
|
|
|
${cfg.package}/bin/unclutter \
|
|
|
|
--timeout ${toString cfg.timeout} \
|
|
|
|
--jitter ${toString (cfg.threshold - 1)} \
|
|
|
|
${lib.concatStrings cfg.extraOptions}
|
|
|
|
'';
|
2024-11-20 14:23:57 +00:00
|
|
|
|
|
|
|
home.file.".xinitrc".text = ''
|
|
|
|
[ -f ~/.Xresources ] && ${lib.getExe pkgs.xorg.xrdb} -merge ~/.Xresources
|
|
|
|
'';
|
2024-11-20 14:28:14 +00:00
|
|
|
|
|
|
|
xresources.properties = {
|
|
|
|
"Xft.lcdfilter" = "lcddefault";
|
|
|
|
"Xft.hintstyle" = "hintslight";
|
|
|
|
"Xft.hinting" = "1";
|
|
|
|
"Xft.antialias" = "1";
|
|
|
|
"Xft.rgba" = "none";
|
|
|
|
};
|
2024-10-06 14:18:46 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|