From 8eb4c58043eaffad13f09e5eb69d884a1b073657 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 23 May 2026 11:24:36 +0300 Subject: Add random GNOME wallpaper timer via systemd user units --- Rexfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Rexfile') 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; -- cgit v1.2.3