Skip to content
Nuno Nogueira edited this page May 5, 2022 · 1 revision

How to disable sleep and configure lid power settings:

Disable sleep: systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Enable sleep: systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

Configure lid power settings:

Open the /etc/systemd/logind.conf file for editing.
Find the line #HandleLidSwitch=suspend.
Remove the # character at the beginning of the line.
Change the line to either of the desired settings below:
`HandleLidSwitch=poweroff` to shutdown computer when lid is closed
`HandleLidSwitch=hibernate` to hibernate computer when lid is closed
`HandleLidSwitch=suspend` to suspend computer when lid is closed
`HandleLidSwitch=ignore` to do nothing to do nothing
Save the file and restart the service to apply the changes by typing `systemctl restart systemd-logind`.

Arch Linux updating keyring: sudo pacman -Sy archlinux-keyring


Install IBM Plex Mono font

Install Hack font

Install Source Code Pro:

Go to Google Fonts

Type source code in the search box (the only match should be Source Code Pro)

Click "Add to collection"

Click on the text sample (this should present all the font styles)

Tick all the check boxes

Click the download icon (a down arrow on the top right) and download as Zip file

Now you just need to decompress the Zip file into your ~/.fonts folder:

mkdir -p ~/.fonts/Source_Code_Pro

unzip Source_Code_Pro.zip -d ~/.local/share/fonts/Source_Code_Pro or /usr/share/fonts for all users system-wide.

You may need to run fc-cache -f to make the fonts available (no need to log out).


  • Enable SSH root login

Open /etc/ssh/sshd_config file and change the line PermitRootLogin without-password to PermitRootLogin yes Restart SSH server: /etc/init.d/ssh restart

credits: https://www.simplified.guide/ssh/x11-forwarding-as-root


Clone this wiki locally