Monitor the output of any command and nested tabs #94
budRich
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just got the question how i do my "monitor" tab in issue #90 . My Monitor tab has several subtabs, all of them containing a terminal displaying the output of some command. The answer is extremely simple, i just start the commands i want to monitor in a terminal ;)
But. Some of the commands I monitor are
i3
andlxde
. My window manager and desktop environment, how can i start commands in a terminal without having a DE or WM? Its very easy. You don't need to have a DE or WM to start graphical programs (yes the terminal emulator is a graphical program). Just like the song: All you need is X (ratatatataa). I simply start the terminals in.xinitrc
, something like this:When you now start your X session (
startx
), lxde and i3 will be running, and two terminals will just be therewith the output of the commands. This can be very useful to see what is going on. The i3 output for example will f.i. show the output any command a keybinding would generate.
Then in my i3config i have a single autostart command that gets executed when i3 is first started:
exec startnice
~/bin/startnice:
I actually have a script called monitor, but that is really a mess, and i should clean it up, when i have i will post it here. But this should give you some idea on how this works.
Beta Was this translation helpful? Give feedback.
All reactions