summaryrefslogtreecommitdiffstats
path: root/tv/2configs/xserver
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-04-25 00:17:25 +0200
committertv <tv@krebsco.de>2019-04-25 00:19:01 +0200
commit6213adeb7187be3ddeb76b3d49aee4b2363d9468 (patch)
tree776805d0346290e1635f586b285488347f38d767 /tv/2configs/xserver
parentb94aa28af6ddc3ac1be820d0bf0a1c7ae886f4d9 (diff)
tv: add urxvt config module
Diffstat (limited to 'tv/2configs/xserver')
-rw-r--r--tv/2configs/xserver/default.nix15
-rw-r--r--tv/2configs/xserver/urxvt.nix (renamed from tv/2configs/xserver/Xresources.nix)20
2 files changed, 17 insertions, 18 deletions
diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix
index e216025..95198ff 100644
--- a/tv/2configs/xserver/default.nix
+++ b/tv/2configs/xserver/default.nix
@@ -10,7 +10,7 @@ let
in {
imports = [
- ./Xresources.nix
+ ./urxvt.nix
];
environment.systemPackages = [
@@ -150,19 +150,6 @@ in {
};
};
- systemd.services.urxvtd = {
- wantedBy = [ "graphical.target" ];
- restartIfChanged = false;
- serviceConfig = {
- SyslogIdentifier = "urxvtd";
- ExecStart = "${pkgs.rxvt_unicode}/bin/urxvtd";
- Restart = "always";
- RestartSec = "2s";
- StartLimitBurst = 0;
- User = cfg.user.name;
- };
- };
-
tv.slock = {
enable = true;
user = cfg.user;
diff --git a/tv/2configs/xserver/Xresources.nix b/tv/2configs/xserver/urxvt.nix
index b6c43b7..2d504e1 100644
--- a/tv/2configs/xserver/Xresources.nix
+++ b/tv/2configs/xserver/urxvt.nix
@@ -1,6 +1,19 @@
with import <stockholm/lib>;
-{ config, pkgs, ... }: {
-
+{ config, pkgs, ... }: let
+ cfg.user = config.krebs.build.user;
+in {
+ systemd.services.urxvtd = {
+ wantedBy = [ "graphical.target" ];
+ restartIfChanged = false;
+ serviceConfig = {
+ SyslogIdentifier = "urxvtd";
+ ExecStart = "${pkgs.rxvt_unicode}/bin/urxvtd";
+ Restart = "always";
+ RestartSec = "2s";
+ StartLimitBurst = 0;
+ User = cfg.user.name;
+ };
+ };
tv.Xresources = {
"URxvt*cutchars" = ''"\\`\"'&()*,;<=>?@[]^{|}‘’"'';
"URxvt*eightBitInput" = "false";
@@ -40,7 +53,7 @@ with import <stockholm/lib>;
"URxvt*perl-ext" = "default,url-select";
"URxvt*keysym.M-u" = "perl:url-select:select_next";
"URxvt*url-select.launcher" =
- "/etc/profiles/per-user/${config.krebs.build.user.name}/bin/ff -new-tab";
+ "/etc/profiles/per-user/${cfg.user.name}/bin/ff -new-tab";
"URxvt*url-select.underline" = "true";
"URxvt*colorUL" = "#4682B4";
"URxvt.perl-lib" = "${pkgs.urxvt_perls}/lib/urxvt/perl";
@@ -57,5 +70,4 @@ with import <stockholm/lib>;
"fzmenu-urxvt*geometry" = "70x9";
"fzmenu-urxvt*internalBorder" = "1";
};
-
}