Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Notes on Arch-like linux

Roberto Vaquerizo

Contents

1 sudo 2
1.1 Add the following using visudo to avoid being prompted for a
password when using sudo : . . . . . . . . . . . . . . . . . . . 2

2 Check fonts installed, for instance Cantarell: 2


3 Use dedicated GPU for a command execution, instead of
internal Intel GPU 3
4 pacman 3
4.1 Conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.2 Install/Update . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.2.1 pacman -Syu . . . . . . . . . . . . . . . . . . . . . . . 3
4.2.2 pacman -Syyu . . . . . . . . . . . . . . . . . . . . . . . 3
4.2.3 pacman -Syyuw . . . . . . . . . . . . . . . . . . . . . . 3
4.2.4 pacman -Ss <program> . . . . . . . . . . . . . . . . . 3
4.3 Remove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.3.1 pacman -Rs <program> . . . . . . . . . . . . . . . . . 3
4.3.2 pacman -Rns <pogram> . . . . . . . . . . . . . . . . . 4
4.4 Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.1 pacman -Q . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.2 pacman -Qe . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.3 pacman -Qeq . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.4 pacman -Qn . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.5 pacman -Qm . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.6 pacman -Qdt . . . . . . . . . . . . . . . . . . . . . . . 4
4.4.7 pacman -Qs <program> . . . . . . . . . . . . . . . . . 4
4.4.8 pacman -Sc . . . . . . . . . . . . . . . . . . . . . . . . 4

1
5 DWM 5
5.1 Patches I have applied (double check they are correct and
change to my liking) . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.1 accessnthmon . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.2 actualfullscreen . . . . . . . . . . . . . . . . . . . . . . 5
5.1.3 alternativetags . . . . . . . . . . . . . . . . . . . . . . 5
5.1.4 vanity gaps . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.5 restartsig . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.6 stacker . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.7 sticky . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.8 systray . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1.9 More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

6 Graphical Environment 6
6.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1.1 xrandr output HDMI-1 above eDP . . . . . . . . . . 6
6.2 Xorg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2.1 picom . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2.2 All available key codes: . . . . . . . . . . . . . . . . . 6

7 AUDIO 6
7.1 pipewire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
7.2 mpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

8 File management 6
8.1 nnn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

9 Networking 6
9.1 wpa_supplicant . . . . . . . . . . . . . . . . . . . . . . . . . . 6

1 sudo

1.1 Add the following using visudo to avoid being prompted


for a password when using sudo :
Defaults:USER_NAME !authenticate

2 Check fonts installed, for instance Cantarell:

fc-list | grep -i cantarell

2
3 Use dedicated GPU for a command execution,

instead of internal Intel GPU

DRI_PRIME=1 glxgears
DRI_PRIME=1 glxinfo | grep OpenGL

If DRI_PRIME is not set, the commands executed will use the internal
intel GPU.

4 pacman

4.1 Conguration
Check conf values like: color, easter-egg, parallel downloads, . . .

4.2 Install/Update
4.2.1 pacman -Syu
Update all my programs. (S=install, y=sync pacman DB, u=update my
programs)

4.2.2 pacman -Syyu


The double yy is used to force sync of my DB with repos. If not, it is done
based on freq.

4.2.3 pacman -Syyuw


The u is used to download packages, but not update them.

4.2.4 pacman -Ss <program>


Search in remote repos for a program.

4.3 Remove
4.3.1 pacman -Rs <program>
(R=remove, s=remove also dependencies)

3
4.3.2 pacman -Rns <pogram>
This is the most useful option to remove packages.

4.4 Query
4.4.1 pacman -Q
Show every package installed.

4.4.2 pacman -Qe


Show only the programs I have installed.

4.4.3 pacman -Qeq


Only provide package name, not the version.

4.4.4 pacman -Qn


Show all programs installed from main repos.

4.4.5 pacman -Qm


Show all programs installed from AUR.

4.4.6 pacman -Qdt


Show unneeded dependencies.

4.4.7 pacman -Qs <program>


Search for a package in the local repo.

4.4.8 pacman -Sc


Remove all packages from cache.

4
5 DWM

5.1 Patches I have applied (double check they are correct


and change to my liking)
5.1.1 accessnthmon
5.1.2 actualfullscreen
MOD+Shift+f

5.1.3 alternativetags
MOD+n Show icons instead of tag numbers.

5.1.4 vanity gaps


Mod+TAB Change layout.

5.1.5 restartsig
Mod+Shift+r Recompile without needing to log-out.

5.1.6 stacker
Mod+Shift+j (move window down) Mod+Shift+k (move window up)

5.1.7 sticky
Mod+s Turn window into a sticky one.

5.1.8 systray
5.1.9 More . . .
Mod+m (increase the number of master windows) Mod+d (decrease the
number of master windows)

5
6 Graphical Environment

6.1 Commands
6.1.1 xrandr output HDMI-1 above eDP . . .
6.2 Xorg
6.2.1 picom
Cannot be initiated as a user service, but within an Xorg session.

6.2.2 All available key codes:


xmodmap -pke

7 AUDIO

7.1 pipewire
Can be initiated as a user service by init service with supervision (runit, for
instance). Its cong le can be used to instantiate both pipewire-pulse and
wireplumber services, that are needed.

7.2 mpd
Cannot be initiated as a user service using runit, but as a regular user process.
I have tried using the pulse entry in mpd.conf with no success. Also, starting
the mpd daemon as a system service has not worked.

8 File management

8.1 nnn
ˆ Attention! Make all plugins executables les to make it work.

ˆ Install all previewers needed.

9 Networking

9.1 wpa_supplicant
$ touch /etc/wpa_supplicant/wpa_supplicant_wXXX.conf

6
$ vi /etc/wpa_supplicant/wpa_supplicant_wXXX.conf
Add:
ctrl_interface=/run/wpa_supplicant
update_config=1

$ wpa_passphrase SSID PASSWORD

$ wpa_supplicant -B -i wXXX -c /etc/wpa_supplicant/wpa_supplicant_wXXX.conf

You might also like