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)

2
votes
2answers
298 views

How do I disable the left CTRL on Ubuntu 13.10?

How do I disable the left CTRL on Ubuntu 13.10? Actually I can do it already. All I need to run is xmodmap -e "keycode 37 = " The problem I have is this only works if I run it from the terminal ...
0
votes
0answers
140 views

Global keyboard shortcuts for Amarok

I'm using Linux Mint 16 Cinnamon x64. Amarok doesn't response to global keyboard shortcuts (Next media, Pause... etc) how can I make Amarok response to global keyboard shortcuts in Cinnamon just like ...
1
vote
3answers
119 views

Emacs's <C-l> vim equivalent

There's a neat Control-L hotkey in Emacs that repetitively moves the cursor to the top/middle/bottom of the screen. I'm quite sure there's a vim equivalent for that, but I couldn't find it.
3
votes
1answer
170 views

Navigating the CLI: replace text from specific character to specific character

I am a VIM user learning Emacs commands for use in Bash. I know that on my systems I can use Vim-keybindings in Bash but I'd like to learn how to use it effectively in its default configuration. ...
9
votes
2answers
700 views

Alt-Left to skip words does not work in terminal emulators

On a Debian Wheezy machine at previous job, I got used to Alt+Left and Alt+Right to skip between words on active command-line (in bash). However, since at home I have upgraded to Jessie (Debian 8.0, ...
2
votes
2answers
97 views

How could all the GNOME keyboard shortcuts be removed in a script, in other words, NOT using gconf-editor?

I am developing custom software on a RHEL system, which tightly locks down every user on the system. I have implemented my own lock screen through dbus, user screen lock (Alt+L) through xbindkeys, and ...
2
votes
1answer
420 views

How to disable menu under ALT+1 binding in Linux-Mint

I want to disable the menu in Linux-Mint which is showing when you press ALT+1. I can't even capture the screen when the menu is showing so I've attached a photo. I tried everything and I didn't find ...
0
votes
2answers
558 views

Set scroll speed and have a show desktop keyboard command on Mint 16

How can I change the scroll speed and have a show desktop keyboard command? I cannot figure out these two things. I have looked around, but cannot find any definitive or working advice. ...
1
vote
1answer
352 views

How to create a custom keyboard-shortcut for renaming files on CentOS? [closed]

I want to create a keyboard-shortcut for renaming files, like the F2 key in Windows. How can I do that in CentOS 6.4? Following is the image of the panel for keyboard shortcuts:
2
votes
1answer
581 views

Disable Ctrl+Alt Hotkeys in certain programs

I am using Sublime Text 3 which uses CtrlAlt$key hotkeys for a few important functionalities, but CtrlAltLeft (for example) switches workspaces. Is there a way I can disable the OS functions of these ...
2
votes
1answer
139 views

Send keystrokes to a process on Console

If I have a terminal with a shell open, how can I write a shell script (any scripting language is ok with me!) that will send a keystroke to any one of the running processes? As an example, how could ...
3
votes
2answers
87 views

keyboard shortcut to jump cursor to prompt?

I often mistype a command. So I will type this sublimetext myfile.txt instead of git add myfile.txt When I do this, I hit up to restore the last command. But after doing so, my cursor is at the ...
4
votes
2answers
376 views

How to move windows across displays in Gnome 3?

In Gnome 3, moving windows with the keyboard shortcuts Meta+← and Meta+→ can be convenient. Now, I have two displays installed and would like to move windows across the displays without ...
1
vote
2answers
595 views

Keyboard shortcut to move window to a side in Gnome

In Windows I can press Windows key + (left/right/up/down) keys to press a window against the upper, right, down, left side. Is there an equivalent in Ubuntu? Distro: Ubuntu 12.04, using Gnome.
1
vote
1answer
118 views

setxkbmap configuration

I'm using Lubuntu 13.04 without executing lxpanel (I killed it on purpose because I don't want to use it for the project I'm working on now). The problem is that, without lxpanel executing, the run ...
3
votes
1answer
128 views

Navigating the CLI: Go back N words

I'm a Vim user, so I'm learning Emacs commands for use in the Bash CLI. I know that on my systems I can use Vim-keybindings in Bash but I'd like to learn how to use it effectively in its default ...
3
votes
1answer
217 views

Configuring shortcuts for Sakura

I am massively confused by the sakura terminal emulator's .conf file. I want to make Alt+; open a new tab and Alt+: close a tab. I have tried: add_tab_key=alt+; add_tab_key=alt-; add_tab_key=; None ...
4
votes
1answer
70 views

How do I copy/yank a multi-line expression I typed at the ZSH prompt?

For example, supposed I'm browsing through my history, and reach this multi-line command I'd typed earlier: ~ >> for f in *; do echo $f done I've enabled vim bindings in the ZLE (bindkey -v), ...
3
votes
1answer
373 views

How to enable Fn keys on Samsung 900X in Arch Linux?

The only one which works is Fn+F5 (toggle touchpad), presumably because xf86-input-synaptics is installed. Fn+F1 prints a literal plus/minus sign ("±"). Installing samsung-tools and rebooting did not ...
1
vote
0answers
156 views

Configuring Caps Lock as modifier and layout switcher

I want to set the caps lock key working as a modifier (modkey) and layout switcher at the same time. I want Caps Lock to act as a modkey in awesome in different hotkey combinations, for example, ...
3
votes
1answer
341 views

bind key sequence to Escape, zsh

How would I map jj to Esc in zsh? I'm trying to recreate a key-mapping that I have setup in vim, where I have jj mapped to ESC so that whenever I double-press j, it sends the an <Esc> to ...
3
votes
1answer
536 views

Control-space on Cinnamon

I installed synapse on my Cinnamon desktop, and everything worked with the keyboard shortcut Ctrl+Space. Then, at some point, it stopped working properly, and I had to hold down Control and hit space ...
4
votes
2answers
3k views

How to remove Cinnamon's Alt-F1 keybinding using Linux Mint 15

I've just started using Linux Mint 15 with Cinnamon 1.8.8 at work and when I press Alt+F1 the display zoom out and displays the workspace switcher. How can I disable this shortcut? I removed the ...
2
votes
1answer
381 views

How to use numeric keypad as mouse?

Is there a way in Linux mint to use numpad as a mouse on my desktop. I have tried shift+numlock but it did not work. Is there a package that I must install? Articles on the Internet are too old to ...
1
vote
1answer
233 views

ArchBang - Missing wireless interface, or how to remap fn+F1-F1

Hello I am using ArchBang on old laptop Dell D410 (Dell D410 Technical Specification). I have troubles with wifi. My assumption (please read bellow explanation why I deducted this) is that I cannot ...
5
votes
1answer
684 views

Return to X session after Ctrl+Alt+F1

What is the command to return to the graphical desktop after entering the terminal mode with Ctrl+Alt+F1? I need it for operating my Raspbian.
4
votes
1answer
48 views

What is the scheme for textual representation of keystrokes in screen?

How can I derive the character sequence that represents a certain keystroke in screen? I mean, what bind takes as input. For instance, 's' represents the obvious keystroke on the 's' key. 'S' ...
2
votes
0answers
66 views

Keyboard-bound applications in Openbox

Following the template of another stack user I've bound a keyboard shortcut to toggle an application between hidden and fullscreen. The only problem is, no matter what application I apply it to, I ...
1
vote
1answer
329 views

How can I script xrandr's scale function to switch to the next or previous resolution in a predefined list?

xrandr has a nifty feature that lets you scale your entire screen so that your virtual resolution is larger or smaller than your actual resolution. I use it on my netbook's 1024x600 resolution screen ...
2
votes
1answer
125 views

Zsh - Disable Tab Insert

I'm trying to configure zsh to closely fit how bash behaves before I fully switch, and one behavior I'm trying to modify in zsh is when it inserts a Tab character. I see how it could be helpful for ...
4
votes
1answer
195 views

Using Ctrl+[0-9] to cycle between windows using tmux

I have started using tmux but I feel that using Ctrlb0-9 is very annoying, because it's used so often. How do I bind the keyboard so I only need to do Ctrl0-9 for changing windows (like in Chrome)? ...
4
votes
1answer
319 views

How to bind 'tab' and 'shift+tab' in gnu screen?

As the title says, how do I bind the keys 'tab' and 'shift+tab' in screen? My problem is that I don't know what to pass to the screen command "bind" to designate these keystrokes. BTW, I'm aware of ...
1
vote
1answer
137 views

Nautilus Renaming Bug when pressing 'n' key in Ubuntu

I have what i can consider a Big Bug on Nautilus under Ubuntu Linux. When I am in the process of renaming a file or a folder, if I press n, nautilus opens a new tab. The effect is: I cannot include ...
2
votes
1answer
504 views

How to run a script by shortkey in elementaryOS?

I want to be able to run certain scripts by shortcut the way I do in ubuntu - for example some similar to this awesome script. (On that model I can search google the text selected in any text editor, ...
3
votes
3answers
1k views

How can I delete a word backward at the command line (bash and zsh)?

How can I delete a word backward at the command line? I'm truly used to some editors deleting the last 'word' using ctrl+backspace, and I'd like that functionality at the command line too. I am ...
1
vote
1answer
61 views

Vim key binding to cycle through windows

How do I bind one single key to cycle through the windows? For example, each time I want to switch a window, I have to click ctrl-a (default was ctrl-c) then use arrow key up/down/left/right to ...
4
votes
2answers
109 views

How can I use caps lock to change language in VIM

Can I use capslock for changing languages in VIM instead of Ctrl + 6 in case of "keymap=russian-jcukenwin"? How can I do it? Maybe something like mapping it in the $VIMRC file? How can I map ...
48
votes
6answers
7k views

Exit vim more quickly

I use Vim mainly for quick edits rather than long work sessions. In that sense, I find the keyboard sequence for quitting especially laborious: Esc, Shift + ;, w, q, Enter. How to quit Vim (possibly ...
2
votes
1answer
74 views

In emacs are any key sequences available for user macro bindings in all modes

I have recently started using org mode in emacs, but my macro bound in my initialisation file to C-x C-k T no longer works because this combination is used by outline mode which underpins org mode. I ...
7
votes
1answer
1k views

Why didn't Ctrl-C work?

I just hit Ctrlc twice at my shell in an attempt to halt a process that is taking a long time to finish. ^C was echoed twice, but the process just kept going. Why didn't Ctrlc quit the process like ...
2
votes
0answers
56 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
16
votes
1answer
564 views

Shortcut keys that are independent to keyboard layout

Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout? Example: In most ...
2
votes
1answer
88 views

tmux “last-session” binding

How could I bind to last (most recent) session? The obvious last-session leads to an "unknown command" error. bind-key z last-session
9
votes
1answer
111 views

Map a symbol to a specific key

I have the following problem: I use the intl variant of gb keyboard layout, i.e., what you get with: setxkbmap -layout gb -variant intl I use gmail in Firefox, and for some reason, the gmail ...
6
votes
1answer
2k views

How to execute a script in shell when a shortcut key is pressed

How could I execute a script in Shell when a shortcut key is pressed. Essentially what I need is when a shortcut key is pressed the script should read from a file and display that content in the ...
3
votes
2answers
1k views

Adding key bindings for “Fn” + “Control” key in openbox

I need use Fn + CTRL as a key combination, but it doesn't work in openbox (works in XFCE / KDE4`). <keybind key="Fn-C"> <action name="ToggleMaximize"> </action> ...
0
votes
1answer
50 views

is there a vim shortcut or can I create one for 'tabe other_file'

When possible I create 1 or 2 letter abbreviations for aliases and the like, e.g. x for exit or p for pwd at the command line. When using vim and doing multiple tabs for different files (which I can ...
2
votes
2answers
282 views

Cursor keys in bash in dtterm don't work as expected

I am trying to remap some of my keyboard shortcuts in bash. The problem is that when I try to display key code using Ctrl-V, not all keys work. For example, Typing Ctrl-V, then Home moves the terminal ...
2
votes
2answers
184 views

Is it possible to assign multiple commands to a single hotkey? (bash, xterm)

Back in the day, if my cursor was in the middle of a really long shell command I'd just hit Ctrl+C to get myself a new command prompt. Then I learned about Ctrl+K/C and life was good. Unfortunately ...
1
vote
1answer
652 views

How to use Super-L instead of Alt in XFCE for resizing/moving windows?

In XFCE, when holding down Alt and then clicking anywhere in a window with the left button will move that window (as if by dragging the title bar), or resize the windows when clicking and dragging ...