DEV Community

Cover image for An Actually Productive Arch Linux Setup

An Actually Productive Arch Linux Setup

Oscar on February 28, 2025

Psst! Hey you! If you'd like to watch a video instead, check this out: I really like Linux. I love customizing my stuff, having full control ...
Collapse
 
shricodev profile image
Shrijal Acharya

echo "Clearing pacman cache"
pacman_cache_space_used="$(du -sh /var/cache/pacman/pkg/)"
paccache -r
echo "Space saved: $pacman_cache_space_used"

Instead of doing it this way, you can enable a systemctl service paccache.timer

sudo systemctl enable --now paccache.timer
Enter fullscreen mode Exit fullscreen mode
Collapse
 
kurealnum profile image
Oscar

That's good to know, thank you!

Collapse
 
aldrian_fdb9dc326681c1ce9 profile image
aldrian

I just star using arch for a few months.
The reason I choose it because it only install required things to run os in my machine and the only things I install manually are firefox, code oss, a requirement for garbage bin, thing about sound and thing about reading an USB/external hardisk.
The only thing I customize are hide all the menu in terminal and context menus as much possible.

Collapse
 
brianmasinick profile image
Brian Masinick

Like everything else, life and computing are both based on a combination of availability, circumstances, interests and skills.

I've used plain Arch Linux in the past and from a functional point of view, it's as close as anything (including Gentoo Linux and Linux From Scratch) at getting very close to PRECISELY what you put into it; balanced against this "truth" are the number of commands, effort, and time it takes, the more you build from the most fundamental starting point.

I HAVE tried it both ways. For me, the benefits (and time) did NOT justify the effort. For me, I did not feel that I gained a sufficient amount of efficiency, and since I'm able to figure things out when I need to do so, it doesn't bother me that I don't know every possible thing about every single app (or byte of information). Others may wish to go there: "all of the credit to you for your effort".

I personally find both Cachy OS and Endeavour OS to be excellent implementations of Arch Linux. They save me time, still give me plenty of flexibility, and they look and function quite well. They also complement the other collections of mostly Debian-based systems, plus one instance of Slackware CURRENT. That gives me different systems (and packaging methods) to use, different appearance, but one thing in common: I can build or rebuild any of them with moderate effort in well under an hour, and all of them, if necessary, in about two hours, thanks to my collection of installable, mostly configured Flash Drive snapshots of several distributions.

So there's my high level overview of "doing it another way".

Your way is quite interesting, but I choose another path. Among the readers, I imagine that we have thirty or forty different approaches, possibly more than that, and I'm pretty sure they all meet our own individual needs and interests.

Collapse
 
abdel_bolaos_022aa0c4623 profile image
Abdel Bolaños

I think when is mentioned "productivity", is better focus on how setup Arch to just "work" and not how to customize "login screen".
I am able to get a lot of "productivity" in Arch, and one of the biggest advice I can give is:

  1. Install only what is necessary and keep Arch as lean as you can.
  2. Keep it updated once per week.
  3. Choose a desktop environment that works for you and not you work (customize) to it.

BTW, in your script for clean packages you could use
yay -Sccc
To clear all cache of Packman and yay.

Collapse
 
wendys_menu_b89f3cbe08897 profile image
wendys menu

Great points! I completely agree—when it comes to boosting productivity with Arch, keeping the system lean and functional is far more beneficial than over-customizing things like the login screen. Installing only the essentials and updating regularly really keeps the setup efficient, and choosing a desktop environment that adapts to your workflow rather than forcing you to tweak it is key. Also, thanks for the tip on using yay -Sccc to clear cache—it’s a handy command for maintaining a clean system. Your approach perfectly embodies the philosophy of a productive Arch setup 😄

Collapse
 
kurealnum profile image
Oscar

Thanks for the tip!

Collapse
 
kirk_server_8d51ace5c7836 profile image
Kirk Server

Have you considered utilizing time shift to create auto snaps for each update so that if there were ever an issue during an automated package update you would have a method to bring your system back to a working state. That was always my concern with automating updates, although it is rare I have always been of the opinion it was best to retain control over the time and situation the device updates. Timeshift offers a method to utilize BTRFS and grub boot loader to save your snapshots so that they are available form the grub in the off chance that part of your system were to break. All in all great stuff, have a similar script I run but have spread the updates out to every 48 hours and just after my work day. Cheers!

Collapse
 
kurealnum profile image
Oscar

I do really like that idea. To be fair, I don't completely automate that script (but with timeshift, maybe I should!)

Collapse
 
kirk_server_8d51ace5c7836 profile image
Kirk Server

the youtuber typecraft has a pretty succinct video walking through the setup, sometimes if I don't set it up and something happens I kick myself because its so easy

Collapse
 
jase_whipp_4ab29bfe32bd5c profile image
Jase Whipp

Your article starts with you love Linux the goes on a journey of building a desktop environment from scratch and ends with your giving up for a Mac. You also mention early on that if someone just wants productivity, they should buy a Mac. This article is super flawed because you as an author immediately kill your article before it begins. Then you proceeded to suggest Arch Linux to what I can only assume would be a target audience of Mac users. No, one does not need to subscribe to Apple to be productive, that might be the most asinine dev article premise I've read this whole year. There are numerous distros that are better suited to this purpose than Arch.

Collapse
 
kurealnum profile image
Oscar

It's just a bit of sarcasm 😄

Collapse
 
welington_pdias profile image
Welington Dias

Is it Systemd free?

Collapse
 
larastewart_engdev profile image
Lara Stewart - DevOps Cloud Engineer

Why not run that script using a cronjob instead of doing it manually each month?

Collapse
 
kurealnum profile image
Oscar

I want to make sure everything works after an update. Nvidia drivers have a habit of being a little bit self-destructive every now and then.