You are not logged in.

#1 2012-12-16 19:19:11

PolePosition
Member
From: France
Registered: 2012-04-15
Posts: 90

[SOLVED] journalctl -f as wallpaper ?

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

#2 2012-12-16 20:05:38

phil
Member
Registered: 2012-09-22
Posts: 72

Re: [SOLVED] journalctl -f as wallpaper ?

You could use conky to execute this command every x seconds/ minutes.

Offline

#3 2012-12-16 20:37:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] journalctl -f as wallpaper ?

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

#4 2012-12-16 21:24:33

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: [SOLVED] journalctl -f as wallpaper ?

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

#5 2012-12-16 22:26:19

PolePosition
Member
From: France
Registered: 2012-04-15
Posts: 90

Re: [SOLVED] journalctl -f as wallpaper ?

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

#6 2012-12-24 07:40:13

PolePosition
Member
From: France
Registered: 2012-04-15
Posts: 90

Re: [SOLVED] journalctl -f as wallpaper ?

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

#7 2014-08-27 13:26:04

radiohead_101
Member
From: unknown
Registered: 2009-11-24
Posts: 23

Re: [SOLVED] journalctl -f as wallpaper ?

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

Board footer

Powered by FluxBB