Fix "xbacklight no output have properties" on Arch Linux

The Xbacklight no output have properties message can happen if your hardware has poor support or it can’t be detected properly by the xbacklight utility. This might be fixed by using an xbacklight wrapper called acpilight. acpilight can also be used to control the display and keyboard backlight on modern laptops. First, install the acpilight package: sudo pacman -Syu acpilight Add a udev rule to give access to users in the video group, this is needed because users don’t have permissions to alter sys files by default: ...

April 30, 2024 · 1 min · Elvin Guti

How to install and upgrade packages on Arch Linux

Arch Linux uses a package manager called pacman, as you may know this is pretty standard on any linux distro, however, I’ve seen that not all the people use the same way to install or upgrade packages. The simpler way you can install a package with pacman is: pacman -S package_name But, this will only install the package on your system and nothing else. You may say but that’s what I want basically, but due to the rolling release nature and since partial upgrades are not supported on Arch Linux this might not be the best approach in the long term and could even break your system. ...

April 19, 2024 · 2 min · Elvin Guti

Show full branch name on powerlevel10k theme

powerlevel10k is a popular zsh theme and my favorite one. However, branch names are truncated if these are pretty long. Although, you can remove this limitation by updating its config file: vim ~/.p10k.zsh Search for the branch name and comment the line that’s doing the truncation: # Tip: To always show local branch name in full without truncation, delete the next line. # (( $#branch > 32 )) && branch[13,-13]="…" # <-- this line You might need to restart zsh ...

April 16, 2024 · 1 min · Elvin Guti

Untrack/Remove git files

If you accidentally committed files on git because you didn’t have a .gitignore file or you just updated it, you can untrack files with: git rm --cached <file> or if you have several files: git rm --cached `git ls-files -i -c --exclude-from=.gitignore`

April 15, 2024 · 1 min · Elvin Guti

Configure Touchpad options on Xorg after installing i3wm

If you just installed i3 on a laptop and for some reason you can’t tap or the scrolling behavior doesn’t like you, you can update how the touchpad behaves using a xorg config file. In my case the scrolling behaviour wasn’t the one I like, so I modified the NaturalScrolling property. ## /etc/X11/xorg.conf.d/30-touchpad.conf Section "InputClass" Identifier "touchpad" Driver "libinput" MatchIsTouchpad "on" Option "Tapping" "on" Option "NaturalScrolling" "true" EndSection You can see all the available options. ...

April 13, 2024 · 1 min · Elvin Guti