this post was submitted on 22 Sep 2023
34 points (97.2% liked)

Linux

48220 readers
629 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Trying to assign a lot of custom shortcuts to my keys. So, I want two key combinations which are unlikely to used by other websites/distros. I use MX Linux 21 xfce btw.

Also, is there a way to know what your systems current shortcuts are? I am pretty sure not many websites use Windows button + _____ shortcuts, so if I know what shortcuts to avoid, I can create many shortcuts as a combination of Windows Button

top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 1 year ago (1 children)

i3 uses Super key combinations regularly, fwiw

[–] [email protected] 6 points 1 year ago (1 children)

i3

what is i3, you mean intel i3?

[–] [email protected] 13 points 1 year ago

i3 window manager

[–] [email protected] 9 points 1 year ago (2 children)

Hyper + [whatever]

If you are ready to use a bit of remapping (try keyd, it's awesome), then you can remap a key you rarely use to Hyper to get that as a direct modifier.

You can also assign some key to activate a layer when held, but still return it's regular output when tapped. So e.g. holding A gives you a new layer, press-and-release just prints A.

In the new layer, you can then set, say, f1 = f13... f12 = f24 and, say, esc = katakana etc., thereby getting access to a lot of keys not present on standard western keyboards, therefore not used as standard shortcuts. These you can then use directly, or in combination with standard modifiers like Ctrl, Shift...

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

There's also kmonad, which is cross-platform. I think there's one more floating around out there.

It got so that I had to use one of these, because I used an ErgoDox at my desktop. Once the muscle memory takes hold, it's hard to do without, so I run kmonad on my laptop, even though I don't really need it.

Edit: map2 is the other one I was thinking of.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Wow this looks awesome.

Do you by chance have any idea on how the special media keys are called on keyboards that have them? You know the standalone ones above the F keys (Looking to remap them)

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

keyd has a list-keys sub-command that lets you list all valid key names and also monitor to print the names of keys as you press them.

[–] [email protected] 1 points 1 year ago

Thank you!!

[–] [email protected] 7 points 1 year ago

Alt/Ctrl+___ are usually used by applications and shortcuts containing Super+___ are usually "reserved" (it's no rule or anything but basically no application uses Super) for the DE. That's why Super is probably the best mod key for shortcuts. You can ofc use Alt+___ as well, in that case your DE/WM will just take preference over the application and the shortcut will be handled by the DE/WM instead of the application

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

shortcuts can be customized in almost any DE.

like xfce.

and websites use browser shortcuts, which again can be customized.

i dont know if i understand your question well enough. but i would guess any 3 key combination of non standard shortcut combo (~~cmd~~ctrl+alt) will lead to unique shortcuts.

edit: ctrl not cmd. Im dumb.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

any 3 key combination of non standard shortcut combo (cmd+alt) will lead to unique shortcuts.

It depends what OP is using their PC for. For example many IDEs and code editors use ctrl + alt + ... (Often even longer combinations).

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

therefore I was saying

non standard shortcut combo

:)

judt saw that I typed cmd then ctrl. thanks for noticing.

[–] [email protected] 1 points 1 year ago

Oh, sorry, I misinterpreted your comment. My bad.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Different applications may have their own keyboard shortcuts that are not system-wide, although, importantly, system-wide ones generally override these.

Mint Cinnamon has a Keyboard applet in System Settings that shows the system shortcuts in the aptly named Shortcuts tab. (Xfce is GTK, if not completely GNOME based, so I am assuming it has something similar.)

Unfortunately, at least for this purpose, they're not in one monolithic list, but in a tree view sorted by category.

If I have any sort of recommendation, the number pad is rarely used for shortcuts, especially not with chorded modifiers (e.g. Shift+Ctrl etc.). The closest I'm familiar with are Ctrl-Plus, Ctrl-Minus and Ctrl-0 for changing zoom levels in things like web browsers.

Using lots of modifiers at once is also pretty rare.

Also also, if you have a keyboard with working multimedia keys (or something accessible via an Fn key), these might be detectable with modifiers as well.

Personal examples:

Shift+'e' (a multimedia key, not the letter) = start Firefox with a different profile configuration. Without the Shift is the out-of-the-box default behaviour and the regular Firefox profile. I rarely use this and tend to use launch icons instead, but it's nice to have around.

Super+NumberPad5 = Resize the current window to full height, centred with 4:3 proportions. Another web browser one. I was Internetting on 4:3 monitors for a long time before 16:9 windows were commonplace and browsers still look weird to me at full width.

Shift+Ctrl+Alt+Super+Break = wtf = "Can't hit this by accident" = "Vulcan nerve pinch" = Suspend the computer. I tend to mash Ctrl, Super and Alt at the left of the keyboard where they're all in a line and then hit right Shift and Pause/Break with my right hand.

(I don't have a cat, but I have considered that it's vaguely possible that a keyboard-walking cat could theoretically hit this. Something to think about if you think it's a decent idea but have a cat!)

[–] [email protected] 3 points 1 year ago

there a way to know what your systems current shortcuts are

Not really, besides just reading the manual. I think this is a problem for the Linux desktop actually. I would love a standard way (dbus API?) for the DE and various apps to declare their key shortcuts, and then I could view them in a pop up when I'm using the app.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Printscreen + Screenlock + Pause ?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

I use shift+super or ctrl+super as a modifier for shortcuts. Most of my things ignore when the super is also pressed. I also removed all of the shortcuts from XFCE's keyboard settings so only mine are there.

EDIT: I also want to say I use a Razer Naga X mouse, and have access to a full numpad with my thumb.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I don't know much about xfce, but there should be config file somewhere with all shortcuts, at least that's how it works in hyprland. And btw, I use super (windows) key for shortcuts related to my wayland compositor (like switch workspace, swap windows, close window, and so on). I've never run into any conflicts with this.