diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-05-04 16:54:47 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-05-04 16:54:47 -0400 |
| commit | 05ed9e274990110adbcbefa85aa07a80c524cda7 (patch) | |
| tree | c876709bcb3a698af4204c6678f6988c57848d8f /x11.nix | |
| parent | use .source instead of .text (diff) | |
| download | nixos-05ed9e274990110adbcbefa85aa07a80c524cda7.tar.gz nixos-05ed9e274990110adbcbefa85aa07a80c524cda7.tar.bz2 nixos-05ed9e274990110adbcbefa85aa07a80c524cda7.zip | |
use systemd services for sxhkd and slstatus
Diffstat (limited to '')
| -rw-r--r-- | x11.nix | 31 |
1 files changed, 29 insertions, 2 deletions
@@ -30,8 +30,6 @@ #!/bin/sh ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360 ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg' - ${pkgs.sxhkd}/bin/sxhkd & - ${pkgs.slstatus}/bin/slstatus & ''; }; xkb = { @@ -53,4 +51,33 @@ enable = true; }; + +systemd.user.services.sxhkd = { + description = "Simple X Hot Key Daemon (sxhkd)"; + + serviceConfig = { + ExecStart = "${pkgs.sxhkd}/bin/sxhkd"; + Restart = "on-failure"; + }; + wantedBy = [ "graphical-session.target" ]; +}; + + + + systemd.user.services.slstatus = { + description = "slstatus bar"; + wantedBy = [ "graphical-session.target" ]; + + path = with pkgs; [ + pamixer + scrolling-title + ]; + + serviceConfig = { + ExecStart = "${pkgs.slstatus}/bin/slstatus"; + + Restart = "always"; + RestartSec = "1s"; + }; + }; } |
