I know in ubuntu there is a hotkey to open a terminal using alt+t or something like that. Im using wheezy for the pi, is there any hotkey for terminal? How would I go about making one or editing the current?
Thanks!
tty is a separate instance and is a raw terminal, but generally Ctrl-Alt-T in Ubuntu opens a terminal emulator within the X server (the GUI, that is)DMShropshire wrote:Ahh perfect thanks! Is there any difference between terminal and tty?
Code: Select all
nano ~/.config/openbox/lxde-rc.xmlCode: Select all
<!-- Launch terminal when ctr-alt-t is pressed -->
<keybind key="C-A-t">
<action name="Execute"><command>lxterminal</command></action>
</keybind>
Code: Select all
<!-- Launch gnome-screenshot when Print is pressed -->
<keybind key="Print">
<action name="Execute"><command>gnome-screenshot</command></action>
</keybind>
<!-- Launch terminal when ctr-alt-t is pressed -->
<keybind key="C-A-t">
<action name="Execute"><command>lxterminal</command></action>
</keybind>
</keyboard>
Wish I had read the last line before trying Ctrl-Alt-F1pluggy wrote:Ctrl-Alt-T opens a windowed terminal in Gnome/Unity in Ubuntu - it doesn't work in Wheezy on the Pi, however you can jump direct to a tty screen. It also works in Ubuntu as well.
Ctrl-Alt-F1 for tty1
Ctrl-Alt-F2 for tty2
Ctrl-Alt-F7 to return to X
This all depends on OS you're using I tried this using raspbian (NOOBS) on my pi 2 and it didn't work. I found the problem eventually after much trawling.aristocrates wrote:I'm assuming you want to replicate what Ubuntu does when you press "Ctr-Alt-t", which is open a terminal in the GUI. To do this in the current version of Raspbian as of this writing, you will need to add a keyboard shortcut by editing the ~/.config/openbox/lxde-rc.xml file (note that some other guides for openbox shortcuts say you need to edit the ~/.config/openbox/rc.xml; for Raspbian it appears they renamed rc.xml to lxde-rc.xml)
To do this, open the file in a text editor of your choice. I like using nano, so from a terminal session type:Then, add the following lines somewhere within the <keyboard> and </keyboard> tags:Code: Select all
nano ~/.config/openbox/lxde-rc.xmlNote that the first line (the comment) is optional but aids the organization of the file. The first actual line, <keybind key="C-A-t"> stands for the command "Control-Alt-t" (as in the letter t), and the second line says to open the GUI terminal application, in this case lxterminal.Code: Select all
<!-- Launch terminal when ctr-alt-t is pressed --> <keybind key="C-A-t"> <action name="Execute"><command>lxterminal</command></action> </keybind>
For anyone who is confused as to where to put these lines, I personally put it in as the last shortcut before the </keyboard> tag. So it should look something like this when you're done:If you want to read more about shortcuts in openbox, you can look here: http://openbox.org/wiki/Help:Bindings (again, note that instead of rc.xml, you want lxde-rc.xml)Code: Select all
<!-- Launch gnome-screenshot when Print is pressed --> <keybind key="Print"> <action name="Execute"><command>gnome-screenshot</command></action> </keybind> <!-- Launch terminal when ctr-alt-t is pressed --> <keybind key="C-A-t"> <action name="Execute"><command>lxterminal</command></action> </keybind> </keyboard>
(sorry about posting to an old thread, but the proper way to do this is kind of buried in google's search results so I'm hoping it will be useful for anyone who wants to know how to set shortcuts and ends up on this forum)
Code: Select all
nano ~/.config/openbox/lxde-rc.xmlWith the changes to the user interface, the file you are looking for is now called lxde-pi-rc.xml. Try:ananda9470 wrote:When I tried openingit shows an empty file in while nothing is written. Any suggestions?Code: Select all
nano ~/.config/openbox/lxde-rc.xml
Code: Select all
nano ~/.config/openbox/lxde-pi-rc.xml