Skip to content

u/csdvrx

In this archive from Jan 2021 to Apr 2025

48
posts
401
comments
4
media
1.1k
score
5 saved before deletion

If you have an idea how to get what I want, please help. It feels like I have read every xkb setting and couldn't figure it out.

xkb is complicated and unintuitive: I had a similar issue with shortcuts, as I use Caps both as Control (when chorded) and Escape (when alone) and I have a caps.sh script to do what I want, but the keycode can change: I made a comment in my .conf to remember that:

 # If using ctrl:nocapsr, both caps and lctrl send Control_L but with different keycodes
 #  caps=66 vs lctrl=37, so we must then use the keycode
bindr=CONTROL,code:66, exec, $HOME/.config/hypr/caps.sh

I think caps:none is your problem, because CAPS will be none if you do like in your example

bindr = CAPS, Caps_Lock, exec, /path/to/my/script

You could either use the correct 66 keycode for bindr, but it's simpler to change the grp toggle with kb_options=grp:menu_toggle and to make your bash script output the Menu key: it's rarely present on keyboard, so it's a better choice

In your bash script, use YDOTOOL_SOCKET=/run/user/1000/.ydotool_socket ydotool key code:1 code:0 with code replaced by the keycode you use.

1 points

And yeah I suffered a little when I saw that your response regards a new version was like 9 months old lol

I'm working on some other stuff and couldn't give this script the love it deserves :)

But I don't think my boot times are noticeably long, and it's working wonders

You should post your updated solution for those who prefer NetworkManager!

1 points

from my understanding, hyperladn.sh runs at the end of the boot sequence and starts everything right?

No, it starts ASAP while everything is started, having minimal requirements, so you get your screen displaying things while things it doesn't depend on are still loading

I'm using AGS for widgets and such, and I'd like for it to reload at the end of everything, because sometimes NetworkManager is not yet loaded by the time it starts, and the wifi icon gets broken, would adding a line for reloading AGS at the end of hyprland.sh fix this?

If you wanted to wait until the network is ready, it would cause delays. To avoid that, the script it made to depend on iwd, so it's just luck NetworkManager is still working sometimes :)

I suggest you replace the slow NetworkManager or the other equally slow equivalents by using instead iwd to do the networking job

Also check: systemctl --failed: it will tell you what is not working, in case there are other services you need

BTW it's an old post, when you get everything to work (including the wifi icon 100% of the time lol) you may want to post an update explaining what you changed on your system because it seems to me people are suffering from long boot times for no reason

1 points
csdvrxRemoved · saved before deletion

I cannot thank you enough... I came right.

That's wonderful! Maybe you should make a PSA to warn others about the dangers of ntfsfix?

Also it'd be nice to package the chkufsd tool for arch. I tried to ask the guy who wrote the kernel driver to release the source but I never got any reply. Too bad, because I'd have been happy to make multiplatform binaries

1 points

Whatever damage there was, ntfsfix most likely only made it worse,

Yes, ntfsfix hid the real problem.

I can't understand why such dangerous tools would be included with any linux rescue package.

Ask the package maintainer to replace it by the real chkntfs!

cannot find the location of the actual chkntfs, unless I'm overlooking something.

In the APK, it's named ntfs/assets/x86/chkufsd : just rename it to chkntfs

1 points

or just boot their live iso to take on a thumbdrive their vmlinuz along with their /lib/modules, then run depmod ?

If it works with no blink, then rebuilding the kernel is worth trying! If not, it means we still don't understand how they do it :(

BTW regarding taking a vmlinuz, I've done that with Ubuntu and PopOS kernels I wanted to test on arch :)

1 points

I was planning to test with a bzImage from fedora to see if it's the kernel .config but never found the time for that.

You may want to try the cmdline for fedora + the kernel binary on arch, it'd make it easier to pinpoint the root cause and finally have a fix in Arch

1 points

I sometimes make errors or don't consider edgecases

A little table that would show on which desktop the windows may end up could go a long way.

I've tried to do that manually for one rule, by scripting hyprctl clients but maybe there's a better way?

1 points

Boot entries cannot be edited, and instead need to be deleted an re-created all over again.

This is the biggest problem IMHO: I'd like to give a number like Boot0001 or a name like "Arch", to:

  • overwrite the content of the matching entry with a flag like --update-content Boot001 "EFI\arch\zfs-6.2.0-nohz.efi" to start using this UKI for the 1st entry, with minor verifications (just that the file exists on the drive and partition) or none at all
  • same for the name: --update-name Boot001 "Arch kernel test"

Boot order cannot be changed trivially, the entire order has to be passed to the flag including the ones that haven't changed position.

That's not as bad, but I would like to do insertions: using anything from the current set of boot entries, I should be able to express the relation I want: if I say Boot001 --after Boot01A, I'd like if Boot01A is absent from the list to get an error, but if it's present and so is Boot001, remove Boot0001 from the order list, and reinsert it right after Boot01A wherever it is.

1 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.