Joystickwake + background
This commit is contained in:
parent
e080d5b9b8
commit
8acab53e36
10 changed files with 135 additions and 35 deletions
|
|
@ -5,16 +5,6 @@ let
|
|||
update_time = "10m";
|
||||
in
|
||||
{
|
||||
home.file.".local/bin/update_background.sh" = {
|
||||
text = ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
image=`find ${backgrounds_directory} -type f | grep -v "/\." | shuf -n 1`
|
||||
${fehCmd} --bg-fill --no-fehbg "$image"
|
||||
'';
|
||||
target = ".local/bin/update_background.sh";
|
||||
executable = true;
|
||||
};
|
||||
|
||||
systemd.user.services."update-background" = {
|
||||
Unit = {
|
||||
Description = "Set random desktop background using feh";
|
||||
|
|
@ -28,7 +18,7 @@ in
|
|||
Service = {
|
||||
Type = "oneshot";
|
||||
IOSchedulingClass = "idle";
|
||||
ExecStart = "${config.home.homeDirectory}/${config.home.file.".local/bin/update_background.sh".target}";
|
||||
ExecStart = "${pkgs.update-background}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue