3 ms·
I was hoping to see a framework for getting notifications in the shell, like in the screen / tmux status bar.
by hossbeast 10y ago
I was hoping to see a framework for getting notifications in the shell, like in the screen / tmux status bar.
- snehesht 10y agoYou could try a script that receives notifications and then prints them inside the status bar. Tmux has refresh interval so you could easily setup a script that prints the notification for a while and then clears it. set -g status-right "#[fg=colour010]#(/path/to/your/script)#[fg=colour255]"
- qznc 10y agoYou could use "wall", but that is not limited to a status bar and just prints in the terminal.
- dapithor 10y agoYou can already do this with `write` which is in most linux distro's. Make sure `mesg` is set to y then test with `echo "hello" | write <username>`. `Wall` messages all logged in users and I wouldn't recommend that approach.