I like Byobu but I want use it in virtual console only (ctrl+alt+fx). How to disable Byobu in Gnome Terminal? Byobu is enabled via .profile file.
1 Answer
Byobu
does have such setting to be launched in automatically in virtual consoles , aka tty
. You have to login to any tty
, launch byobu
and then press F9 to toggle launching at login
However, personally I'd opt in for a scripting method, where you create a function at the top of the .bashrc
function testTTY
{
isTTY=$(tty | awk '{if ($0~/\/dev\/tty.*/) {print "true"}else{print "false"}}')
if [ $isTTY == "true" ]; then
byobu
fi
}
And call that function somewhere at the bottom of the .bashrc
Also, examine, your .profile
to remove any other automatic launching of byobu in gui terminals
-
Ok it's working but gnome-terminal is still intercepted by byobu image.qkiz.pl/di/F73M/Obszar_1_029.png I have Gnome Terminal icon on Unity launcher. When I run Gnome Terminal new icon of Byobu is appeared. image.qkiz.pl/di/ZRPM/Zaznaczenie_030.png I want to only one icon to be appeared - Gnome Terminal.– QkiZNov 18, 2015 at 11:50