stockholm/lass/2configs/xresources.nix

64 lines
1.6 KiB
Nix
Raw Normal View History

2017-02-22 20:58:13 +00:00
{ config, pkgs, ... }:
with import <stockholm/lib>;
let
xresources = pkgs.writeText "Xresources" ''
URxvt*scrollBar: false
URxvt*urgentOnBell: true
URxvt*SaveLines: 4096
2017-10-09 11:02:14 +00:00
URxvt.font: ${config.lass.fonts.regular}
URxvt.boldFont: ${config.lass.fonts.bold}
URxvt.italicFont: ${config.lass.fonts.italic}
2017-02-22 20:58:13 +00:00
! ref https://github.com/muennich/urxvt-perls
URxvt.perl-lib: ${pkgs.urxvt_perls}/lib/urxvt/perl
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
${optionalString (hasAttr "browser" config.lass)
"URxvt.url-select.launcher: ${config.lass.browser.select}/bin/browser-select"
}
2017-02-22 20:58:13 +00:00
URxvt.url-select.underline: true
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.intensityStyles: false
URxvt*background: #000000
URxvt*foreground: #d0d7d0
URxvt*cursorColor: #f042b0
URxvt*cursorColor2: #f0b000
URxvt*cursorBlink: off
URxvt*.pointerBlank: true
URxvt*.pointerBlankDelay: 987654321
URxvt*.pointerColor: #f042b0
URxvt*.pointerColor2: #050505
2017-04-30 16:49:09 +00:00
URxvt*color0: #232342
2017-02-22 20:58:13 +00:00
'';
in {
2017-03-14 10:16:41 +00:00
systemd.services.xresources = {
2017-02-22 20:58:13 +00:00
description = "xresources";
2017-03-14 10:16:41 +00:00
wantedBy = [ "multi-user.target" ];
after = [ "display-manager.service" ];
2017-02-22 20:58:13 +00:00
environment = {
DISPLAY = ":0";
};
restartIfChanged = true;
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.xorg.xrdb}/bin/xrdb -merge ${xresources}";
2017-02-23 15:33:00 +00:00
Restart = "on-failure";
2017-03-14 10:16:41 +00:00
User = "lass";
2017-02-22 20:58:13 +00:00
};
};
}