Terminal shortcut

Hi,
I'm new to the Openbox scene and have started using it because it is lightweight and fast. I am making the transition from Gnome. I would like to do the following with my Openbox.
Bind the numpad keys such that each number from 1-6 either
A)Opens a new terminal
B)If I've already fired a terminal using say 4 and have minimized it to check out some application, hitting 4 will open the SAME terminal window.
I don't want to hit ctrl+alt+F(n) buttons to shift to a new tty window. I want a smaller terminal wherever I am currently working.

https://wiki.archlinux.org/index.php/Ur … in_Openbox
http://openbox.org/wiki/Help:Bindings
Well, It's in the wiki. With a little tweak you probably can make it works as you like. Read it carefully, it's simple once you understand it.

Similar Messages

  • Terminal shortcut tips?

    Anyone know of a good guide to Terminal keyboard shortcuts?
    For example, is there a way to select one of the directories/files from a ls listing directly through the keyboard?

    http://osxdaily.com/2006/12/19/command-line-keyboard-shortcuts-for-mac-os-x/ for starters.

  • Keyboard shortcuts in terminal.app for moving to next and previous tabs

    Hi,
    In Terminal.app, if you click on the Window menu item, it tells you that the keyboard shortcuts for moving to the next and previous tab are ⌘} and ⌘{.
    When I try to use those shortcuts however all I get is it beeping at me.
    The only way I've found to move from tab to tab is ⌘-shift--> and ⌘-shift-<-
    What do I have to do to get the ⌘} style shortcuts working??
    Thanks
    H.

    http://www.google.com/search?client=safari&rls=en&q=terminal+shortcuts&ie=UTF-8& oe=UTF-8#hl=en&sugexp=les%3B&gs_nf=1&gs_mss=mterminal%20shortcuts&pq=terminal%20 shortcuts&cp=2&gs_id=8&xhr=t&q=mac+osx+terminal+shortcuts&pf=p&safe=off&client=s afari&rls=en&sclient=psy-ab&oq=materminal+shortcuts&gs_l=&pbx=1&bav=on.2,or.r_gc .r_pw.r_qf.&fp=b610fb1514df2529&biw=1008&bih=1008
    Here are some to get you going:
    Ctrl + A Go to the beginning of the line you are currently typing on
    Ctrl + E Go to the end of the line you are currently typing on
    Ctrl + L Clears the Screen, similar to the clear command
    Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
    Ctrl + H Same as backspace
    Ctrl + R Let’s you search through previously used commands
    Ctrl + C Kill whatever you are running
    Ctrl + D Exit the current shell
    Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
    Ctrl + W Delete the word before the cursor
    Ctrl + K Clear the line after the cursor
    Ctrl + T Swap the last two characters before the cursor
    Esc + T Swap the last two words before the cursor
    Alt + F Move cursor forward one word on the current line
    Alt + B Move cursor backward one word on the current line
    Tab Auto-complete files and folder names

  • Gnome terminal disable shortcuts

    Hello,
    How can I disable all terminal shortcuts, I'm interested especially in the Ctrl+PageUp and Ctrl+PageDown.
    Thanks a lot,

    pntruongan wrote:
    twouters wrote:
    Fixed it for me, don't know if it's a correct solution.
    For gtk-2 apps add this in ~/.gtkrc-2.0
    binding "NoKeyboardNavigation" {
    unbind "<shift>F10"
    class * binding "NoKeyboardNavigation"
    For gtk-3 apps like gnome-terminal and nautilus I created a new file: ~/.config/gtk-3.0/gtk.css
    @binding-set NoKeyboardNavigation {
    unbind "<shift>F10"
    gtk-key-bindings: NoKeyboardNavigation
    [edit]I did have to close _all_ terminal windows before these changes were in effect.[/edit]
    Worked beautifully for me. This problem has been haunted me for years until somebody point me to this thread recently, thank you very much.
    Well, you can't be faulted for trying to disable this with the general settings facilities. The point of GNOME is an integrated environment. If that is the only solution, it is an oversight on the part of the GNOME devs in terms of said integration.
    Last edited by Avant-texte (2012-02-26 06:46:24)

  • XFCE terminal opens in background

    What I mean by background is usually I just click the terminal shortcut and start typing.  Now I have to click in the window first.  This also happens with the file manager shortcut.  This is a regression although I'm not sure what update caused it.  The problem appears to be with the "exo-open" program that the shortcuts in the quickbar (and also with the "terminal emulator" and "file manager" shortcuts in the Applications menu.)  The "exo-open" program opens whatever terminal or file manager you have set as default.
    If I go down to system > Xfce Terminal or Thunar file manager which opens those programs directly I don't have this problem.  They open in the foreground.  The quickbar "exo-open" shortcuts used to do that same.  I'm wondering what changed.
    Last edited by weirddan455 (2015-03-21 00:36:48)

    Nevermind found the regression.  Looks like exo is its own package and was just updated two days ago.  Downgraded from exo-0.10.4-1 to exo-0.10.3-2 and the problem went away.
    EDIT:  And bug report opened https://bugs.archlinux.org/task/44282
    Not sure whether this should also be reported upstream.
    Last edited by weirddan455 (2015-03-21 00:48:04)

  • TightVNC - Can't open programs on remote session

    Hi All,
    I'm a Linux newbie and have a problem I can't seem to solve. The other day I installed tightvnc and have a server which runs on startup. I have added the following line to /etc/inittab:
    vn:35:once:sudo su - brian -c "vncserver :1 -name Brian -depth 24 -geometry 1280x600"
    I also have the following in my xstartup file
    #!/bin/sh
    #xrdb $HOME/.Xresources
    #xsetroot -solid grey
    #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    #twm &
    xhost +localhost &
    exec startxfce4 &
    I am using UltraVNC on Windows 7 to remote into my arch box and I manage to get the XFCE4 desktop. The problem lies in trying to open programs on my remote session. If I click on the terminal shortcut, nothing happens. Same with Firefox etc.. I attempted to right click then execute and still no go.
    However, I am able to click the filesystem icon and it will open. Also, I can click on logoff and shutdown no problems.
    Any ideas?

    I use tightvnc as well, but I start it a bit differently (I don't think this is your problem).  Have you seen the tightvnc wiki article?  I updated it a while ago with the method that I use.
    Anyway, I don't think the & mark is needed in your ~/.vnc/xstartup
    $ cat ~/.vnc/xstartup
    #!/bin/sh
    xrdb $HOME/.Xresources
    export XKL_XMODMAP_DISABLE=1
    #exec ck-launch-session startxfce4
    exec ck-launch-session startlxde
    I dunno why your mouse isn't working properly if it's not something in that file.
    Last edited by graysky (2010-07-08 08:05:33)

  • Tiling WMs problems

    dwm:
    I downloaded source from the official site, unpacked it, installed (make, make install clean) and everything worked. However, when i altered config.h, it compiled nicely, but changes wouldn't appear (terminal shortcut, etc).
    wmii:
    I guess this is easy one. What is the MOD setting for Ctrl in wmiirs (MOD1 is Alt)?
    xmonad:
    This tiny file requires a 40mb program as a dependency. Is there a workaround for this?
    Last edited by Hide (2007-10-24 13:05:36)

    dwm:
    # pacman -S cvsup
    change "!community" in /etc/abs/abs.conf to "community"
    # abs
    copy the dwm folder in /var/abs/community/x11/ into /var/abs/local
    copy your changed config.h into /var/abs/local/dwm
    delete the md5sum of the config.h in dwm's PKGBUILD
    # makepkg
    works great here...
    Cheers Sigi

  • Keyboard shortcuts: adding service to open a Terminal window not being saved

    Hi
    Objective: A shortcut to open a terminal window with the path of the 'in-focus' Finder window (Mavericks).
    Solution (that doesn't work): Apple Menu/System Preferences/Keyboard
    Select: Shortcuts
    Select: Services
    Check box for: New Terminal At Folder
    Close System Preferences
    This approach seems to be advised on quite a few sites. When I do it, the service I add simply doesn't get saved. I go back into the System Preferences and look under the path above and see that the box for New Terminal Åt Folder is unchecked.
    Any help in being able to achieve my objective would be greatly appreciated :-)

    Those things are saved as part of the workspace. It sounds as if the current workspace file has become corrupt. Close ID, then go to your user profile and you'll find the workspaces folder under \Application Data\Adobe\InDesign\Version 6.0\<language>\Workspaces. Delete the "current" xml file for the workspace and restart ID. The workspace will be restored to the conditions set when it was saved, but hopefully will remember changes again when you close the program.

  • New create desktop shortcut GPO is causing 1030 and 1058 errors on a Windows 2003 terminal server

    Primary DC: Win2012.  BDC: Win2008. Clients: Win7, Win8.1.  Maintaining an old Win2003 terminal server to run legacy software.
    Everything works fine for a look time until I added a new GPO to create a desktop shortcut on the client machines, Windows 2003 runs into Error 1030 (Cannot query list of GPO) and Error 1058 (Cannot access the file gpt.ini for GPO, The system cannot find
    the path specified) GP processing aborted).
    Tried changing the GPO to target Win7 and 8.1 only.  Tried creating shortcut using Computer Config settings only as well as User Config settings only.  Deleting the GPO and creating it from scratch.  Nothing works, as soon as GPO is in place,
    it disables the Win2003 from processing any other GPO. 
    No issue with the client machines or other Windows servers. 
    Thanks in advance for any help.
    Roget Luo

    Hi Roget,
    Thanks for posting here.
    Error 1030 and 1058 could be caused by many aspects.
    Firstly, please run the command dcdiag on the command prompt of a DC to check if there are any error.
    Secondly, make sure the DFS service is started on the domain controller, and set the Startup type to automatic.
    What's more, make sure the TCP/IP Helper service  is started on the domain co, set it to Automatic and started it.
    For your information, please refer to the following link to get more help:
    Userenv errors occur and events are logged after you apply Group Policy to computers that are running Windows Server 2003, Windows XP, or Windows 2000
    http://support.microsoft.com/kb/887303/en-us
    How to solve event 1058 and 1030 on Windows Server 2003 SP2 member server in a domain?
    http://social.technet.microsoft.com/Forums/en-US/ceec95fb-3efa-4016-8dd5-7003909abba4/how-to-solve-event-1058-and-1030-on-windows-server-2003-sp2-member-server-in-a-domain?forum=winserverDS
    Windows 2003 Server USERENV 1058 & Group Policy Errorshttp://social.technet.microsoft.com/Forums/en-US/fad9cd47-5091-481f-8bda-0e7b10b2c814/windows-2003-server-userenv-1058-group-policy-errors?forum=winservergen
    Group Policy - Event ID Errors 1030 & 1058
    http://social.technet.microsoft.com/Forums/en-US/6c08278d-c3e3-434a-bcda-18d411a8e9fa/group-policy-event-id-errors-1030-1058?forum=winserverGP
    Hope it helps.
    Best Regards,
    Elaine
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Keyboard shortcut to open new Tab in Terminal.app

    Hi,
    I'm looking for a way to open new tabs with keyboard shortcuts in Terminal.app
    Opening the default profile is not a problem (command-T), but how can I get to the non-default profiles? Assigning keyboard shortcuts in the System Preferences doesn't seem to work.
    Maybe something like a Quicksilver Trigger? Applescript? Any ideas?
    Thanks,
    Koinseb

    Post to the Unix forum under OS X Technologies for Unix and Terminal questions.

  • I've used a terminal command to change default send keyboard shortcut and now it doesn't work at all!

    My friend provided me with a Terminal command allow me to use Cmd+Enter to send an email (muscle memory from Outlook, hard to forget!)
    Command was:
    defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
    Did that, and it didn't add the Cmd+Enter instruction but removed the Cmd+Shift+D instruction, so I had NO keyboard shortcut. Then Cmd+Enter started working. For a while. Now I'm back to getting the irritating error bleep sound, and having no functional keyboard shortcut for sending mail.
    Does anybody have any advice?

    Try
    defaults delete com.apple.mail NSUserKeyEquivalents
    Then, relaunch Mail.

  • Shortcut "Command + T" opens terminal instead a new tab of finder

    Hi!
    I'm a new member of forum and new user of OS X.
    On my MacBook appeared a strange problem after cleaning OS X (Mavericks) by Onyx:
    When I'm in a Finder window and using shortcut Command+T  appears Terminal window instead a new tab in Finder.
    I tried to reset to the default keyboard shortcuts in System Preferences but it didn't work.
    Has anyone had a similar problem and already has a solution?
    I will be grateful
    BTW sorry for my ungrammatical English

    Try this:
    1) In the address bar, enter''' about:config''' and press '''Enter'''.
    2) In the "'''Filter'''" type '''restriction'''
    3) "browser.link.open_newwindow.restriction" should appear. '''Double-click''' it and enter 0
    That will force everything to go to new tabs instead of Windows.

  • Create Terminal connection shortcut on desktop?

    How do I create a desktop shortcut to my added remote connection(telnet) in Terminal application?

    Thank you nbar.
    I was able to make the shortcut.
    Is there a way that I can have a shortcut open my server connection directly?
    The shortcut opens Terminal...but I still have to make 5 additional clicks to open up the remote telent connection.
      [Shell>New Connection>Remote Login (Telnet)>+select IP+Click Connect]

  • [SOLVED] keeping terminal window open for scrot keyboard shortcut

    Hey,
    Im trying to bind a keyboard shortcut to scrot with the -s command (for selecting window). Normal scrot command works fine straight away, but with the -s command a terminal window needs to be open that waits for the selection. i have created a file called lscrot with the following code:
    1 #!/bin/bash
    /usr/bin/terminal --working-directory=$HOME/dump/ --geometry 0x0-0-0 -e "/usr/bin/scrot -s"
    i have put the file in /usr/bin folder with 755 permissions.
    if i right click the file and choose "execute", the new terminal window will stay open and i can select an area to take a screenshot of, but when i bind it to a shortcut key (using xfce) the new terminal window will close immediately rendering the shortcut useless.
    how does one fix this?
    thanks
    Last edited by iOfWhy (2012-06-10 13:41:55)

    hmmm, ok. binding keys to /usr/bin/scrot works fine, but /usr/bin/scrot -s does not. dont really know where to begin searching for a fix...
    EDIT: im assuming there is something elementary i am missing. after further testing, launching for example scrot ~/dump/test.png from console works fine, but not when i bind it to a keyboard shortcut. however, scrot test.png works to bind. does anyone know anything more about XFCe and binding keyboard shortcuts?
    EDIT2: ok so im honing in a little bit, i realised that the first times i use the keyboard shortcut it works. forcing the terminal window to stay open after command has been executed i see following error:
    giblib error: couldn't grab keyboard:Resource temporarily unavailable
    Searching the net i found old bug that was closed without (seemingly) being solved.
    https://groups.google.com/group/linux.d … 2056017d9a
    Any ideas?
    EDIT3: ok so found a solution, "sleep". Adding sleep 0.1 to the top of the screenshot script seemed to help. seems you need to give sometime to release the keyboard for scrot to use. would still be great if anyone knew how to get it to work by using a direct command in the keyboard shortcut bindings. ie binding in straight to "scrot -s". using Alt+F2 then typing in scrot -s works fine, so i really dont see why i cant bind a keyboard command straight to that.
    NOTE: how do i see xsession errors? I find no .xsession-errors file in my home directory. been searching for months.
    Last edited by iOfWhy (2012-06-10 13:33:56)

  • Create terminal command shortcut icon

    Hello,
    If someone would be kind enough to help me out with creating a shortcut terminal command that would be great. I was messing around with the Android SDK just for fun and was wondering how you can get it to launch a specific avd, so from Terminal I would type
    /user/myaccount/applications/andriod/tools/emulator -avd Android-2.3.3
    And it would open, how would you create a shortcut on the desktop to do this so I can just double click and it will open? In windows I would just modify the target and add the -avd or create a batch file, but not sure how to do this in OSX.
    Thanks

    so in text editor I put this line which if I open terminal and paste it will launch the emulator.
    /Applications/Android-Emulator/tools/emulator -avd Android-2.3.3
    saved the file, then did a chmod +x ./filename
    change the extention to .command
    When I double click I get an error
    Last login: Thu Jul 14 21:24:12 on ttys000
    /Users/Me/Desktop/Android.command ; exit;
    MacBook-Pro:~ me$ /Users/Me/Desktop/Android.command ; exit;
    /Users/me/Desktop/Android.command: line 1: {rtf1ansiansicpg1252cocoartf1038cocoasubrtf360: command not found
    /Users/me/Desktop/Android.command: line 2: syntax error near unexpected token `}'
    /Users/me/Desktop/Android.command: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}'
    logout

Maybe you are looking for