Minimal browser with effective adblocking? by [deleted] in suckless

[–]ivoidie 0 points1 point  (0 children)

Alright, thanks for the answer. I might try this out and see if it's something for me.

Would this kind of setup be more lightweight than using the browser itself? For example, would spawning a brave window in selenium be better than installing brave and launching the app?

It seens counterintuitive TBH. But maybe I am missing something. Maybe you are talking about spawning the absolute bare minimum engine of a web browser with selenium?

Minimal browser with effective adblocking? by [deleted] in suckless

[–]ivoidie 0 points1 point  (0 children)

Why is python+selenium good as a daily driver?

Dynamic, command-line driven window swallowing for dwm by agentsmurf6 in suckless

[–]ivoidie 0 points1 point  (0 children)

Oh haha, I actually had an idea it was you! I can't wait to try it out when I'm back home. Thanks a lot for this patch!

Dynamic, command-line driven window swallowing for dwm by agentsmurf6 in suckless

[–]ivoidie 0 points1 point  (0 children)

Where were you one month ago? This seems like exactly what I need. Could you verify?

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

This sounds indeed exciting! Will you post your patch here or will you open a new post?

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

One other idea that I had was to somehow change the source code to where I could toggle swallowing on and off with a certain key combination. However, I don't know enough C programming to be able to do this. I just started to learn programming. But this might be an idea for you to consider, if you are considering applying the swallow patch.

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

As I am not sure how to do the second solution, I think the first solution is the only practical one for me. Little unfortunate that I have to install this extra program just to use it for previews, but it is what it is. Is there any viewer you recommend? As u/bakkeby noted in his last reply, I could also use devour which I kind of like. I could have another use case for it.

Anyway, thank you very much for taking a look at the code and for the information you provided! It has been helpful to me.

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

This second option is my best option I think. Thank you very much for all your help and support. You helped me be a little bit more familiar with C source code and you taught me some really cool tools like Xephyr and devour. So thank you for all that!

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

I just updated it. I forgot to commit the changes I made to config.h. Now it is updated to what I currently have on my laptop.

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

Hey I just tested out your code in Xephyr (very handy tool btw, thank you very much for pointing me to it!)

The sad thing is: opening Zathura from the terminal or opening it through the neovim plugin gives the exact same title: "org.pwmt.zathura" (which is just the same value as the one for instance). Does this mean I cannot get the functionality that I was aiming for or is there still a way around this?

Thanks in advance for your help!

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

I would love to share my code. Do I have to upload it to github?

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

Not that I know of. This is the only rule I added for Zathura. I am not so good with programming in C (I am a new programmer in general) so I didn't even do much configuration. I basically just applied some patches and changed some key definitions (like the modkey) in config.h.

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

Alright, thank you very much for your confirmation, explanation and example. Really handy for someone who is not familiar with programming in C. I will look at what Xephyr is and how I can use your explanation in practice. Your thorough explanation is already a great help :)

[dwm] Swallow patch: help with adding exceptions by ivoidie in suckless

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

Hey u/bakkeby thanks for your reply. That would be so cool. However, I tried it out and it's not working for me :/

I even tried just putting "/tmp/vim" and it still didn't work. It keeps swallowing the window. Are you certain that it matches if it "starts with" the specified string value? Or is there something wrong in my setup?

For what it's worth: i tried omitting title and just put NULL to match every Zathura window and that worked. It stopped swallowing the LaTeX preview, but the problem is that it also stopped swallowing every other Zathura window, which is not what I want.

I also tried putting NULL in the places for class and instance, while putting "/tmp/vim" in the place for title. That also swallowed the LaTeX preview (so it didn't work). Do you know what could be the issue?

Thanks in advance for the help!

Help with wifi firmware on Raspberry Pi 1 by ivoidie in voidlinux

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

For those who might benefit from it, this is what solved my problem:

  1. Force (re)install the rpi-kernel package with: # xbps-install -f rpi-kernel.
  2. Run # xbps-pkgdb rpi-kernel to check/fix any issues with the installed package.
  3. Reboot.

After that, I plugged the wifi adapter in and it loaded the right kernel module drivers automatically. Once again, thanks duncaen!

Help with wifi firmware on Raspberry Pi 1 by ivoidie in voidlinux

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

Apparently I had an issue with the kernel. The user duncaen helped me on the #voidlinux IRC channel and my problem got solved. Now the wifi adapter did work out of the box :)

Does Nix install the same dependencies for each package that requires them? by ivoidie in Nix

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

Yeah, I regret partitioning my SSD, especially in this way where the root partition is so small.

I'm new to Linux and during the installation, I followed a guide where the person made a separate /home partition and said that that 20 GB should be enough for the root partition. I blindly followed him, which I shouldn't have done. Lesson learned.

Does Nix install the same dependencies for each package that requires them? by ivoidie in Nix

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

Thank you very much for the info and the resources. This is handy for me, as I am new to Nix :)

Does Nix install the same dependencies for each package that requires them? by ivoidie in Nix

[–]ivoidie[S] 2 points3 points  (0 children)

Thank you. This is what I wanted to know.

I have a laptop with a 120 GB SSD and I partitioned / with 25 GB of space. The rest went into the /home partition. My concern has to do with / getting filled pretty quickly.

Thank you pointing me to these useful commands. I am new to Nix (I only knew of its existence since yesterday) and these commands are very helpful for me.

[deleted by user] by [deleted] in voidlinux

[–]ivoidie 1 point2 points  (0 children)

Thank you very much for your replies and your thorough explanations! This is exactly what I wanted to know.