Juan's Blog

My digital $HOME.

.. including fonts and cursor themes

Read more...

Conda sucks

Yeah, but I have to use it, and this articles explains how to auto activate Conda with direnv.

I know what you're thinking, but conda activate <environment> in .envrc doesn't work

TLDRAuto activate Conda with direnvSetup direnvConda zsh init scriptSet up in your project's .direnv

Read more...

Workaround for this GitHub problem

Read more...

An updated list of tips and tricks for running Alarm on RPI

Read more...

There is an android app named Adaway, which automatically updates your system hosts file to redirect ads domain to localhost.

However, changing hosts file on linux can cause problems, because when you autocomplete shell commands like ssh and nmap, domains in hosts file will be pulled, which generates a lot of lag since there are way too many. One good way to work around this is to add blocklist in your dns server instead.

Since I don't see many info around the web that covers these setups, I decided to write it myself and explain the incentives along the way.

TLDR:

  • Unbound: the privacy-centric DNS server
  • Hblock: Ad blocking script

#linux #privacy #dns #censorship

Read more...

Update: On latest version of SwayWM, everything works OOTB with Fcitx5

To input CJK (Chinese, Japanese and Korean) languages in Linux Minecraft, you can install this mod CocoaInput.

If that's the case, I won't bother writing an article about it. The thing is that the mod is only officially available for 1.7 to 1.18, for the latest Minecraft 1.19 to 1.20, you'll need to compile the mod binary from an updated fork of it.

#linux #gnome #minecraft

Read more...

The one thing I missed most from SwayWM after my transition from SwayWM to GNOME, was the ability to change keyboard layout for each keyboard and mouse.

#linux #gnome #wayland

Read more...

Update: Just use flatpak version instead

steam needs two steps to properly identify a controller:

  • controller is visible to sdl2
  • controller's /dev/hidraw is visible to steam

#linux #gaming #systemd

Read more...

Read more...

I use steam in a arch linux chroot to avoid gentoo's x86 depencency hell, although ALSA inside the chroot works, it doesn't support advanced features like bluetooth, usb output and more.

In this article, I talk about how to configure pipewire in chroot to achieve features mentioned above.

#linux #gaming #pipewire #chroot

Read more...