From 0691b7d309f29997328e69d3c6171272a0921ff2 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Wed, 5 Dec 2018 00:46:54 -0500 Subject: [PATCH] Add xmodmap and xresources service --- lain/.config/systemd/user/xmodmap@.service | 15 +++++++++++++++ lain/.config/systemd/user/xresources@.service | 15 +++++++++++++++ packages.yml | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 lain/.config/systemd/user/xmodmap@.service create mode 100644 lain/.config/systemd/user/xresources@.service diff --git a/lain/.config/systemd/user/xmodmap@.service b/lain/.config/systemd/user/xmodmap@.service new file mode 100644 index 0000000..4ef26cf --- /dev/null +++ b/lain/.config/systemd/user/xmodmap@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Merge user xmodmap on x11 display %i +Documentation=man:xmodmap(1) +After=x11@%i.target +Requisite=x11@%i.target + +[Service] +Environment=DISPLAY=:%i + +Type=oneshot +ExecStart=-/usr/bin/env xmodmap %E/X11/modmap +SyslogIdentifier=xmodmap + +[Install] +WantedBy=x11@%i.target diff --git a/lain/.config/systemd/user/xresources@.service b/lain/.config/systemd/user/xresources@.service new file mode 100644 index 0000000..2b8c9e7 --- /dev/null +++ b/lain/.config/systemd/user/xresources@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Merge user xrdb on x11 display %i +Documentation=man:xrdb(1) +Before=x11@%i.target +Requisite=x11@%i.target + +[Service] +Environment=DISPLAY=:%i + +Type=oneshot +ExecStart=/usr/bin/env flock %t/x11-xrdb@%i -c 'xrdb -merge %E/X11/resources' +SyslogIdentifier=xrdb + +[Install] +WantedBy=x11@%i.target diff --git a/packages.yml b/packages.yml index 3368dbe..f076659 100644 --- a/packages.yml +++ b/packages.yml @@ -2,6 +2,10 @@ Base: - fish - systemd: source: none + user-units: + - i3@0 + - xmodmap@0 + - xresources@0 Terminal: - alacritty