Hi there! ๐
This post is a collection of commands and tips that I have found useful during my journey with Arch Linux. Use them with caution. ๐
If you would like to install Arch Linux, you can follow the steps described here.
Install Vim
Install gvim
(and not vim
, because it doesn’t support the system clipboard):
pacman -S gvim
I don’t remember exactly why, you should tick the following box:
Preferences > Profiles:loopai > Colors > check "show bold text in bright colors".
Dotfiles Management
Clone a repository containing your dotfiles and move them to your home directory. You can take inspiration from mine, if you want.
git clone git@github.com:lorenzopalloni/dotfiles.git
mv ./dotfiles/.* $HOME
Oh-My-Zsh Installation
Install Oh-My-Zsh by running the following command:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Redshift: an alternative to Night Light (Gnome)
Adjust your screen’s color temperature with redshift:
redshift -P -O 4000
If you encounter issues, enabling the geoclue-agent.service might help:
systemctl enable geoclue-agent.service
Check out the Arch Wiki for more information.
ranger: a terminal file manager
I love navigating through my files using Vim commands.
pacman -S ranger
pacman -S w3m # allow embedded preview
Removing title bar in GTK applications (Gnome)
Launch the following and install GTK Title Bar gnome extension
yay gtktitlebar
Preventing Gnome to put you in overview at start-up
yay no-overview
Checking your current Gnome version
gnome-software --version
Gnome title bar size reduction
- Copy-paste the content of the above file in
~/.config/gtk-3.0/gtk.css
- Run the following command:
gsettings set org.gnome.Terminal.Legacy.Settings headerbar "@mb false"
/*
* This .css file allows to reduce title bar size of any windows in Gnome.
* Place the content of this file in:
* ~/.config/gtk-3.0/gtk.css
* Then, run the following command:
* gsettings set org.gnome.Terminal.Legacy.Settings headerbar "@mb false"
*/
/* shrink headerbars */
headerbar {
min-height: 0px;
padding-left: 0px; /* same as childrens vertical margins for nicer proportions */
padding-right: 0px; /* 2px; */
background-color: #2d2d2d;
}
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
}
/* shrink ssd titlebars */
.default-decoration {
min-height: 0; /* let the entry and button drive the titlebar size */
padding: 0px;
background-color: #2d2d2d;
}
.default-decoration .titlebutton {
min-height: 0px; /* tweak these two props to reduce button size */
min-width: 0px;
}
window.ssd headerbar.titlebar {
padding-top: 0px; /* 3px; */
padding-bottom: 0px; /* 3px; */
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 0px; /* 3px; */
padding-bottom: 0px; /* 3px; */
min-height: 0;
}
How to prevent google-chrome to do weird visual effects
Browse about:settings
on google-chrome and deactivate the following option:
Use hardware acceleration when available
How to enhance sound quality of Jabra earbuds (Jabra Elite Active 75t)
pacman -S pipewire-pulse
pacman -S pipewire-alsa
Here an old reference. Check out the Arch Wiki for more information.
Initialize a GitLab repository from terminal
cd <project-name>
git init
git branch -m main
git remote add origin https://gitlab.com/loopai/<folder-name>.git
git add --all
git commit -m "First commit"
git push -u origin main
Add multiple remote origins to your Git repository
git remote set-url --add origin https://github.com/<username>/<repo-name>.git