![]() ![]() Under New Action, choose Comment to explain what you are doing, then the trigger (the command, something like Alt+ F10), and then, under action, enter the absolute path to the executable script above. For KDE, go to System Settings -> Shortcuts and Gestures -> Custom Shortcuts -> Edit (in the lower left corner) -> New -> Global -Shortcut -> Command/URL. You may then click with the mouse on your terminal, which becomes the current active directory, and resend the shortcut: you will then get your terminal, and the proper directory.Īfter making this script executable, you can associate it to a keyboard shortcut this depends on DM. The good thing about this script is that, if the current active window is not a terminal, hence it has spawn no bash shells, nothing will happen. Select a combination of your liking, though be careful with shortcuts already in use. If you have full access to the system, and you want to set up a keyboard shortcut, right click on the Menu, find Konsole, select Advanced tab, Current shortcut key. Konsole -workdir $MYPWD 2>/dev/null & disownĬareful, there is no error checking in the above. How do I open a terminal without a mouse Press Alt + F2, then type konsole and press Enter. Ps -o cmd -p "$i" | grep bash > /dev/null For Windows 8, go to the start screen, press All Apps, and scroll right until the Windows System folder shows up. Right click on the shortcut, press More, and press Run as Administrator. MY_PPID=$(xprop -id $ACT_WIN _NET_WM_PID | awk '') Pressing the dropdown menu should reveal a shortcut to open the Command Prompt application. It does so for all bash shells found open, not just the first one. ![]() ![]() , if it is a terminal), then finds the children processes of konsole/xterm/., and, for every child process which is a bash shell, it locates its current working directory and opens a konsole window in the given current directory. The following script first identifies the current active window, then identifies the process running into it (it will be something like konsole, or xterm, or. without waiting for the movie to finish? The script solves exactly this problem. The script below is a tad complex for this reason: in the current active window you may have a currently running task (say, you are watching a movie via vlc), so you do not have the prompt available how do you then retrieve your PWD without waiting for the completion of the task, i.e. Unlike I understood the OP to mean: a shortcut to open a new terminal in the present working directory I find myself in, in the currently active terminal, not in the file manager (BTW, in KDE there is the same trick pointed out in the other answer: in Doplhin, you use Shift+ F4 I believe any decent file manager will provide such a key). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |