You are not logged in.
Thanks all for testing, at the moment I have no more time to test what you are purposing. Glad that you use some of my wallpapers shared on the BL site see you !
Offline
I've changed my mind and tested quickly... so I post you my failure results... X) :
raphix@debian:~$ systemctl --user enable wallchanger.timer
raphix@debian:~$ systemctl --user start wallchanger.timer
raphix@debian:~$ systemctl --user list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
mar 2017-01-17 12:00:00 +02 21min left mar 2017-01-17 10:00:10 +02 1h 37min ago wallchanger.timer wallchanger.service
1 timers listed.
Pass --all to see loaded but inactive timers, too.
raphix@debian:~$ systemctl --user start wallchanger.timer
raphix@debian:~$ systemctl --user list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
mar 2017-01-17 12:00:00 +02 19min left mar 2017-01-17 10:00:10 +02 1h 39min ago wallchanger.timer wallchanger.service
1 timers listed.
Pass --all to see loaded but inactive timers, too.
raphix@debian:~$ systemctl --user status wallchanger.{timer,service}
● wallchanger.timer - Change wallpaper at set times.
Loaded: loaded (/home/raphix/.config/systemd/user/wallchanger.timer; enabled)
Active: active (waiting) since mar 2017-01-17 07:20:47 +02; 4h 19min ago
● wallchanger.service - Change wallpaper at set times.
Loaded: loaded (/home/raphix/.config/systemd/user/wallchanger.service; static)
Active: failed (Result: exit-code) since mar 2017-01-17 10:00:10 +02; 1h 40min ago
Main PID: 23469 (code=exited, status=1/FAILURE)
raphix@debian:~$ /bin/sh -c "for i in $(/bin/date | /usr/bin/awk -F '[ :]' '{print $4}') ; do /usr/bin/feh --bg-scale $HOME/tmp/$i.png 2>/dev/null ; done"
Thank you again
Last edited by ragamatrix (2017-01-17 10:45:09)
Offline
journalctl _PID=23469
from this meeting 23469 results?
https://wiki.archlinux.org/index.php/Sy … leshooting
Last edited by unklar (2017-01-17 11:15:47)
Offline
journalctl _PID=23469
from this meeting 23469 results?
Hä? I don't understand systemd 8o
Offline
^ Can we please see the output of this command (after you have tried to `start` the .timer again):
journalctl --unit wallchanger.service
You may have to either run that command as root or add your user to the "systemd-journal" group with this command then log out & back in again:
sudo gpasswd -a $USER systemd-journal
EDIT: also, did the command that you ran actually change the wallpaper for you?
Was there any error message after that command?
Last edited by Head_on_a_Stick (2017-01-17 18:53:29)
Offline
Thanks for your patience... I've also noticied that in the script wallchanger.service the pictures called were in a .png and I've modified the line like this because I'm using .jpg pics:
ExecStart=/bin/sh -c "for i in $(/bin/date | /usr/bin/awk -F '[ :]' '{print $4}') ; do /usr/bin/feh --bg-scale $HOME/.xplanet/images/Earth_HD/earth-hd/HPH-MAPS/$i.jpg 2>/dev/null ; done"
Return code error before rebooting:
raphix@debian:~$ systemctl --user start wallchanger.timer
raphix@debian:~$ journalctl --unit wallchanger.service
No journal files were found.
raphix@debian:~$ systemctl --user enable wallchanger.timer
raphix@debian:~$ systemctl --user start wallchanger.timer
raphix@debian:~$ journalctl --unit wallchanger.service
No journal files were found.
raphix@debian:~$ sudo gpasswd -a $USER systemd-journal
[sudo] password for raphix:
Ajout de l'utilisateur raphix au groupe systemd-journal
raphix@debian:~$ journalctl --unit wallchanger.service
No journal files were found.
raphix@debian:~$
Offline
Offline
nothing happened, I tryed this too:
raphix@debian:~$ /bin/sh -c "for i in $(/bin/date | /usr/bin/awk -F '[ :]' '{print $4}') ; do /usr/bin/feh --bg-scale $HOME/tmp/$i.jpg 2>/dev/null ; done"
raphix@debian:~$ /bin/sh -c "for i in $(/bin/date | /usr/bin/awk -F '[ :]' '{print $4}') ; do /usr/bin/feh --bg-scale $HOME/.xplanet/images/Earth_HD/earth-hd/HPH-MAPS/$i.jpg 2>/dev/null ; done"
raphix@debian:~$ time
real 0m0.000s
user 0m0.000s
sys 0m0.000s
raphix@debian:~$ date
mercredi 18 janvier 2017, 10:11:42 (UTC+0200)
raphix@debian:~$
May be the date command in the script must be different ?
Offline
Journalctl is the log of systemd.
With journalctl you can not call systemd.service!
Once again.
The images must have the appropriate ending (.jpg or .png as an example) in the directory, and they must correspond to your hours 10 - 12 - 14 etc. also the designation 10.png
12.png or
14.png
have! By hand!
As the pictures get the designation automatically, @HoaS has not yet revealed.
Last edited by unklar (2017-01-18 11:25:45)
Offline
^yes it is...
Offline
What is the desktop?
I ask because I have the under KDE4.14 synonymous not as under open box has gotten.
I know, before, there was times the note with KDE because of the 'root window' ...
But am too lazy to look for, so important to me is not.
With Bunsen the change works.
Offline
raphix@debian:~$ date mercredi 18 janvier 2017, 10:11:42 (UTC+0200) raphix@debian:~$
May be the date command in the script must be different ?
^ This.
My command doesn't work with your date format.
Try this instead:
# ~/.local/systemd/user/wallchanger.timer
[Unit]
Description=Change wallpaper at set times.
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/bin/sh -c "for i in $(/bin/date | /usr/bin/awk -F '[ :]' '{print $5}') ; do /usr/bin/feh --bg-scale $HOME/.xplanet/images/Earth_HD/earth-hd/$i.png 2>/dev/null ; done"
So, just changing {print $4} to {print $5} should do it. I think.
Offline
Thanks @HoaS
my
$ date
Do 19. Jan 10:13:07 CET 2017
Offline
^ Yes, that format is compatible with the original print $4 version.
This method should now be workable on any distribution that uses systemd, the `feh` command could be changed for `gsettings` in the GNOME desktop (for example) to allow usage in different DEs 8)
Offline
^ Thanks for the tip...
Offline
I finally make these scripts working with a french help on a debian forum... It's easier to understand... sorry for my english level :8
I share you the problem resolved, was a "date" format syntax problem:
debian-facile.org
Thanks for your help
Offline
Thanks for the update ragamatrix and I'm glad you got it working
EDIT: and that solution is so much simpler that it's not even funny, how crap am I?
8.(
Ah well...
Last edited by Head_on_a_Stick (2017-01-24 07:49:43)
Offline