Compare commits
3 Commits
107ab1fefd
...
fe5f98d8c8
Author | SHA1 | Date | |
---|---|---|---|
fe5f98d8c8 | |||
4eb6928418 | |||
9d18ed882f |
@ -63,7 +63,7 @@ in {
|
|||||||
eza
|
eza
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
nixfmt
|
nixfmt-rfc-style
|
||||||
gtk2
|
gtk2
|
||||||
lxappearance
|
lxappearance
|
||||||
webcord
|
webcord
|
||||||
@ -84,6 +84,7 @@ in {
|
|||||||
helvum
|
helvum
|
||||||
brightnessctl
|
brightnessctl
|
||||||
keyd
|
keyd
|
||||||
|
tidal-hifi
|
||||||
] ++ [ go (lib.hiPrio gotools) ] ++ [ age age-plugin-yubikey passage ]
|
] ++ [ go (lib.hiPrio gotools) ] ++ [ age age-plugin-yubikey passage ]
|
||||||
++ [
|
++ [
|
||||||
libsForQt5.qtstyleplugins
|
libsForQt5.qtstyleplugins
|
||||||
@ -430,8 +431,20 @@ in {
|
|||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
swww-daemon = {
|
swww-daemon = {
|
||||||
Service = {
|
Service =
|
||||||
|
let
|
||||||
|
cleanup-socket-script = pkgs.writeShellScript "swww-daemon-cleanup-socket" ''
|
||||||
|
# Remove the existing swww.socket if it exists, avoids some issues with swww-daemon
|
||||||
|
# startup where swww-daemon claims the address is already in use
|
||||||
|
if [[ -w "$XDG_RUNTIME_DIR/swww.socket" ]]; then
|
||||||
|
rm -f $XDG_RUNTIME_DIR/swww.socket || exit 1
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
in {
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
|
PassEnvironment = [ "XDG_RUNTIME_DIR" ];
|
||||||
|
ExecStartPre = "${cleanup-socket-script}";
|
||||||
|
ExecStopPost = "${cleanup-socket-script}";
|
||||||
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "compositor.target" ];
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user