summaryrefslogtreecommitdiff
path: root/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 11:24:36 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 11:24:36 +0300
commit8eb4c58043eaffad13f09e5eb69d884a1b073657 (patch)
treeac11fb31d73a13d217dbfa3e3e9dfb5687b63a7e /Rexfile
parent95e03c30b20402fd44ec8449aaee7d6712609ee8 (diff)
Add random GNOME wallpaper timer via systemd user units
Diffstat (limited to 'Rexfile')
-rw-r--r--Rexfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Rexfile b/Rexfile
index a9c1c5e..4280419 100644
--- a/Rexfile
+++ b/Rexfile
@@ -376,6 +376,30 @@ task 'home_quickedit', sub {
}
};
+desc 'Install systemd user units';
+task 'home_systemd_user', sub {
+ my $dst_dir = "$HOME/.config/systemd/user";
+
+ file $dst_dir,
+ ensure => 'directory',
+ mode => '0700';
+
+ for my $file ( glob "${DOT}/systemd-user/*" ) {
+ file "$dst_dir/" . basename($file),
+ ensure => 'present',
+ source => $file,
+ mode => '0640';
+ }
+
+ # Reload systemd user daemon to pick up any new or changed units.
+ Rex::Logger::info('Reloading systemd user daemon');
+ run 'systemctl --user daemon-reload';
+
+ # Enable the random-wallpaper timer so it starts on login.
+ Rex::Logger::info('Enabling random-wallpaper.timer');
+ run 'systemctl --user enable random-wallpaper.timer';
+};
+
desc 'Install all my ~ files';
task 'home', sub {
require Rex::TaskList;