Raspberry Pi - change keyboard shortcuts - raspberry-pi

on RPI its possible to open the terminal with keyboard shortcut CTRL+ALT+T.
Is there any way to change this shortcut to another combination or completely remove it?

You can change the key binding by modifying /etc/xdg/openbox/lxde-pi-rc.xml. So if you want want to run it with Alt+t you need to do:
<keybind key="A-t">
<action name="Execute">
<command>lxterminal</command>
</action>
</keybind>
And you could bind an existing shortcut to some other program.
There is a bunch of tutorials out there on this topic:
Creating Custom Raspberry Pi OS Keyboard Shortcuts
How to Create Custom Keyboard Shortcuts for Raspberry Pi

Related

What is vscode integrated terminal keyboard shortcut name

Sorry for the noob question. I am on an Italian keyboard and I would like to change the keyboard shortcut for the integrated terminal to something I can actually use.
When trying to change it I can't actually find the option for which I should change the key bind.
I have the Open New External Terminal option, but not something like Open Internal Terminal Option.

In VS Code, is it possible to programmatically open devtools?

In VS Code, you can use command palette to open dev tools
Is it possible to programmatically open it? I scanned through the API but didn't find it.
One way to find it is open the keyboard shortcuts under preferences
So apparently the command is called workbench.action.toggleDevTools which you can execute as
vscode.commands.executeCommand('workbench.action.toggleDevTools');
On Windows it's File->Preferences->Keyboard Shortcuts
On Mac it's Code->Preferences->Keyboard Shortcuts
Of course you can also press Ctrl-Shift-P/Cmd-Shift-P and type "keyb" and it will show up.

How to make Mac application respond to command tilde key shortcut to switch windows

In most Mac applications it is possible to switch between the open windows of an application using the cmd ~ key shortcut.
I want this in my app too, but I really don't see how to implement.
Most key shortcuts are implemented by adding a shortcut to one of the menu items. But for this one a menu item is not applicable.
In the Keyboard preferences pane, under the Shortcuts pane, Command-` is a system-level keyboard shortcut in the Keyboard category (labeled "Move focus to next window").

Can Visual Studio Code `quick fix` interact with keyboard?

I am using VS Code with the excellent vscodevim extension. When I navigate to a code that has a Quick Action available I can ctrl + . to activate the drop down context menu.
Is there a way to select toggle through the list of available items using the keyboard - other then the arrows keys. As a point of information, within Visual Studio it is possible using tab, this does not work in VS Code.
Why? 'cause I love my MS ARC keyboard but I hate the rocker arrow keys.
This is a known issue for linux users using vscode with advanced shortcuts like vim extension in your case, for some reason quick fix contextual menu is unattached from vscode shortcuts which makes shortcuts not work. A really easy workaround to use with a graphical interface is HotKey.
HotKey > https://github.com/autokey/autokey for Linux and create your own shortcut.

Is there a list of commands for keyboard shortcuts in Xfce 4?

I am relatively new to Xfce, but I love it. I am now looking into keyboard shortcuts and I am having problems with finding the right syntax for commands to bind keyboard shortcuts to.
I see two ways to set keyboard shortcuts:
menu → Settings → Keyboard → tab Application Shortcuts
file ~/.config/xfce4/xfconf/xfce-perchannel-xml\xfce4-keyboard-shortcuts.xml
The settings from option 1 I see in a <property name="custom"> section of option 2. But the file contains another <property name="custom"> that I don't see in the Keyboard Settings dialog, with commands like cycle_window_key, close_window_key, etc.
I would like to add keyboard shortcuts like tiling a window to the left, top, right, or bottom of the screen, but I can't find a list of commands and I have searched for a long time now.
I cannot seem to use move_window_up_key as a command, so I would love to see a list of *_key definitions as well.
Do these lists exist?
Although not a complete list (haven't been able to find a comprehensive one myself), take a peek at your window manager settings instead:
Menu → Settings → Window Manager → Keyboard
haven't been able to find a comprehensive one myself
Neither have I, but it looks like Xfce uses the common method of invoking the command using the name of the associated binary. On my system there are a bunch of them in usr/bin/ I found the location by using locate to find a typical command with
locate xfce4-terminal
It looks like they have man pages so, for example, you can find out about the usage of the Xfce 4 terminal with the command
man xfce4-terminal
You you are not limited to binding only Xfce commands to keystrokes, and can start any program using the same command you would use in a terminal.