This repository installs my dotfiles on a fresh install of any arch-based distributions. I used this repo to automatically install my setup across 3 different devices, and try to keep it up to date with any programs or configurations that I use.
This paragraph is mostly addressed to users new to linux/ricing. If you're an experienced user, you can ignore this PSA.
This is the part where I mention that I cannot take responsibility for any damage done to your system by this config. Although I genuinely use these config files for my main system, I cannot guarantee a smooth ride for everyone.
Things are going to break and you are going to have to fix them. But while I know the ins and outs of this system after having spent a year building it, you do not. To this effect, I tried documenting as much of this repo as I could but you cannot get around the fact that you will need to put in the work to familiarize yourself with the repo.
If this still does not deter you, I've included a section of Helpful Resources that guided me when I first got into the world of linux and ricing.
On an Arch based distribution as root, run the following:
curl -LO https://raw.githubusercontent.com/llGaetanll/autorice/master/rice.sh
sh rice.sh
This script largely comes from lukesmithxyz/LARBS, so a lot of functionality is going to remain the same.
The script installs all the packages defined the progs.csv
file, as well as my dotfiles
llGaetanll/rice.
You can run the script with any of these options to modify what gets installed:
-r
: custom dotfiles repository url. Defaults to llGaetanll/rice.-p
: custom programs list/dependencies (local file or URL). Defaults toprogs.csv
.-a
: a custom AUR helper (must be able to install with-S
unless you change the relevant line in the script. Defaults toyay
.
As opposed to removing programs outright [from LARBS], I simply comment them out so i can easliy get them back later in case I mess up. All of my additions are at the bottom
This script will parse the given programs list and install all given programs. Note
that the programs file must be a three column .csv
. You can add comments starting with #
.
The first column is a "tag" that determines how the program is installed:
pacman -Ss <package-name>
A
will use the given AUR helper (defaults toyay
) to install the package from the AURG
will manually install the git repository withmake && sudo make install
P
willpipinstall
the package.
The second column is the name of the program in the repository, or the link to the git repository, and the third comment is a description (should be a verb phrase) that describes the program. During installation, the script will print out this information in a grammatical sentence. It also doubles as documentation for people who read the csv or who want to install my dotfiles manually.
Depending on your own build, you may want to tactically order the programs in your programs file. The script will install from the top to the bottom.
If you include commas in your program descriptions, be sure to include double quotes around the whole description to ensure correct parsing.
The script is extensively divided into functions for easier readability and trouble-shooting. Most everything should be self-explanatory.
The main work is done by the installationloop
function, which iterates
through the programs file and determines based on the tag of each program,
which commands to run to install it. You can easily add new methods of
installations and tags as well.
Note that programs from the AUR can only be built by a non-root user. What
the script does to bypass this by default is to temporarily allow the newly created
user to use sudo
without a password (so the user won't be prompted for a
password multiple times in installation). This is done ad-hocly, but
effectively with the newperms
function. At the end of installation,
newperms
removes those settings, giving the user the ability to run only
several basic sudo commands without a password (shutdown
, reboot
,
pacman -Syu
).
- on Artix, keys should be refreshed using
artix-keyring
instead ofarchlinux-keyring
package - remove all symlinks starting with
/home/al
- xinitrc
- polybar-start
- install rust natively with
rustc
(with curl) add default wallpaperexists at.local/share/default.png
- on install, first wallpaper should be set with pywal to initialize
colors.sh
- used by bspwm and dmenu (
dm
)- bspwmrc sources colors.sh which doesn't exist
- used by bspwm and dmenu (
- install system fonts (list of which in fontconfig)
- pics of built-in polybars
- download my st programs instead of luke smith's
- enable screen brightness script to work from launch (need to change some permissions)
-
You are going to be visiting this website a lot when things start breaking. It's by far the most complete resource I can give you, and it's extremely useful even if you don't use arch linux.
-
This is the channel that first got me into linux ricing. On it, Luke talks about his own system LARBS which was a strong inspiration for this project.
-
This channel contains a lot of content about more specific programs that pertain to ricing. It's how I learn about a lot of programs that are now part of my system.