Thread 105744102 - /g/ [Archived: 651 hours ago]

Anonymous
6/29/2025, 4:55:46 PM No.105744102
1734298116644115
1734298116644115
md5: d0f4dd34348bfad19f96357b9b5167f7🔍
So this is the power of linux...
Replies: >>105744198 >>105744327 >>105744339 >>105744341 >>105744834
Anonymous
6/29/2025, 4:56:49 PM No.105744117
use case?
Replies: >>105744181 >>105744198
Anonymous
6/29/2025, 5:03:41 PM No.105744180
755
755
md5: be858c5f6a6d55caeb714f9d0be6acfe🔍
Anonymous
6/29/2025, 5:03:44 PM No.105744181
>>105744117
irrelevant. The question should rather be, why does the most costumizable, secure, privacy and pronoun respecting commie OS not support this? And why can this be done on Windows without taking the whole system apart?
Replies: >>105744198
Anonymous
6/29/2025, 5:05:17 PM No.105744198
>>105744102 (OP)
>>105744117
>>105744181
code it yourself in python, its 2 lines of code
Replies: >>105744213 >>105744238 >>105744295
Anonymous
6/29/2025, 5:06:41 PM No.105744213
>>105744198
post the 2 lines
Anonymous
6/29/2025, 5:08:22 PM No.105744226
2nd result for "linux toggle shift key"
https://old.reddit.com/r/linuxquestions/comments/1d9g1am/how_to_make_the_shift_key_a_toggle/
Anonymous
6/29/2025, 5:09:33 PM No.105744238
>>105744198
the guy in the pic wants to write a macro that emulates the shift key. I highly doubt that the macro interpreter has any python bindings. At least AHK on windows doesnt.
Replies: >>105744243
Anonymous
6/29/2025, 5:10:08 PM No.105744243
>>105744238
the windows api has that function
Replies: >>105744295
Anonymous
6/29/2025, 5:14:24 PM No.105744292
I don't get it, why a shift toggle and not caps lock? Use case?
Replies: >>105744302
Anonymous
6/29/2025, 5:15:07 PM No.105744295
>>105744198
i think the guy in the pic wants to write a macro that involves toggling the shift key. I dont think the macro interpreter has python bindings. At least Autohotkey for windows doesnt.

>>105744243
yep.
Replies: >>105744304
Anonymous
6/29/2025, 5:16:00 PM No.105744302
>>105744292
KEY REMAPPING YOU FUCKING TROONIX TOOL
yes I use capslock because I'm dead serious, your kind are fucking useless idiot
Replies: >>105744345
Anonymous
6/29/2025, 5:16:13 PM No.105744304
>>105744295
>I dont think the macro interpreter has python bindings
what bindings? just emulate the keypress of the shift key to always be down
Replies: >>105744369
Anonymous
6/29/2025, 5:20:31 PM No.105744327
>>105744102 (OP)
why not https://github.com/rvaiya/keyd ? Literally first result in google
Replies: >>105744368 >>105744368
Anonymous
6/29/2025, 5:21:48 PM No.105744339
>>105744102 (OP)
I experienced this, but with wayland, it was such unstable garbage that I had to go back to x11
Anonymous
6/29/2025, 5:22:38 PM No.105744341
>>105744102 (OP)
...the caps lock button?
Anonymous
6/29/2025, 5:23:01 PM No.105744345
>>105744302
How about stop being a DYEL bitch and realize that clicking shift when you need it is not an issue?
Anonymous
6/29/2025, 5:23:44 PM No.105744349
So you're asking for a piece of software that changes shift to capslock despite everyone in history just moving their little finger up half an inch when typing?
Anonymous
6/29/2025, 5:25:14 PM No.105744368
>>105744327
>>105744327
yeah keyd works for me
that guy is just retarded
Anonymous
6/29/2025, 5:25:19 PM No.105744369
>>105744304
If I wanted to execute a hypothetical combo in a video game made up of a sequence of keys including "Shift" by simply pressing "Q", i would have to be able to emulate shift along with the rest of the keys in the combo sequence (with delays in between). Simply pressing "Q" to emulate "Shift" using python would not help his case. Also, factor in other conditional macro shortcuts to emulate other key sequences.
Anonymous
6/29/2025, 5:26:51 PM No.105744381
Based on the discussion, the user wants to toggle the Shift key (tap once for "on," tap again for "off") instead of holding it down. Here's how to solve this on Linux:

### Recommended Solution: Use `keyd` (Works on X11/Wayland)
1. **Install `keyd`**:
bash
git clone https://github.com/rvaiya/keyd
cd keyd
make && sudo make install
sudo systemctl enable --now keyd


2. **Configure**:
Edit `/etc/keyd/default.conf`:
ini
[ids]
*

[main]
# Make left Shift a toggle key
leftshift = toggle(shift)
# Optional: Disable right Shift or leave as normal
rightshift = overload(shift, rshift)


3. **Reload**:
bash
sudo systemctl restart keyd


### Alternative Solutions
- **For X11 (Older Systems)**:
Use `xmodmap` to remap keys, but this requires scripting to emulate toggle behavior.
- **Python/`evdev`** (Advanced):
Create a script to intercept Shift key events and toggle state (complex, not recommended for beginners).

### Why This Works
- `keyd` handles key remapping at the kernel level, working reliably across desktop environments (GNOME, KDE, etc.) and display servers (X11/Wayland).
- The `toggle(shift)` function converts the key into a sticky/latching key (like Caps Lock but for Shift).

### Notes
- **Caps Lock vs. Shift**: The user specifically wants Shift toggled (not Caps Lock), likely for gaming or accessibility.
- **Windows Comparison**: Windows has native APIs for this (e.g., `SetKeyboardState`), but Linux requires tools like `keyd` for similar flexibility.

Test immediately after configuring. If issues occur, check logs with `journalctl -u keyd -f`.
Replies: >>105744393
Anonymous
6/29/2025, 5:28:23 PM No.105744393
>>105744381
/thread
should have just asked chatgpt from the beginning
Anonymous
6/29/2025, 5:32:39 PM No.105744439
qq
qq
md5: c31ff361e36023d6dbd646b78f5b8f0f🔍
>computers went wrong when they made them for niggers
Anonymous
6/29/2025, 6:22:08 PM No.105744834
>>105744102 (OP)
xdotool