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 (2)

0
votes
1answer
60 views

How to cycle displays in Mate desktop?

On the Arch-based Antergos Linux, initially Gnome Shell desktop, I have installed Mate on a laptop that normally (in Windows, OpenSuse, Ubuntu) has a dedicated key to switch between displays, which ...
1
vote
0answers
9 views

Can I bind single keys in zsh when in vi normal mode? [duplicate]

I use urxvt with zsh and vi keys (bindkey -v). Is there a way to bind custom commands to single keys when in normal mode? For example, I'd like p to run xclip -o -sel clip and insert the result at the ...
25
votes
1answer
1k views

ESC + { : What is it and where I can know more about it?

I was play around at the bash prompt, and pressed ESC followed by { , after which , the shell showed all the files for completion, in a fileglob string. Eg : If I had typed bash C followed by ESC+{ , ...
3
votes
1answer
483 views

How to control keyboard backlight using hotkeys

How can I turn increase and decrease the keyboard backlight in notebook on Linux using the same hotkeys used on Windows? In Windows I can control the keyboard backlight by pressing hotkeys (FnF9 to ...
1
vote
1answer
15 views

tmux doesn't passes correctly ctrl-shift-arrow sequences

Tmux doesn't passes correctly the ctrl-shift-arrow sequences. It doesn't work on emacs, and when I use sed -n l, I see it displays the escape sequence of the arrow key alone instead of the full ...
2
votes
2answers
13k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
5
votes
2answers
466 views

Fully Disable PrntScr Key

I recently came across a Linux feature I have never seen before, where pressing the PrntScr button on the keyboard prints a physical piece of paper with the contents of my console. I really need to ...
3
votes
1answer
26 views

Shutdown with keyboard press doesn't work

I have a Debian Jessie build, and I want to add keyboard shutdown. I've tried the following, without any success: Attempt 1 To /etc/inittab I added ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
3
votes
2answers
183 views

How remap my CapsLock key to work as if it was a Return key using setxkbmap?

I tried several things: setxkbmap -option caps: return setxkbmap -option caps: enter I also tried to modify the file /usr/share/X11/xkb/symbols/pc by: "Key <CAPS> {[Enter]};" But nothing ...
0
votes
0answers
7 views

how to find keycodes for Aterm backspace, and deletekey

I downloaded compiled, and installed aterm 1.0.1. and I cannot get the backspace or delete keys to work. I've tried everything I've found on the net about it. aterm*backspacekey: \010 ...
0
votes
0answers
16 views

linux keyboard: how remap euro key from sequence ALT 0128 to PgUp?

I have laptop Acer Aspire E1-772G and it have Euro key near cursor keys. I do not use Euro and moreover it is implemented so pressing it generate sequence ALT 0 1 2 8 # showkey -k kb mode was ...
17
votes
5answers
10k views

Reload of tmux config not unbinding keys (bind-key is cumulative)

I've been experimenting with different tmux keybinding settings and I've noticed the following: If I reload my tmux config (from within tmux) the keybindings I once had loaded will remain loaded. The ...
0
votes
1answer
10 views

Keyboard layout settings conflicting

I just changed my keyboard to an Ergodox with a US layout (previously it was Portuguese) I use Arch Linux with Gnome 3, so I went to the settings manager, and added US as the default keyboard layout. ...
6
votes
3answers
310 views

Mint 17 (Cinnamon): CTRL+Shift+U not letting me enter unicode symbols

I realize there's probably a simple answer to this question. I come from Ubuntu (Unity) and am used to type unicode symbols with Ctrl+Shift+U, followed by the symbol's code and Enter. This doesn't ...
1
vote
2answers
1k views

Linux guest VM on mac host - Keyboard

I use a Mac as a development box, but am slowly transitioning to Linux. So I am spending the majority of my time in the Linux guest VM while working. But I still spend a fair amount of time in Mac ...
1
vote
1answer
25 views

How to re-enable the Ctrl+Shift+U shortcut in Cinnamon Mint 17.3?

The Ctrl+Shift+U shortcut for writing Unicode characters seems to work inside of the software manager's search bar. Everywhere else such as Gedit, Terminal and Google Chrome pressing Ctrl+Shift+U does ...
2
votes
1answer
937 views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
1
vote
0answers
12 views

using xinput to get device state

I have a simple script to turn my keyboard of written using xinput. How can I get the current state of the device (enabled or disabled) so that when I run the script I can dont have to specify on/off, ...
0
votes
1answer
20 views

Execute custom command in Geany

I want to execute some command with currently edited file as argument from within Geany, triggered by keyboard shortcut. For example: I am editing /home/user/file.txt and after hitting "Ctrl+B" I ...
4
votes
2answers
2k 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 ...
0
votes
0answers
15 views

How to hide cinnamon screensavers from albert launcher

I am trying to use albert launcher on linux Mint 17.3. It was showing a lot of applications for almost anything I typed in it, application that did not launch, did not have any icons, names I was ...
1
vote
0answers
23 views

How to Map AltGr + any key to shortcut in Openbox/Lubuntu file lubuntu-rc.xml

I have a highly customised lubuntu-rc.xml file; all key combinations that I can use for command shortcuts are mapped, so I need to utilise more keys so I can have more shortcuts. I would like have ...
10
votes
0answers
605 views

Remapping keys that generate multiple scan codes

I have a ThinkPad W540. On its keyboard there are four multimedia keys above the numpad. Two of those keys generate keycodes (and, apparently, scancodes) that correspond to combination of keys, Win_L ...
1
vote
1answer
12 views

Unset or change default “re-detect monitors” windows+p cinnamon keybinding using gsettings

I'm trying to unset or change the default Windows+P (or to be more exact Meta+P) "re-detect monitors" cinnamon keybinding via gsettings, but having a hard time finding it in the gsettings tree. In the ...
0
votes
0answers
14 views

“Un-iconify” windows in openbox

I have a keybinding in my ~/.config/openbox/rc.conf which iconifies the current window: <keybind key="W-r"> <action name="Iconify"/> </keybind> Now I'm looking for an action ...
2
votes
2answers
42 views

How to disable shortcuts in urxvt?

I have installed urxvt and mc. There is a combination Alt + S in urxvt and the same combination in mc. When i use mc through urxvt and press Alt + S, command of the urxvt works instead of command of ...
6
votes
2answers
1k 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
1answer
13 views

How do I bind the Python interpeter to a key?

Currently I open the interpreter with a keybinding pointing to gnome-terminal --hide-menubar --full-screen then type python I want to open it directly. I've tried: gnome-terminal --hide-menubar ...
5
votes
2answers
53 views

Resizing windows in i3 using keyboard only

I am trying to set up my computer (running Crunchbang Linux Waldorf and i3) so that it is always, by default, configured so that pressing Ctrl + Shift and arrow keys resizes the window the direction ...
1
vote
0answers
13 views

execute script on shortcut key in all runlevels

I have a laptop with intel graphics. The Fn key brightness control only works when the user is logged into the desktop environment. It never works in the login screen or in tty sessions. I have to ...
2
votes
1answer
22 views

How can I jump to a particular window, no matter what workspace it's on?

Ideally I could say $mod+J+E → jump to Emacs (wherever it is), and the same could be done for $mod+J+W → jump to Firefox (wherever it is). It seems pretty trivial to jump to a workspace, using ...
3
votes
2answers
108 views

What are the keyboard shortcuts for the command-line?

I'm talking about the keyboard shortcuts that you use in command-line/terminal. Example: Ctrl+c that kills the process, Ctrl+d that logout, Ctrl+z that send process to background... etc. I've tested ...
3
votes
0answers
26 views

Bind ALT key in Tmux to move across panes

I'm using Ubuntu 14.04 and I would like to bind ALT + <hjkl> in tmux to move across splits. I've seen this plugin that allows you to move across panes with CTRL + <hjkl> but I would like ...
15
votes
3answers
15k 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 ...
4
votes
2answers
2k views

How to use CapsLock instead of Escape in Vim?

I would like to map my CapsLock to Escape. How do I represent CapsLock in .vimrc? I know to map space to a command I would do something like this: :map <space> viw How would I map CapsLock ...
0
votes
0answers
13 views

LXDE/Openbox shortcuts are slow

I've noticed that when using a shortcut on Openbox (the ones in ~/.config/openbox/lubuntu-rc.xml) They tend to react slowly at times. Especially when launching applications. If I launch fehlstart ...
2
votes
0answers
1k views

Enable Alt+Ctrl+t to open a terminal in LXDE

How can I enable shortcut Alt + Ctrl + T to open terminal on Debian, LXDE? I found that this is possible to define in rc.xml file. In LXDE webpage I found message: How do I define LXDE settings ...
0
votes
0answers
21 views

KDE changes keyboard layout on shortcuts

I ran into a strange anomaly with KDE 4.14.3 (Gentoo Linux) on my college's workstation. He had two keyboard layout: hu qwertz and us qwerty, and the hu qwertz was the active layout. When He typed a ...
0
votes
1answer
24 views

Linux alternative to alt+numpad codes

I sometimes need to type "alt codes" to get symbols and on linux, it can be inefficient to use shift+ctrl+u then type the code, for example shift+ctrl+u+00a7 for § when on Windows it's alt+21. So ...
9
votes
1answer
337 views

How to put current line at top/center/bottom of screen in vim?

Any quicker navigation trick to place the line at which the cursor is at the moment to the top of the screen? center of the screen? bottom of the screen?
0
votes
0answers
20 views

Ubuntu Gnome 15.10 super key mapping into Android Studio keymap

I am switching between OSx and Ubuntu Gnome (which is fantastic btw) and want to try and have the same shortcuts inside Android Studio. I am using a wired mac keyboard and CMD is default mapped to be ...
6
votes
3answers
5k views

Shortcut to minimize all windows?

In Windows systems, I use the keyboard shortcut Start-D (show desktop) a lot. I'm using Linux Mint, and I wonder: Can I create a keyboard shortcut that will do the same? edit after the comment from ...
1
vote
2answers
383 views

Restrict Alt+Tab to the current workspace in Gnome 3

Is there a way to tweak Alt+Tab in Gnome 3 so it will iterate windows only in the current workspace? I'm using Debian wheezy.
4
votes
0answers
26 views

How do I *completely* disable the Ctrl-O shortcut in Midnight Commander?

I like using both Midnight Commander and Vim. In Vim, Ctrl-O is the "go to previous position" command, and in MC, by default, it toggles between the shell and the panel. I would like to be able to ...
1
vote
1answer
32 views

“Close window” (Ctrl+q) Shortcut not working on every window

In Linux Mint Cinnamon there are a lot of tools that can not be closed using Ctrl+q. For example the "Software Manager".. Is there a reason for this strange behavior? Can I somehow make Ctrl+q work on ...
1
vote
0answers
13 views

Making the Mod+4 Key Behave

I have a Dell XPS 13 laptop, originally with Windows but running Debian (after some effort). On the bottom row of the keyboard, there is, in this order, these keys: CTRL FN Windows ALT SPC ALT ...
1
vote
1answer
18 views

Paste clipboard as text into keyboard buffer

Once in a while I come across annoying web sites, which think they know security and won't allow me to paste password from password manager. I want a tool which allows me to take clipboard text and ...
33
votes
5answers
32k views

How to scroll in a terminal using keyboard?

How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?
5
votes
6answers
3k views

Map Caps Lock to Control in Linux Mint

I am running the latest version of Linux Mint with Cinnamon. I'm trying to map CapsLock to Ctrl, but I cannot figure out how to do it. All web searches i've done has lead me to older versions of Linux ...
4
votes
1answer
391 views

How to reset linux centOS 6.0 keyboard shortcuts with custom changes to default one?

On Single Desktop Environment.... I created some custom shortcuts, but currently I want to revert all the changes to default settings (which having no custom changes). Example: created like CTRL + N ...