Samueru

joined 10 months ago
[–] Samueru@lemmy.ml 2 points 2 days ago* (last edited 2 days ago)

I’m curious, what makes AppImage a good choice for the lazy developer? Is it easier to create?

The appimage is basically just git clone -> make -> make install DESTDIR=/path/to/AppDir -> wget appimagecreationtool and finally appimagecreationtool /path/to/AppDir and that's it you have your appimage.

appimagecreationtool being several tools that can create the appimage from an AppDir, like linuxdeploy, linuxdeploqt, go-appimage, etc

And that on itself isn't complex either, it if basically running ldd on the binary, then copy those libraries into the AppDir and finally run patchelf to patch the paths in the binaries and libraries, suyu uses a deploy script instead of using those tools, which I've recently forked and began expanding.

I don't know how easy it is to make a flatpak or snap, but I do know the dev of zen browser hates dealing with the flatpak and iirc right now the flatpak is outdated as result.

EDIT: Also lite-xl has been making a flatpak for like 2 years and it isn't ready yet.

[–] Samueru@lemmy.ml 3 points 2 days ago

Glad you like AM.

[–] Samueru@lemmy.ml 1 points 2 days ago* (last edited 2 days ago) (1 children)

. If you end up with 4.7GB for runtimes, that’s basically nothing these days

Yes but that wasn't the original comment I replied to was about.

163 flatpaks and the runtimes used 8.7GB

163 flatpaks using 8.7 GiB means that the average flatpak is using 54.6 MiB.

That's good the other time I got this linked: https://tesk.page/2023/06/04/response-to-developers-are-lazy-thus-flatpak/#but-flatpaks-are-easier-for-end-users

Which is no good as in that example there was 173 flatpaks using 27.66 GiB, average 160 MiB, while in your case the average flatpak is using 91 MiB.


This is what I have with appimages:

In this case the average appimage is using 69 MiB, though there is one outliner which is the Steam appimage that I have there (470 MiB) which is an entire conty container with its own video drivers and everything, without it the average would be 56 MiB.

I know this doesn't matter these days but once again that wasn't what the original comment was about.

Well we are talking about two gigs, after all. Unless you’re using an embedded system, it’s not a much of a concern if you ask me. But it is more, true

Thanks for the link showing an average flatpak using 54 MiB though, didn't think it was possible lol.


WAIT I just took a deeper look at the link, isn't that guy just showing the runtimes without the applications using 8.7 GiB?

[–] Samueru@lemmy.ml 5 points 3 days ago (3 children)

I tested installing some web browers, kdenlive, yuzu and libreoffice and without knowing I ended up with 3 different runtimes and the total storage usage (with deduplication) was 4.79 GIB.

Meanwhile with 33 appimages that I have (which includes same flatpak apps I mentioned) are using 2.2 GiB.

It doesn't matter if they share if in the end they end up using several times more storage than the appimage equivalent.

[–] Samueru@lemmy.ml 6 points 3 days ago* (last edited 3 days ago) (8 children)

Isn't the gnome runtime alone 2GiB? You know how many appimages that is?

Not to mention you are unlikely to only use one runtime.

[–] Samueru@lemmy.ml 13 points 1 week ago

I'm pretty sure sbin originally meant static binaries and not system binaries lol

[–] Samueru@lemmy.ml 2 points 2 weeks ago* (last edited 2 weeks ago)

it may have the same problem.

It actually doesn't! it works thank you!

Btw when I have multiple tabs on the vomnibar, if I scroll down the list using the arrow keys it doesn't change to the next page, I instead have to use the mouse wheel to move to the next page, is there a way I can fix that?

 

I know vimium works in firefox, however I ran into this 4 year issue: https://github.com/philc/vimium/issues/3674

Is there an alternative that doesn't have that issue?

[–] Samueru@lemmy.ml 3 points 3 weeks ago

posix sh + awk for manipulating data?

[–] Samueru@lemmy.ml 4 points 4 weeks ago (1 children)

It makes me mad to see the current state sway is in, I even bought an AMD GPU for nothing.

[–] Samueru@lemmy.ml 1 points 1 month ago

Test adding the preferences page to "excluded URLs" in the settings of vimium.

[–] Samueru@lemmy.ml 5 points 1 month ago (2 children)
[–] Samueru@lemmy.ml 5 points 1 month ago
20
submitted 3 months ago* (last edited 3 months ago) by Samueru@lemmy.ml to c/linux@lemmy.ml
 

I'm a i3 user that has been trying to migrate to sway.

I use it with these environment variables:

export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/var/state"
export XDG_CONFIG_HOME="$HOME/.local/config"
export XDG_CACHE_HOME="$HOME/.local/var/cache"

Which gives me a clean home with only ~/.local for my dotfiles.

And issue that I've noticed that I haven't been able to fix is that every time that I start sway, hyprland and also the alpha of cosmic is that I get a new ~/.cache directory created in my home that contains a mesa_shader_cache directory.

Btw in the middle of writing this post I just ran into another bug, thunar for some reason decided to steal my key presses from the web browser, and even though I had the browser window focused as I have sway configured to change the border color of the window with focus, thunar was like nope wtf.

Thank you all for the help, ended up opening a bug report at sway: https://github.com/swaywm/sway/issues/8191

 
4
submitted 9 months ago* (last edited 9 months ago) by Samueru@lemmy.ml to c/archlinux@lemmy.ml
 

I have this command on my i3wm configuration, which extends the 3 displays that I have into a single one for games.

bindsym $mod+Shift+k exec "xrandr --setmonitor extended auto DP-1,DP-2,DP-3"

The only issue that I have is, once I'm done, how do I revert back to having the displays individually? This has been driving me crazy.

Searching on internet all that I've managed to find is using xrandr -s 0, which actually just turns off my other displays.

And what is worse is that if I then manually turn the displays back on, THEY ARE STILL EXTENDED "xrandr -s 0" does not even reset that lol.

So far what I have to do to revert the changes is to log out of my current session.

SOLUTION: THE COMMAND IS: xrandr --delmonitor extended

 

Here is the script, which is a hack that I use with i3wm, I already converted most of it to a single line and it still works:

#!/usr/bin/env bash

is-leaf-node() { i3-msg -t get_tree | jq 'recurse(.nodes[]?, .floating_nodes[]?) | select(.type == "con" or .type == "floating_con") | select(.focused == true) | .nodes == []';}; parent-type() { i3-msg -t get_tree | jq -r 'recurse(.nodes[]?, .floating_nodes[]?) | select(.nodes[]?.focused == true) | .type' ;}; if [ "$(is-leaf-node)" == "true" ]; then i3-msg focus parent, focus parent; else i3-msg focus child, focus child; fi

Here is where I'm stuck:

The script needs the #!/usr/bin/env bash to work, it is the only script that I have that needs it.

Changing it to #!/usr/bin/env bash; does not work, it has have a second line for it to work.

 

I'm trying to migrate from lightdm to just using startx to start my i3 session.

First I had issues with kdeconnect working which were fixed by replacing exec i3 with exec dbus-launch --exit-with-session i3 in the xinitrc.

Now even though the apps works it is not following the system theme, I checked qt5ct and it is telling me that QT_QPA_PLATFORMTHEME is not set to qt5ct.

But I do have export QT_QPA_PLATFORMTHEME=qt5ct on my ~/.profile it seems the file is not being read but I have no idea on how to fix it.

view more: next ›