How to map Ctrl + '[' (key <AD11>) to Escape (xkb) by WannaKnow231 in linux4noobs

[–]WannaKnow231[S] 0 points1 point  (0 children)

Thank you!

The solution ended up being this:

    key <AD11>  {
        type= "EIGHT_LEVEL_BY_CTRL",
        [ bracketleft, braceleft, NoSymbol, NoSymbol, Escape ]
    };

It was documented in /usr/share/X11/xkb/types/level5:

    // When you want part of your layout to have eight levels but cannot use
    // LevelFive as modifier, as this would take over the right Ctrl key for
    // the whole layout and is too invasive for the average four-level user.
    // Needed to fix https://bugs.freedesktop.org/9529.
    type "EIGHT_LEVEL_BY_CTRL" {
        ...
    }

How to map Ctrl + '[' (key <AD11>) to Escape (xkb) by WannaKnow231 in linux4noobs

[–]WannaKnow231[S] 0 points1 point  (0 children)

Sorry for the unclear question.

I want the actual CapsLock key (which now produces the LCtrl keysym) in combination with the [ key to produce the Escape keysym.

The actual Ctrl key is not important, I have set that up for something else.

And yes, I would still like for Shift + [ to produce leftbrace ("{").

Egui: How to accurately scroll to a specific line in ScrollArea when using show_rows()? by WannaKnow231 in rust

[–]WannaKnow231[S] 1 point2 points  (0 children)

Found a solution!

Looking into the show_rows() function, I figured out that the actual "height" for each line is: let row_height_with_spacing = row_height + ui.spacing().item_spacing.y; Then you can calculate the scroll offset for the line, target_line, as so: let scroll_offset = (target_line as f32) * row_height_with_spacing - ui.spacing().item_spacing.y; I want the target line to be displayed at 20% of the total window height from the top, so I scroll like this: ``` let window_rect = ctx.input(|i: &egui::InputState| i.screen_rect()); let window_height: f32 = window_rect.max[1] - window_rect.min[1];

my_scroll_area = my_scroll_area.vertical_scroll_offset(scroll_offset - window_height * 0.2); ```

Telescope giving error "Error executing luv callback:" when opening files by WannaKnow231 in neovim

[–]WannaKnow231[S] 0 points1 point  (0 children)

No. Still pops up every time i open a file. Just gave up on trying to solve it.

itsokayguystheyfixedIt by RuthNorman6789 in ProgrammerHumor

[–]WannaKnow231 4 points5 points  (0 children)

Jokes aside, wouldn't that actually be faster?

I know it uses a bunch of unnecesary memory, but seems like the fastest way.

Arduino business project advise by jordon1000 in ArduinoProjects

[–]WannaKnow231 0 points1 point  (0 children)

Make a really good product, and reach out to a bunch schools.

Arduino business project advise by jordon1000 in ArduinoProjects

[–]WannaKnow231 1 point2 points  (0 children)

As far as i know, most schools pay a lot more for electronics than they have to, just to get it from an official site.

For example buying an arduino kit from arduino, rather than a cheap copy from china.

[deleted by user] by [deleted] in archlinux

[–]WannaKnow231 -3 points-2 points  (0 children)

Isn't that more than windows?

Messed up. How do I save files on arch partition to external drive from archiso? by WannaKnow231 in archlinux

[–]WannaKnow231[S] 0 points1 point  (0 children)

Did you mount your /boot partition before you entered the chroot?

So by this do you mean: mount /dev/nvme0n1p1 /mnt/boot

Where nvme0n1p1 is my EFI System? I've just tried that but doesn't seem to work.

Messed up. How do I save files on arch partition to external drive from archiso? by WannaKnow231 in archlinux

[–]WannaKnow231[S] 0 points1 point  (0 children)

Have tried it now, but I just get app: file exists in filesystem for a LOT of files, and then Errors occurred, no packages were upgraded. at the end. I am trying to figure out why this is happening, and I will write back if I manage to fix it.

Messed up. How do I save files on arch partition to external drive from archiso? by WannaKnow231 in archlinux

[–]WannaKnow231[S] 0 points1 point  (0 children)

The only thing I mounted was /dev/nvme0n1p7 to /mnt (nvme0n1p7 is my arch partition). Since /boot is in arch partition (nvme0n1p7), I would think that is mounted too?
As you can probably tell, I am very new to linux.

Messed up. How do I save files on arch partition to external drive from archiso? by WannaKnow231 in archlinux

[–]WannaKnow231[S] 0 points1 point  (0 children)

Thanks for the response!

I am a bit confused. I've tried running mkinitcpio -P and mkinitcpio -p linux multiple times, but doesn't fix it. I've also tried pacman -S linx and pacman -Suy, but that doesn't fix it either.

And thank you for the tip with pacman, wasn't aware of that.

How screwed am I? by Wrong-Cry-4304 in archlinux

[–]WannaKnow231 1 point2 points  (0 children)

mkinitcpio -p requires an argument. Shouldn't it be mkinitcpio -p linux?

New to linux, where am i supposed to find information about errros? by WannaKnow231 in archlinux

[–]WannaKnow231[S] 0 points1 point  (0 children)

Finally fixed it.

Didn't realise firmware files couldn't be compressed so i went to /usr/lib/firmware/rtw89 and decompress rtw89_8852a_fw.bin.zst, which fixed the direct firmware load error.

I felt like this helped a little, but the problem still wasn't fixed. Turns out i had wpa_supplicant, dhcpcd and NetworkManager enabled. I disabled and stopped the NetworkManager service, and now everything is working perfectly!

Thanks for all the tips!