From 011726f6193c49f8d435e8001865a6ce915e7f4c Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 16 Mar 2026 17:18:25 +0100 Subject: [PATCH 1/2] Improve readability of the Dotfiles section in Niri procedure Add bullet point for each dotfiles / targeted tool to improve readability. --- Arch-Linux/Niri.md | 114 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 100 insertions(+), 14 deletions(-) diff --git a/Arch-Linux/Niri.md b/Arch-Linux/Niri.md index 7cfe514..ca9c940 100644 --- a/Arch-Linux/Niri.md +++ b/Arch-Linux/Niri.md @@ -17,20 +17,20 @@ sudo pacman -S niri xfce4-terminal polkit-gnome pipewire pipewire-audio pipewire ### Auto start Niri when logging on TTY1 ```bash -vim ~/.bash_profile +vim ~/.bash_profile # Append the following ``` -> [...] -> #Autostart Niri -> ``if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then`` -> > export XDG_CURRENT_DESKTOP=niri -> > export XDG_SESSION_DESKTOP=niri -> > export XDG_SESSION_TYPE=wayland -> > export QT_QPA_PLATFORM=wayland -> > export SDL_VIDEODRIVER=wayland -> > exec niri-session -l -> -> fi +```text +# Autostart Niri +if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + export XDG_CURRENT_DESKTOP=niri + export XDG_SESSION_DESKTOP=niri + export XDG_SESSION_TYPE=wayland + export QT_QPA_PLATFORM=wayland + export SDL_VIDEODRIVER=wayland + exec niri-session -l +fi +``` ### Download Niri config @@ -190,24 +190,110 @@ git clone https://github.com/speedenator/agnoster-bash.git .bash/themes/agnoster ## Dotfiles +- Niri / Shell scripts + ```bash mkdir -p ~/Pictures/Niri && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/lock.png -o ~/Pictures/Niri/lock.png && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/shutdown.svg -o ~/Pictures/Niri/shutdown.svg && mkdir -p ~/Documents/Scripts && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/power-menu.sh -o ~/Documents/Scripts/power-menu.sh && chmod +x ~/Documents/Scripts/power-menu.sh && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Niri/swayidle.sh -o ~/Documents/Scripts/swayidle.sh && chmod +x ~/Documents/Scripts/swayidle.sh +``` + +- Dynamic wallpaper script and systemd units + +```bash mkdir -p ~/Pictures/wallpapers && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/island-morning.jpg -o ~/Pictures/wallpapers/island-morning.jpg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/island-day.jpg -o ~/Pictures/wallpapers/island-day.jpg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/island-evening.jpg -o ~/Pictures/wallpapers/island-evening.jpg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/island-night.jpg -o ~/Pictures/wallpapers/island-night.jpg && mkdir -p ~/Documents/Scripts && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/dynamic-wallpaper.sh -o ~/Documents/Scripts/dynamic-wallpaper.sh && chmod +x ~/Documents/Scripts/dynamic-wallpaper.sh && mkdir -p ~/.config/systemd/user && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/dynamic-wallpaper.service -o ~/.config/systemd/user/dynamic-wallpaper.service && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Wallpapers/dynamic-wallpaper.timer -o ~/.config/systemd/user/dynamic-wallpaper.timer && systemctl --user enable --now dynamic-wallpaper.timer +``` + +- Nwg-panel config and resources + +```bash mkdir -p ~/.config/nwg-panel && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Niri/nwg-panel-config -o ~/.config/nwg-panel/config && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Niri/nwg-panel-style.css -o ~/.config/nwg-panel/style.css && mkdir -p ~/Pictures/nwg-panel && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/Arch_Panel.svg -o ~/Pictures/nwg-panel/Arch_Panel.svg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/restart-panel.svg -o ~/Pictures/nwg-panel/restart-panel.svg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/caffeine-cup-empty.svg -o ~/Pictures/nwg-panel/caffeine-cup-empty.svg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/caffeine-cup-full.svg -o ~/Pictures/nwg-panel/caffeine-cup-full.svg && cp -f ~/Pictures/nwg-panel/caffeine-cup-empty.svg ~/Pictures/nwg-panel/autolock.svg -curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Bashrc/Arch -o ~/.bashrc +``` + +- Tmux config + +```bash mkdir -p ~/.config/tmux/ && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/tmux.conf -o ~/.config/tmux/tmux.conf +``` + +- Fastfetch config + +```bash mkdir -p ~/.config/fastfetch/ && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/fastfetch-config -o ~/.config/fastfetch/config.jsonc +``` + +- MPV config + +```bash mkdir -p ~/.config/mpv/ && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/mpv.conf -o ~/.config/mpv/mpv.conf +``` + +- Zathura config + +```bash mkdir -p ~/.config/zathura/ && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/zathurarc -o ~/.config/zathura/zathurarc && xdg-mime default org.pwmt.zathura.desktop application/pdf +``` + +- Swaync config + +```bash mkdir -p ~/.config/swaync/ && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Niri/swaync_style.css -o ~/.config/swaync/style.css +``` + +- GNUPG config + +```bash mkdir -p ~/.gnupg/ && chmod 700 ~/.gnupg && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/scdaemon.conf -o ~/.gnupg/scdaemon.conf +``` + +- Abuild config + +```bash sudo usermod -aG abuild "${USER}" && sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/abuild.conf -o /etc/abuild.conf +``` + +- Vimrc + +```bash curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/vimrc -o ~/.vimrc && mkdir -p ~/.vim/colors && curl https://raw.githubusercontent.com/vv9k/vim-github-dark/master/colors/ghdark.vim -o ~/.vim/colors/ghdark.vim +``` + +- Git config + +```bash curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/gitconfig -o ~/.gitconfig && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/gitconfig-arch -o ~/.gitconfig-arch +``` + +- XFCE Terminal config + +```bash mkdir -p ~/.config/xfce4/xfconf/xfce-perchannel-xml && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/xfce4-terminal.xml -o ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml +``` + +- Rofi config + +```bash mkdir -p ~/.config/rofi/ && curl https://raw.githubusercontent.com/newmanls/rofi-themes-collection/master/themes/spotlight-dark.rasi -o ~/.config/rofi/spotlight-dark.rasi && sed -i s/border-radius:\ \ 8/border-radius:\ \ 0/ ~/.config/rofi/spotlight-dark.rasi && sed -i "/\bplaceholder\b/d" ~/.config/rofi/spotlight-dark.rasi && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/rofi-config -o ~/.config/rofi/config.rasi +``` + +- Pacman mirrorlist + +```bash sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/pacman-mirrorlist -o /etc/pacman.d/mirrorlist +``` + +- Firejail config and resources + +```bash sudo mkdir -p /etc/pacman.d/hooks && sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Firejail/firejail.hook -o /etc/pacman.d/hooks/firejail.hook && mkdir -p ~/.config/firejail && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Firejail/mpv.profile -o ~/.config/firejail/mpv.profile && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Firejail/ristretto.local -o ~/.config/firejail/ristretto.local && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Firejail/ssh.profile -o ~/.config/firejail/ssh.profile && curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Firejail/zathura.local -o ~/.config/firejail/zathura.local && sudo sed -i "s/#\ browser-allow-drm\ no/browser-allow-drm\ yes/g" /etc/firejail/firejail.config && sudo sed -i "s/#\ arg-max-count\ 128/arg-max-count\ 512/g" /etc/firejail/firejail.config +``` + +- System-backup script and systemd units + +```bash sudo mkdir -p /usr/local/bin && sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/system-backup.sh -o /usr/local/bin/system-backup && sudo chmod +x /usr/local/bin/system-backup && sudo mkdir -p /usr/local/lib/systemd/system && sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/system-backup.service -o /usr/local/lib/systemd/system/system-backup.service && sudo curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/General/system-backup.timer -o /usr/local/lib/systemd/system/system-backup.timer && sudo systemctl enable --now system-backup.timer -source ~/.bashrc +``` + +- Bashrc + +```bash +curl https://raw.githubusercontent.com/Antiz96/Linux-Desktop/main/Dotfiles/Bashrc/Arch -o ~/.bashrc && source ~/.bashrc ``` From 378bbc15b4919d04594aae60d95d9230fa99378e Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 16 Mar 2026 17:20:34 +0100 Subject: [PATCH 2/2] Lint --- Arch-Linux/Niri.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Arch-Linux/Niri.md b/Arch-Linux/Niri.md index ca9c940..99aaea3 100644 --- a/Arch-Linux/Niri.md +++ b/Arch-Linux/Niri.md @@ -23,12 +23,12 @@ vim ~/.bash_profile # Append the following ```text # Autostart Niri if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - export XDG_CURRENT_DESKTOP=niri - export XDG_SESSION_DESKTOP=niri - export XDG_SESSION_TYPE=wayland - export QT_QPA_PLATFORM=wayland - export SDL_VIDEODRIVER=wayland - exec niri-session -l + export XDG_CURRENT_DESKTOP=niri + export XDG_SESSION_DESKTOP=niri + export XDG_SESSION_TYPE=wayland + export QT_QPA_PLATFORM=wayland + export SDL_VIDEODRIVER=wayland + exec niri-session -l fi ```