Questions about how to run a program or other operating system function when a given combination of keys is pressed.

learn more… | top users | synonyms (1)

6
votes
4answers
972 views

Open terminal from emacs

Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
9
votes
1answer
849 views

Assigning awesome keybinding for more than 9 tags

I'm using the awesome WM and the nine default tags (or "virtual desktops") are not anywhere near enough for me: I've got a lot of VMs and remote VNCs etc. In the past I've used window managers with ...
6
votes
2answers
2k views

assign shortcut key to run a script

I've written a script to change the brightness of my screen. It's useful when I am working on text mode and shortcut keys of my keyboard to change brightness doesn't work. Is it possible to run this ...
7
votes
2answers
8k views

Xfce 4: Change global keyboard shortcuts

I use Alt+Space in Emacs, but in Xfce it pops up window manager menu at the upper left corner of a window. How do i disable Alt+Space for Xfce and change global keyboard shortcuts in general?
3
votes
2answers
622 views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I ...
0
votes
2answers
284 views

How to change keys for window manipulation (from menu, default: alt+space) in openbox?

I'd like to change default keys which manipulate window. For example default set is: maximize: x key but unmaximze: is e key I really want to have for example x key for maximize and unmaximze. How to ...
5
votes
1answer
520 views

Cannot switch to console anymore after using Alt_R as mod4

I'd like to use the right ALT key as 'mod4' (most notably because, by default, the 'awesome' window manager is using mod4 as a modifier for most WM commands and I like that idea a lot). However I've ...
10
votes
1answer
1k views

Keyboard shortcut to set gnome-terminal tab title

I like to work in Linux without using the mouse, because of that I would like to know if there is any method to set a keyboard shortcut to set gnome-terminal tab title.
2
votes
1answer
101 views

Make 'CTRL-/' behave the same in vtty and xterm

When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace". In practice I run into this when I'm using emacs in a ...
3
votes
4answers
2k views

Openbox keybindings not taking effect after --reconfigure or restart

273 <keybind key="W-Return"> 274 <action name="Execute"> 275 <command>lxterminal</command> 276 </action> 277 </keybind> 278 ...
3
votes
1answer
1k views

How to get brightness keys working inside openbox session?

I'm using Openbox window manager without DE. I'd like to get fn + [brightness up/down icon] working like it is in GNOME/KDE, but i'm looking for lightweight solution without gnome-power-manager and ...
2
votes
2answers
146 views

In Gedit, how might I jump from the command line (bottom frame) to the file explorer frame to the text editor frame using keyboard shortcuts

I know how to jump from tab to tab in the text editor frame, but jumping from the text editor (center-right top frame) to the command line (center-right bottom frame) using only the keyboard eludes ...
4
votes
1answer
531 views

F4-key mysteriously reassigned

In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
4
votes
3answers
2k views

Bash: How do I move my cursor to the left a word-at-a-time?

