Skip to content

u/jinks

In this archive from Jun 2010 to Nov 2026

2
posts
122
comments
0
media
416
score

If you want umlauts with a US keyboard, try this:

~/.config/hypr/hyprland.lua

hl.config({
    input = {
        kb_layout  = "us-german-umlaut",
},})

~/.xkb/symbols/us-german-umlaut

default partial alphanumeric_keys

// https://www.charvolant.org/doug/xkb/html/img3.png
xkb_symbols "basic" {
    include "us(altgr-intl)"
    //include "level3(caps_switch)"
    include "level3(ralt_switch)"
    name[Group1] = "English (US, international with German umlaut)";
    key  <TAB> { [ Tab, ISO_Left_Tab, Multi_key, Multi_key ] };
    key <AB03> { [ c, C, cent, copyright ] };
    key <AD03> { [ e, E, EuroSign, EuroSign ] };
    key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
    key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
    key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
    key <AC02> { [ s, S, ssharp, U1E9E ] };
    key <AC03> { [ d, D, Greek_delta, Greek_DELTA ] };
    key <AB07> { [ m, M, mu, Greek_MU ] };
    key <AD10> { [ p, P, Greek_pi, Greek_PI ] };
    key <AD04> { [ r, R, registered, registered ] };
    key <AD05> { [ t, T, trademark, trademark ] };
    key <TLDE> { [ grave, asciitilde, degree, degree ] };
};

Now you can type the comoin umlauts with RAlt+<key>, the table should be pretty self-explanatory.

1 points

Since you're interacting with external processes, cmd_exec is probably the right approach here. (There are some Luau libs to do process management, but they seem like overkill.)

Maybe shorten the whole thing to hl.bind("SUPER + SHIFT + SPACE", hl.dsp.exec_cmd("pkill waybar && waybar'"))

2 points

This happens, when you lock Hyprland and your lock screen app dies/is killed.

It prevents someone who managed to crash your lock screen from accessing your desktop.

1 points

For people finding this in the future, here's a slightly optimized version:

bind = $mainMod, mouse_down, exec, hyprctl keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 + 0.5}')    
bind = $mainMod, mouse_up, exec, hyprctl keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 - 0.5}')    
bind = $mainMod SHIFT, mouse_up, exec, hyprctl keyword cursor:zoom_factor 1
1 points

You probably have root=UUID=xxxxxxxxxxxxxxxxxxxx somewhere in your boot parameters. It can't find that UUID any more for some reason...

edit the parameters in your boot loader, switch that bit to root=/dev/sdaX, boot and then make sure your fstab and bootloader config are correct. Regen your initrd to be on the safe side.

3 points

Disclaimer: I had the exact opposite problem, my muse would wake up the PC at the slightest provocation, so I'm not sure this solution applies to you.

I got all my info from here: https://askubuntu.com/questions/252743/how-do-i-prevent-mouse-movement-from-waking-up-a-suspended-computer

And this is the file excluding the muse from the ACPI subsytem:

% cat /etc/udev/rules.d/50-wake-on-device.rules

# G502 wired
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c08d", ATTR{power/wakeup}="disabled"

# G502 unifying receiver
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c539", ATTR{power/wakeup}="disabled"

Hope that helps.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.