You are not logged in.
Pages: 1
Hello everybody !
I would like to keep an eye on the log files, by printing the output of the command "journalctl -f" to the wallpaper.
I know the conky program, but I cannot find anybody who has make it works with journalctl.
I would like to tell that I have performed a fresh install arround one month ago so my Arch is "fully native systemd".
Do you have an idea ?
+
PS : I love Arch ! Thanks to all developpers and users !
Last edited by PolePosition (2012-12-24 07:41:21)
Life is not linear.
-----------
Arch power !
Offline
You could use conky to execute this command every x seconds/ minutes.
Offline
What you want is to configure a full-screen terminal as your wallpaper - once that's done, you can run any command you like in it.
You haven't provided any details about your preferred WM/DE or terminal apps, so here is a random example to get you started.
Offline
I guess Conky won't be able to stomach journalctl -f, but you can dump contents of journal to text file by typing:
journalctl -n > text_file
This will dump last 10 lines of journal to text_file and exit, you can make an external script that does this and use tail object in conky config to monitor it, or whatever else.
EDIT:
Turns out conky can run journalctl -f, the most basic usage in conkyrc would look like:
TEXT
${exec journalctl -f}
Last edited by kaszak696 (2012-12-16 21:40:31)
'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard
Offline
Hi !
Thanks for your answers !
It's quite late here in France so I will study these answers later probably next weekend I guess.
To answer your question, I am a XFCE fan !
Have a great night !
Bastien
Life is not linear.
-----------
Arch power !
Offline
Hello,
Thank you all for your answers.
I have first studied you answer and now I have finished to configure everything :
Bash script to make an infinite loop so that journalctl -f > /var/log/messages
Then conky takes the messages file and display it.
It works perfectly !
Thanks again,
Bastien
Last edited by PolePosition (2012-12-24 07:40:47)
Life is not linear.
-----------
Arch power !
Offline
Hi,
I noticed using ${exec journalctl -f} is making my conky slow, my interval was set to 1, but it was updating every 2 s,
I changed it to ${exec journalctl -n 10} and its not making conky slow, updating at 1 s
Offline
Pages: 1