In OSX I can just hold down the option key and press the left cursor key until I get to the word I need to edit (or in Vi I can just hit b, but I haven't been able to figure out how to do this in ...
6
votes
1answer
735 views

Meaning and commands for Ctrl+Alt+Del

In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting. But I was told that Switching to a text-based virtual console and pressing Ctrl+Alt+Delete will ...
3
votes
1answer
319 views

Script for emulating Windows [Win]+[Arrow] keyboard shortcut

I am running Fedora 14. I would like to (at least partially) emulate the behaviour of Windows when you hit Win+Arrow Key. That is, I would like it to "snap" to the left/right sides of the screen. I ...
6
votes
3answers
636 views

Vim: How to get rid of filetype-specific map?

Edit: Working version. I've mapped [[ and ]] to my own functions: nmap <silent> ]] :let &tabstop += 1 <CR> :echo 'tabstop =' &tabstop <CR> nmap <silent> [[ :let ...
2
votes
1answer
2k views

How do I edit the terminal launch command in Linux Mint?

In Linux Mint (Debian-based) how can I edit what the shortcut Ctrl+Alt+t launches? For example, I would like to issue gnome-terminal with the --maximize option, and to have it launch tmux instantly.
4
votes
2answers
3k views

How to run the terminal using keyboard shortcuts in Gnome 2?

I'm using Gnome 2. I use the terminal several times, and I lose a lot of time going in Applications / Utilities / Terminal to launch the terminal. I am wondering if I can launch the terminal using ...
1
vote
1answer
172 views

How to configure a shortcut to open a window accessed by right click on the systray icon?

The application I am referring to is Turpial and it is a Twitter client. The problem is to open the window I need to send twits, I have to right click on a systray icon and select an option. In the ...
3
votes
1answer
382 views

Porting GNOME keyboard shortcuts to URXVT [closed]

I recently switched from gnome terminal to urxvt. I am also a heavy emacs w. tabs user which uses a lot of key combinations similar to urxvt (tab related stuff) like Shift-Left and Shift-Right. These ...
1
vote
1answer
142 views

vim hot keys with variables

I am trying to do a mapping that moves the current line to another line. Something like nnoremap < space >m$VARIABLE :m $VARIABLE <CR> dd
6
votes
1answer
305 views

Emacs commands in xterm

I found that the commands I used to use in gnome-terminal, those I learned in Emacs, are only partially working in xterm. In some cases, I get strange chars like ÿ, æ, and â instead. Do you know how ...
2
votes
2answers
621 views

How to change a firefox option on a quick way (via shortcuts, command line,..)?

In Firefox we have two options at Firefox->Preferences->Preferences->Fonts and colors->Colors menu, Use system colors and Sites can use other colors. I would like keep the first one ...
2
votes
1answer
922 views

keyboard shortcuts only work with left super-key

I recently had to change the keyboard-shortcuts after updating my system. I had to use dconf-editor to manually set the shortcut from <Super>+R to <Mod4>+R in order to get them to work ...
5
votes
3answers
774 views

tmux after start

Can I configure tmux so it will after running tmux automatically opens two windows named src and cmd? I always type after starting it: prefix + c, prefix + ,srcENTER prefix + c, prefix + ,cmdENTER ...
1
vote
1answer
183 views

Remap select window 2 in tmux

In tmux you can switch to window 2 with prefix_key + 2. I'd like to press rather prefix_key + u. I tried in .tmux.conf this: bind-key u 2 and this: bind-key u select-window -t 2 Which doesn't ...
6
votes
1answer
459 views

In KDE, how can I create a custom keyboard shortcut that prints the current date?

I often need to print the current date in lots of different programs. Right now, I always type it per hand which is error prone. I'm using KDE 4.8, and it has customisable keyboard shortcuts. For ...
2
votes
1answer
1k views

Keyboard Shortcut To Send Text Strings To Program

How can I configure a shortcut key to send a text string to the current program? The purpose is to type common entries quicker (email address, street address, phone number, username, favorite quote, ...
1
vote
1answer
51 views

Restore from wastebasket shortcut?

Is there a shortcut for GNOME desktop to restore a file which has been sent to wastebasket? I did this on windows with ctrl + y, I just wonder if someone uses something similar on Linux?
4
votes
2answers
3k views

Awesome: keyboard layout switch

I use awesome as a window manager under gnome (debian system) and I made a widget to switch keyboard layout by this code: -- Keyboard map indicator and changer kbdcfg = {} kbdcfg.cmd = ...
2
votes
2answers
2k views

How can I make the backspace key delete one character backwards in tcsh?

I have a clean installation of openSuse. This automatically sets up bash as the default shell. For historic reasons, all of the aliases and shortcuts I want to port from an old computer are in tcsh, ...
4
votes
4answers
838 views

How to print keypresses in .inputrc format?

Which application can I use to figure out what to put in .inputrc for any custom keyboard shortcut? I've tried a few, and none of them seem to be usable: showkey, showkey -a and read just print ' if ...
4
votes
2answers
227 views

How to print keyboard shortcuts in human-readable form?

It would be very useful to have a user-friendly way to get an overview of the currently defined keyboard shortcuts. In other words, given the /etc/inputrc lines "\e[A": history-search-backward ...
10
votes
2answers
7k views

Shortcut key for scrolling inside a terminal

What is the shortcut key for scrolling inside a terminal? If I hit the Up or Down arrow or PageUp or PageDown, it will only traverse through command history, not let me traverse the previous part ...
4
votes
1answer
2k views

How do I disable a keyboard shortcut in gnome-shell?

There are tutorials all over the web on how to set various functionalities to activate on a keyboard shortcut, but so far I'm unable to figure out how to un-set a keyboard shortcut. That is, how do I ...
3
votes
2answers
1k views

What does this output from xev mean?

I'm interested in remapping some keys on my keyboard. In particular, I want to hold down the Function key, press the F1 key, and have this trigger a script. I know that xev is useful for figuring out ...
4
votes
2answers
1k views

Is there a way to remap the AltGr key to Ctrl with setxkbmap?

I've already checked the option section in /usr/share/X11/xkb/rules/base.lst but I didn't find an entry for AltGr...
3
votes
1answer
1k views

How to bypass GNOME Terminal when sending keyboard input?

When running an interactive shell application, how can I send it a key (or key combination) which would normally be intercepted by GNOME Terminal? In this particular instance it's the F10 key which is ...
1
vote
1answer
282 views

Apple keyboard in openbox

I just upgraded from Fedora 15 to 16. I'm using Openbox as an alternative to Gnome 3. The problem is that I cannot find a way of using the multimedia keys properly in Openbox. Changing the keyboard ...
1
vote
0answers
337 views

Ctrl+F2 no longer opens the app launcher in Gnome 2

In KDE I press Alt+F2 and the app launcher opens. In Gnome, however, I press Ctrl+F2, it doesn't work. When I first installed Mint 12, it was working, but I think it stopped working when I installed ...
5
votes
3answers
3k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
3
votes
1answer
483 views

Moving through history of commands on command line?

I used to use Up/Down to move through the history of commands. Then, a few days later it changed to Ctrl-p/Ctrl-n. Now this also doesn't work to move through the history of commands entered. How can ...
8
votes
2answers
2k views

GNOME 3 Ctrl+Alt+D (show desktop)

I recently upgraded my system to GNOME 3. In previous versions of GNOME, the key combination Ctrl+Alt+D would hide all open windows and show the Desktop. This shortcut was eliminated from GNOME 3 ...
6
votes
2answers
543 views

Is there a way to assign a shortcut key to nautilus' right click context menu?

Does anyone know of a way to assign a shortcut key combination to the menu items in the context menu that pops up in nautilus when you click on a file?
2
votes
1answer
526 views

How to add additional Gnome-Shell and Unity workspace navigation shortcuts

I am very familiar with (and love) the workspace switching in Gnome-Shell and Unity (using Ctrl+Alt+[Up/Down/Right/Left]), but being a vim fan, it would also be great if I could add an additional ...
5
votes
3answers
2k views

In vim, search backwards for matching braces/parens

As most of you probably know, you can use % to search forwards on the line to find the next paired brace/bracket/paren and move to its matched partner: |a|rray[index] = value; " |e| is the cursor; ...
4
votes
1answer
3k views

Copy/Paste with keyboard in rxvt

I know that I can copy and paste text in rxvt by using the middle mouse button, but I was wondering if there was a way to define keyboard-shortcuts in the .Xdefaults for copy and pasting text. ...
15
votes
4answers
5k views

How to get vim to work with tmux properly?

I'm trying to figure out how to get vim and tmux play together. My problem is: When I use xterm-256color I get vim to work nicely, but the background doesn't render properly. I fixed this by using ...
1
vote
4answers
5k views

Can I access Nth line number of standard output?

Assuming a script that outputs a list of files: $> bash someScript.sh path/to/some/file path/to/the/file/i/want/to/work/with path/to/yet/another/file Now I want to have the second file-path as ...