Run discover-overlay-wait as a user unit and rework the vidthumb cache
vidthumb names thumbnails by a hash of path, size and mtime instead of a jq index that broke on quotes in filenames; systemd-tmpfiles removes ones unused for 30 days. discover-overlay-wait now runs from a systemd user unit started by xmonad and logs to the journal.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Run discover-overlay while Discord is running
|
||||
|
||||
[Service]
|
||||
ExecStart=%h/.local/bin/discover-overlay-wait
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
@@ -0,0 +1,2 @@
|
||||
# Remove vidthumb thumbnails (and leftover temp files) not used for 30 days; %C is $XDG_CACHE_HOME.
|
||||
e %C/vidthumb - - - 30d
|
||||
@@ -274,7 +274,7 @@ myStartupHook = do
|
||||
spawnOnce "numlockx"
|
||||
spawnOnce "blueman-applet"
|
||||
spawnOnce "adb start-server"
|
||||
spawnOnce "/home/fuxino/.local/bin/discover-overlay-wait"
|
||||
spawnOnce "systemctl --user start discover-overlay-wait"
|
||||
|
||||
-- Manage hook
|
||||
myManageHook :: ManageHook
|
||||
|
||||
Reference in New Issue
Block a user