Skip to content

Latest commit

 

History

History
308 lines (202 loc) · 5.52 KB

README.md

File metadata and controls

308 lines (202 loc) · 5.52 KB

dot

My dotfiles

OS installation

Arch Linux build:

  • display server: Xorg (X11)
  • no desktop environment
  • display manager: LightDM + its GTK greeter
  • window manager: XMonad
  • compositor: yshui/picom

INSTALL

X

Install xorg-server

https://wiki.archlinux.org/index.php/Xorg

Display manager

Install LightDM and its GTK greeter

lightdm lightdm-gtk-greeter

Enable lightdm.service

https://wiki.archlinux.org/index.php/LightDM#Installation

Window Manager

fonts

Main fonts

ttf-inconsolata ttf-roboto noto-fonts ttf-dejavu ttf-liberation

Emoji font

noto-fonts-emoji

Refresh font cache

fc-cache
fc-list

custom fonts

docs

First create the directory /usr/local/share/fonts/ttf/ and place any custom fonts under it

XMonad

First install stack. Take the static version from AUR to avoid the plethora of Haskell dependencies.

rua install stack-static

Clone the sources in /opt/xmonad

git clone https://github.com/xmonad/xmonad
git clone https://github.com/xmonad/xmonad-contrib

Add the configuration file from xmonad/xmonad.hs and init the project to generate the stack.yaml file

stack init

Build & install

stack install

Xmonad expects xmonad.hs and stack.yaml to be in ~/.config/xmonad/
Use symlinks instead (does not make sense to have source files under the config directory)

cd ~/.config/xmonad
ln -s /opt/xmonad/xmonad.hs xmonad.hs
ln -s /opt/xmonad/stack.yaml stack.yaml

source: https://xmonad.org/INSTALL.html

XMobar

Clone the sources and build the project

git clone https://codeberg.org/xmobar/xmobar.git

Override stack.yaml to only build needed features

cp xmobar/stack.yaml .

Add xmobarrc to ~/config/xmobar/.

Finally build and install it

stack install
required packages
dmenu clipmenu trayer shotgun graphicsmagick xwallpaper udisks2 
udiskie xclip slop gpick trashy ouch

XDG user directories

sudo pacman -S xdg-user-dirs
xdg-user-dirs-update

source: https://wiki.archlinux.org/index.php/XDG_user_directories

Screen lock

Install i3lock-color from AUR

On suspend

Copy systemd_unit/suspend@.service to /etc/systemd/system/ and enable it

sudo systemctl enable suspend@pierre.service

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Sleep_hooks

Design

GTK theme

Theme used https://github.com/nana-4/materia-theme

Install materia-gtk-theme

edit $XDG_CONFIG_HOME/gtk-3.0/settings.ini

[Settings]
gtk-icon-theme-name = Paper
gtk-theme-name = Materia-dark
gtk-font-name = Roboto 12

edit ~/.gtkrc-2.0

gtk-icon-theme-name = "Paper"
gtk-theme-name = "Materia-dark"
gtk-font-name = "Roboto 12"

gnome

gsettings set org.gnome.desktop.interface gtk-theme Materia-dark
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings set org.gnome.desktop.interface icon-theme Paper
gsettings set org.gnome.desktop.interface cursor-size 64

Flatpak

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gtk.Gtk3theme.Materia-dark

Cursor theme

install https://github.com/snwh/paper-icon-theme

edit /usr/share/icons/default/index.theme

[Icon Theme]
Inherits=Paper

note: the icon theme is also set when .Xresources file is read when lightdm (display manager) starts and sources .xprofile

set the wallpaper

Install xwallpaper package
xwallpaper is spawned by XMonad
The wallpaper image is defined by $BG_PRIMARY env variable
eg. in .xprofile

export BG_PRIMARY=$HOME/Pictures/dark_ocean.png

HiDPI

DPI is set in .Xresources

Xft.dpi: 144

it will be loaded during display manager (ligthdm) starts and sources .xprofile

[[ -f "$home/.Xresources" ]] && xrdb -merge $home/.Xresources

sources:

larger font for linux console

$ sudo pacman -S terminus-font

add in /etc/vconsole.conf

FONT=ter-v22b
FONT_MAP=cp437

source: https://wiki.archlinux.org/index.php/HiDPI#Linux_console

notes

The following notes are relevant to the installation of ArchLinux.

solve icon problem for apps installed through Flatpak

cd /var/lib/flatpak/exports/share/applications

rename the links to match this format: obs.desktop, vlc.desktop

journal

To prevent the journal to take 4Gb space of disk memory copy the configuration file 00-journal-size.conf (from the conf dir in this repo) into /etc/systemd/journald.conf.d/ directory (create it)

(the default is 4Gb)

source: https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit

SSH agent

Install gnome-keyring and libsecret

Enable the following systemd user unit (⚠ no sudo)

systemctl --user enable gcr-ssh-agent.socket

Set the env var SSH_AUTH_SOCK to /run/user/1000/gcr/ssh (.xprofile/ fish config)

https://wiki.archlinux.org/title/GNOME/Keyring

Firefox

To set the scrollbar width set the following property in about:config

widget.non-native-theme.scrollbar.size.override 16

NOTE: the widget.non-native-theme.enable should be set to true