summaryrefslogtreecommitdiffstats
path: root/tv/2configs
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
commit542d290543b9c9965f906548397ba0d8b761898e (patch)
tree4241b8d2d17b0b1609cd63cc0e9860c7fabaefda /tv/2configs
parent4e096de5fc0516d3660b617f4c06a92831cdbd70 (diff)
tv: add urxvt config module
Diffstat (limited to 'tv/2configs')
-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 e2160258c..95198ff9e 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 b6c43b71b..2d504e165 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";
};
-
}