this post was submitted on 23 Dec 2023
45 points (89.5% liked)

Linux

48685 readers
576 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
 

Title. Basically, "if a street fighter gamer and a linux tryhard had a baby" where a combination of keys is issued to run a command/script rather than a single or a simultaneous stroke of two or more. i.e left, down, left, right arrow keys, R_CTRL to run Firefox. Right, right, Up, right arrow keys, delete to power off the PC, etc.

Don't know if such command exists, but there you go.

Bonus points if its a standalone and supports X11, Wayland and Arcan.

all 28 comments
sorted by: hot top controversial new old
[–] kurisu@awful.systems 24 points 1 year ago (1 children)

Man I already can't get my inputs right in games, If I ever whiff a fucking combo to start my browser I'm ending it all.

[–] Rayspekt@kbin.social 7 points 1 year ago

You need to get out of the parking garage from Driver to boot your PC from now on.

[–] Rustmilian@lemmy.world 20 points 1 year ago* (last edited 1 year ago) (1 children)

↑↑↓↓←→←→ + a + b + Enter = sudo rm -rf /* --no-preserve-root

[–] lemmyvore@feddit.nl 7 points 1 year ago

And you can do it with a controller too!

[–] RandoCalrandian@kbin.social 18 points 1 year ago (2 children)

You mean a key combination like OS, f,i,r,e,f,down,down,enter to launch Firefox?

That exists, bud. There are even multiple ways to achieve the same command, like “OS,t,e,r,m,i,n,a,l,down,enter, ‘open Firefox’”

[–] umbrella@lemmy.ml 3 points 1 year ago

in my de its just os > firefox > enter

[–] Eheran@lemmy.world -5 points 1 year ago (3 children)

Hahaha, thank you. In windows that would be even more efficient, since a few letters will be enough to identify something unique. Win, f, i, enter

[–] RandoCalrandian@kbin.social 8 points 1 year ago

The same is true in Linux, but it’s harder to get the joke with “OS,f,i,enter”

[–] sir_reginald@lemmy.world 6 points 1 year ago (1 children)

Win, f, i, enter

It's literally the same with most Linux's DEs. And even in Window Managers when using dmenu or rofi.

[–] Eheran@lemmy.world -1 points 1 year ago

Good. Why did he then fell the need for absurd key combos?

[–] YourMomsTrashman@lemmy.world 4 points 1 year ago

Out-of-the-box Cinnamon & Gnome moment

[–] vort3@lemmy.ml 11 points 1 year ago

So, basically, vim? /s

[–] lurch@sh.itjust.works 6 points 1 year ago* (last edited 1 year ago) (1 children)

hyprland has this, but you have to configure it. It's called Submaps. Some other tiling window managers/compositors (notion for example) have it too, but not to that extent. (notion can be enhanced by Lua scripting, tho.)

The idea is, after the first key of the sequence the meaning of a set of keys change. You could configure those to change the meanings again etc until you finally reach whatever depth you wanted and it performs an action.

However, be warned that hyprland is currently developed by very elitist people who like to support onky a very small set of distributions (primarily Arch btw) and have not much interest in other peoples Ubuntu shenanigens and the likes. It is extremely hard to install in Ubuntu and similar, requiring you to do minor edits to build scripts and source code in multiple languages and finding required library versions from build errors that do not mention them.

[–] traches@sh.itjust.works 3 points 1 year ago

Sway and I3 as well, without the warning

[–] neo@lemmy.comfysnug.space 6 points 1 year ago

i prefer key chords as a name for that tbh

[–] djtech@lemmy.world 6 points 1 year ago

So... emacs?

[–] solariplex 5 points 1 year ago
[–] stepanzak@iusearchlinux.fyi 5 points 1 year ago

This might be what you're looking for. Here is a YouTube video tutorial.

[–] yetAnotherUser@lemmy.ca 4 points 1 year ago (1 children)

Imagine doing a 720 motion input for turning off your computer

[–] mvirts@lemmy.world 1 points 1 year ago

Alt f2 xterm sudo poweroff password

Ctrl Alt f2 sudo poweroff password

SysRq o

[–] megaman@discuss.tchncs.de 3 points 1 year ago

I think they call these "chords"

[–] ipsirc@lemmy.ml 3 points 1 year ago
[–] callyral@pawb.social 3 points 1 year ago* (last edited 1 year ago)

Key chords/submodes? Not a desktop app, but an Emacs extension, Hydra. There's also a Neovim version.

I don't know of a desktop app, personally I like to keep my desktop keybinds simple, so I wouldn't really need that.


There are two kinds of people:

Image transcription:

User @vort3@lemmy.ml · 4 days ago

So, basically vim? /s

User @djtech@lemmy.world · 4 days ago

So... emacs?

[–] Scraft161@iusearchlinux.fyi 3 points 11 months ago

sxhkd/swhkd, both support creating these natively and the second one works not just on Wayland, but also X11 and the TTY.

[–] Still@programming.dev 2 points 1 year ago

I think you can already do this in one shortcuts, not sure of any standalone program that does, if definably accidentally bond like Ctrl+d, Ctrl+s to screenshot before

[–] UdeRecife@literature.cafe 2 points 1 year ago

Espanso. A text expander that also runs commands.

[–] nbailey@lemmy.ca 1 points 1 year ago

Most desktop environments you just hit alt+f2 to activate the launcher which lets you run any command you want