Compare commits

..

17 Commits

20 changed files with 1082 additions and 1182 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ bind '"\e[B": history-search-forward'
** Kitty for SSH
#+begin_src bash
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
[ "$TERM" = "xterm-kitty" ] && [ -n "$KITTY_WINDOW_ID" ] && alias ssh="kitty +kitten ssh"
#+end_src
** Aliases
+42
View File
@@ -1,6 +1,48 @@
#+TITLE:Calendar and Contact Configuration
#+SETUPFILE: ./setup/org-setup-file.org
* Calendar Install Script
:PROPERTIES:
:header-args:bash: :tangle scripts/install-calendar.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
Calendar/contact documentation: [[file:calendar-contact.org][calendar-contact.org]]
#+begin_src bash
set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() {
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
}
#+end_src
** Packages
#+begin_src bash
echo "==> Calendar and contacts packages"
paru -S --needed --noconfirm \
vdirsyncer \
python-aiohttp-oauthlib \
khal \
khard
#+end_src
** Tangle Systemd Configs
#+begin_src bash
echo "==> Tangling systemd configs for calendar"
tangle "systemd.org"
#+end_src
** Systemd Timer
#+begin_src bash
echo "==> Enabling vdirsyncer timer"
systemctl --user enable --now vdirsyncer.timer
#+end_src
* =vdirsyncer= - Synchronize calendars and contacts
:PROPERTIES:
:header-args: :tangle ~/.config/vdirsyncer/config
+13 -9
View File
@@ -13,31 +13,35 @@ Host backup
hostname pierrick.tdehaeze.xyz
Port 10022
user thomas
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ed25519
Host pierrick
hostname pierrick.tdehaeze.xyz
Port 56432
user pierrick
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ed25519
Host homelab
hostname <<get-password(passname="ip/homelab")>>
Port 22
user thomas
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ed25519
Host zotac
hostname 192.168.5.75
Port 22
user thomas
IdentityFile ~/.ssh/id_ed25519
Host router
hostname 192.168.1.1
Port 22
user root
IdentityFile ~/.ssh/id_rsa
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
IdentityFile ~/.ssh/id_ed25519
Host *.esrf.fr
User dehaeze
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ed25519
Host firewall.esrf.fr
Port 5022
@@ -49,7 +53,7 @@ Match host *.esrf.fr !host firewall.esrf.fr !exec "~/.ssh/esrf-test"
Host rnice
Port 22
user dehaeze
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ed25519
#+end_src
#+begin_src bash :tangle ~/.ssh/esrf-test :comments none :mkdirp yes :shebang "#!/usr/bin/env bash" :tangle-mode (identity #o555)
@@ -757,4 +761,4 @@ delay = 200
rate = 40
#+end_src
And then enable the service with: =systemctl --user enable xautocfg.service=
And then enable the service with: =systemctl --user enable --now xautocfg.service=
+1 -1
View File
@@ -30,7 +30,7 @@ DOOM="${HOME}/.config/emacs/bin/doom"
#+begin_src bash
echo "==> Emacs packages"
paru -S --needed emacs aspell aspell-en aspell-fr
paru -S --needed --noconfirm emacs aspell aspell-en aspell-fr
#+end_src
** Tangle Configuration
+222 -82
View File
@@ -14,7 +14,7 @@ It tangles several install scripts:
- =~/install-latex.sh= — LaTeX toolchain (texlive, biber)
- =~/install-laptop.sh= — laptop-specific tools (tlp, powertop, thermald)
All scripts use =paru -S --needed= to be idempotent (safe to re-run).
All scripts use =paru -S --needed --noconfirm --noconfirm= to be idempotent (safe to re-run) and non-interactive.
* Prerequisites
** =git=
@@ -58,7 +58,7 @@ tangle() {
#+begin_src bash
echo "==> Desktop packages"
paru -S --needed \
paru -S --needed --noconfirm \
i3-wm \
sxhkd \
polybar \
@@ -105,14 +105,20 @@ i3-msg restart 2>/dev/null || echo " (i3 not running, config will apply on next
#+begin_src bash
set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() {
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
}
#+end_src
** Shell and Terminal
#+begin_src bash
echo "==> Shell and Terminal"
paru -S --needed \
bash bash-completion zsh \
paru -S --needed --noconfirm \
bash bash-completion \
kitty \
tmux
#+end_src
@@ -123,8 +129,9 @@ paru -S --needed \
#+begin_src bash
echo "==> Fonts"
paru -S --needed \
paru -S --needed --noconfirm \
ttf-hack-nerd \
otf-libertinus \
ttf-sourcecodepro-nerd \
adobe-source-code-pro-fonts \
noto-fonts-emoji
@@ -136,7 +143,7 @@ Default fonts: Monospace/Serif/Sans = =Hack Nerd Font=.
#+begin_src bash
echo "==> Text Editors"
paru -S --needed \
paru -S --needed --noconfirm \
neovim python-pynvim nodejs-neovim \
emacs \
aspell aspell-en aspell-fr
@@ -156,13 +163,15 @@ Emacs config: [[./doom.org][doom.org]]
#+begin_src bash
echo "==> GnuPG and Pass"
paru -S --needed \
paru -S --needed --noconfirm \
gnupg gnome-keyring \
pass rofi-pass pass-git-helper
#+end_src
Generate a GPG key:
#+begin_src bash :tangle no
mkdir -p ~/.local/share/gnupg
gpg-agent --daemon
gpg --full-gen-key
#+end_src
@@ -178,6 +187,95 @@ pass git init
pass git remote add origin https://github.com/tdehaeze/pass.git
#+end_src
Or =cd ~/.local/share= and =git clone https://git.tdehaeze.xyz/tdehaeze/pass=
*** Setup password store on new computer (B)
**** On computer B (new)
1. Generate key:
#+begin_src bash :tangle no
gpg --full-generate-key
#+end_src
Remember the fingerprint (e.g., ~FBDA20B263C0C74A462D06F417F6BC48C15759C1~)
2. Export public key:
#+begin_src bash :tangle no
gpg --export FBDA20B263C0C74A462D06F417F6BC48C15759C1 > B.pub
#+end_src
3. Copy ~B.pub~ to computer A (USB, scp, etc.)
**** On computer A (existing)
4. Import B's public key:
#+begin_src bash :tangle no
gpg --import B.pub
#+end_src
5. Trust the key:
#+begin_src bash :tangle no
gpg --edit-key FBDA20B263C0C74A462D06F417F6BC48C15759C1
#+end_src
#+begin_example
trust
5
save
#+end_example
6. Find A's fingerprint:
#+begin_src bash :tangle no
gpg --fingerprint dehaeze.thomas@gmail.com
#+end_src
Note the fingerprint of the key used for pass (e.g., ~453D80FAF9BBDF56CB4167699C30DC293122F6C6~)
7. Re-encrypt store to both keys:
#+begin_src bash :tangle no
pass init "453D80FAF9BBDF56CB4167699C30DC293122F6C6" "FBDA20B263C0C74A462D06F417F6BC48C15759C1"
#+end_src
8. Export A's public key:
#+begin_src bash :tangle no
gpg --export 453D80FAF9BBDF56CB4167699C30DC293122F6C6 > A.pub
#+end_src
9. Push password store changes:
#+begin_src bash :tangle no
pass git push
#+end_src
10. Copy ~A.pub~ to computer B
**** Back on computer B
11. Import A's public key:
#+begin_src bash :tangle no
gpg --import A.pub
#+end_src
12. Trust the key:
#+begin_src bash :tangle no
gpg --edit-key 453D80FAF9BBDF56CB4167699C30DC293122F6C6
#+end_src
#+begin_example
trust
5
save
#+end_example
13. Clone password store (if using git):
#+begin_src bash :tangle no
git clone <your-pass-git-url> ~/.password-store
cd ~/.password-store
pass git pull
#+end_src
14. Verify:
#+begin_src bash :tangle no
pass show some-password
pass insert test/new-password
pass show test/new-password
#+end_src
** SSH
Generate a new SSH key:
@@ -191,7 +289,7 @@ ssh-add ~/.ssh/id_ed25519
#+begin_src bash
echo "==> Window Manager and Desktop"
paru -S --needed \
paru -S --needed --noconfirm \
i3-wm \
sxhkd \
polybar \
@@ -212,7 +310,7 @@ paru -S --needed \
#+begin_src bash
echo "==> File Manager"
paru -S --needed yazi
paru -S --needed --noconfirm yazi
#+end_src
Yazi config: [[file:yazi.org][yazi.org]]
@@ -221,7 +319,7 @@ Yazi config: [[file:yazi.org][yazi.org]]
#+begin_src bash
echo "==> Terminal Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
fd ripgrep fzf \
xclip xsel \
atool unzip \
@@ -234,7 +332,7 @@ paru -S --needed \
#+begin_src bash
echo "==> Browser"
paru -S --needed \
paru -S --needed --noconfirm \
qutebrowser python-adblock pdfjs \
firefox-developer-edition passff-host
#+end_src
@@ -251,24 +349,31 @@ Spell checking for qutebrowser:
#+begin_src bash
echo "==> Media"
paru -S --needed \
paru -S --needed --noconfirm \
mpv \
jellyfin-tui \
nsxiv \
tesseract tesseract-data-eng tesseract-data-fra tesseract-data-osd \
zathura zathura-pdf-mupdf zathura-djvu zathura-ps zathura-cb \
pdfpc \
f3d \
gst-plugins-ugly gst-plugins-good gst-plugins-base-libs gst-plugins-base gst-plugins-bad gst-libav
#+end_src
** Sound (PipeWire)
Core PipeWire packages (required):
#+begin_src bash
echo "==> PipeWire"
paru -S --needed \
paru -S --needed --noconfirm \
pipewire pipewire-alsa pipewire-audio pipewire-jack pipewire-pulse \
wireplumber \
pwvucontrol
wireplumber
#+end_src
Optional GUI control (install manually when available):
#+begin_src bash :tangle no
echo "==> PipeWire GUI (optional)"
paru -S --needed --noconfirm pwvucontrol || echo "pwvucontrol failed, skipping"
#+end_src
Enable PipeWire services:
@@ -282,7 +387,7 @@ systemctl --user enable --now wireplumber.service
#+begin_src bash
echo "==> PDF and Image Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
pdf2svg qpdf pdfarranger \
imagemagick \
maim flameshot \
@@ -294,7 +399,7 @@ paru -S --needed \
#+begin_src bash
echo "==> Office"
paru -S --needed \
paru -S --needed --noconfirm \
onlyoffice-bin \
libreoffice-fresh libreoffice-fresh-fr \
inkscape
@@ -304,7 +409,7 @@ paru -S --needed \
#+begin_src bash
echo "==> System Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
udiskie \
blueman \
sshfs \
@@ -319,30 +424,109 @@ paru -S --needed \
gotify-dunst-git \
gomuks \
yt-dlp \
freerdp \
xautocfg \
python ipython python-pip
#+end_src
Enable Syncthing:
Enable Syncthing and Gotify-dunst:
#+begin_src bash :tangle no
systemctl --user enable --now syncthing
systemctl --user enable --now gotify-dunst
systemctl --user enable --now xautocfg
#+end_src
** Misc Utilities
#+begin_src bash
echo "==> Misc Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
xwallpaper \
highlight-pointer-git \
mpd
#+end_src
** SSH Keys for Tunnels
Use a single SSH key for all hosts (matches =~/.ssh/config=).
#+begin_src bash
KEY_FILE="$HOME/.ssh/id_ed25519"
HOMELAB_OK=1
ESRF_OK=1
# Generate main SSH key if it doesn't exist
if [ ! -f "${KEY_FILE}" ]; then
echo ""
echo "==> Generating main SSH key"
read -p "Generate new SSH key at ${KEY_FILE}? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
ssh-keygen -t ed25519 -C "thomas@$(hostname)" -f "${KEY_FILE}" -N ""
else
echo "Skipping SSH key generation"
fi
fi
# Deploy key to a remote host if needed
deploy_ssh_key() {
local host_name="$1"
local remote_host="$2"
local remote_port="${3:-22}"
echo ""
echo "==> Checking SSH key for ${host_name}"
# Check if we can connect without password
if ssh -o BatchMode=yes -o ConnectTimeout=5 -p "${remote_port}" "${remote_host}" exit 2>/dev/null; then
echo "SSH key for ${host_name} is already deployed ✓"
return 0
fi
# Prompt to deploy key
read -p "Deploy SSH key to ${remote_host}? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
ssh-copy-id -i "${KEY_FILE}.pub" -p "${remote_port}" "${remote_host}"
return 0
else
echo "Skipping ${host_name} key deployment"
return 1
fi
}
# Setup homelab
deploy_ssh_key "homelab" "homelab" 22
HOMELAB_OK=$?
# Setup ESRF
deploy_ssh_key "esrf" "dehaeze@firewall.esrf.fr" 8022
ESRF_OK=$?
#+end_src
** Systemd Services
Enable custom systemd services (tangle [[file:systemd.org][systemd.org]] first):
#+begin_src bash :tangle no
systemctl --user enable --now homelab-tunnel
systemctl --user enable --now esrf-tunnel
#+begin_src bash
echo "==> Tangling systemd configs"
tangle "systemd.org"
#+end_src
Enable custom =systemd= services:
#+begin_src bash
echo "==> Enabling systemd services"
if [ $HOMELAB_OK -eq 0 ]; then
systemctl --user enable --now homelab-tunnel
else
echo " Skipping homelab-tunnel (SSH key not configured)"
fi
if [ $ESRF_OK -eq 0 ]; then
systemctl --user enable --now esrf-tunnel
else
echo " Skipping esrf-tunnel (SSH key not configured)"
fi
systemctl --user enable --now syncthing
#+end_src
@@ -360,73 +544,29 @@ xdg-mime default qutebrowser.desktop x-scheme-handler/http
xdg-mime default qutebrowser.desktop x-scheme-handler/https
#+end_src
* Mail Install Script
* Specific Applications
:PROPERTIES:
:header-args:bash: :tangle scripts/install-mail.sh :shebang "#!/bin/bash" :mkdirp yes
:header-args:bash: :tangle scripts/install-gui.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
Mail setup documentation: [[file:mail.org][mail.org]]
#+begin_src bash
set -euo pipefail
#+end_src
** Packages
#+begin_src bash
echo "==> Mail packages"
paru -S --needed \
isync \
msmtp \
neomutt \
mu \
lynx urlview
echo "==> GUI applications"
paru -S --needed --noconfirm \
inkscape \
freecad \
bambustudio-bin \
pcmanfm \
jellyfin-desktop \
xournalpp \
anydesk-bin
#+end_src
** Initialize mu
[[file:bash.org][Bash]] configuration: =~/.bashrc=, =~/.bash_profile=, =~/.config/bash/=, =~/.profile=
#+begin_src bash :tangle no
echo "==> Initializing mu index"
mu init -m ~/.mail/
mu index
#+end_src
** Systemd Timers
#+begin_src bash :tangle no
echo "==> Enabling mail timers"
systemctl --user enable --now checkmail.timer
systemctl --user enable --now syncmail.timer
#+end_src
* Calendar Install Script
:PROPERTIES:
:header-args:bash: :tangle scripts/install-calendar.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
Calendar/contact documentation: [[file:calendar-contact.org][calendar-contact.org]]
#+begin_src bash
set -euo pipefail
#+end_src
** Packages
#+begin_src bash
echo "==> Calendar and contacts packages"
paru -S --needed \
vdirsyncer \
khal \
khard \
mu
#+end_src
** Systemd Timer
#+begin_src bash :tangle no
echo "==> Enabling vdirsyncer timer"
systemctl --user enable --now vdirsyncer.timer
#+end_src
* LaTeX Install Script
:PROPERTIES:
@@ -441,7 +581,7 @@ set -euo pipefail
#+begin_src bash
echo "==> LaTeX packages"
paru -S --needed \
paru -S --needed --noconfirm \
texlive-most tllocalmgr-git \
biber
#+end_src
@@ -462,7 +602,7 @@ set -euo pipefail
#+begin_src bash
echo "==> Laptop power management"
paru -S --needed \
paru -S --needed --noconfirm \
powertop \
tlp \
thermald
+62 -8
View File
@@ -1,9 +1,69 @@
#+TITLE: Mail Configuration
#+SETUPFILE: ./setup/org-setup-file.org
Installation:
* Mail Install Script
:PROPERTIES:
:header-args:bash: :tangle scripts/install-mail.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
Mail setup documentation: [[file:mail.org][mail.org]]
#+begin_src bash
set -euo pipefail
#+end_src
** Packages
#+begin_src bash
echo "==> Mail packages"
paru -S --needed --noconfirm \
isync \
msmtp \
neomutt \
mu \
lynx urlview
#+end_src
** Tangle Configuration
#+begin_src bash
echo "==> Tangling mail.org"
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/mail.org")'
#+end_src
** Mail Directories
#+begin_src bash
echo "==> Creating mail directories"
mkdir -p ~/.local/share/mails/{gmail,esrf,search,empty}
mkdir -p ~/.local/share/mails/gmail/{Inbox,Sent,Drafts,Archive,Trash}
mkdir -p ~/.local/share/mails/esrf/{Inbox,Sent,Drafts,Archive,Trash}
mkdir -p ~/.local/share/mails/search/{cur,new,tmp}
mkdir -p ~/.local/share/mails/empty/gmail/{cur,new,tmp}
mkdir -p ~/.local/share/mails/empty/esrf/{cur,new,tmp}
#+end_src
** Getting the emails
#+begin_src bash
echo "==> Getting all the emails"
mbsync -a
#+end_src
** Initialize mu
#+begin_src bash :tangle no
paru -S mbsync msmtp neomutt lynx urlview
echo "==> Initializing mu index"
mu init -m ~/.local/share/mails
mu index
#+end_src
** Systemd Timers
#+begin_src bash :tangle no
echo "==> Enabling mail timers"
systemctl --user enable --now checkmail.timer
systemctl --user enable --now syncmail.timer
#+end_src
* Claude Code — Email Assistant
@@ -227,12 +287,6 @@ account default : esrf
#+END_SRC
* =mu= - Mail Indexer
:PROPERTIES:
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
:header-args:conf+: :comments both :mkdirp yes
:CUSTOM_ID: mu
:END:
=Mu= ([[https://github.com/djcb/mu][github]]) it used as a "maildir indexer/searcher".
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
+26 -154
View File
@@ -1,170 +1,42 @@
#+TITLE: Music/Sound Configuration
#+TITLE:Music Setup
#+SETUPFILE: ./setup/org-setup-file.org
* =pwvucontrol= - Volume Control for Pipewire
* =mopidy= - Music Server
* Music Install Script
:PROPERTIES:
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
:CUSTOM_ID: mopidy
:header-args:bash: :tangle scripts/install-music.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
Things done to get mopidy to work:
#+begin_src bash :eval no :tangle no
cd ~/.local/soft/
git clone git@github.com:jellyfin/mopidy-jellyfin.git && cd mopidy-jellyfin
python -m venv env --system-site-packages
env/bin/python setup.py develop
env/bin/pip install mopidy-mpd
#+begin_src bash
set -euo pipefail
#+end_src
To run mopidy:
#+begin_src bash :eval no :tangle no
~/.local/soft/mopidy-jellyfin/env/bin/mopidy
** Packages
#+begin_src bash
echo "==> Music packages"
paru -S --needed --noconfirm jellyfin-tui playerctl
#+end_src
#+begin_src conf
[core]
cache_dir = ~/.cache/mopidy
config_dir = ~/.config/mopidy
data_dir = ~/.local/data/mopidy
** Tangle Configuration
[audio]
output = queue2 max-size-buffers=20000 max-size-time=0 max-size-bytes=0 ! audioconvert ! pulsesink
[stream]
enabled = true
protocols =
http
https
timeout = 30000
[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = listall,listallinfo
default_playlist_scheme = m3u
[jellyfin]
hostname = https://jellyfin.tdehaeze.xyz
username = tdehaeze
password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
libraries = Music
albumartistsort = True
album_format = {ProductionYear} - {Name}
[file]
enabled = false
[logging]
verbosity = 4
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
color = true
#+begin_src bash
echo "==> Tangling music.org"
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/music.org")'
#+end_src
* =ncmpcpp= - Ncurses based MPD client
:PROPERTIES:
:CUSTOM_ID: ncmpcpp
:END:
* Jellyfin-tui config
https://rybczak.net/ncmpcpp/
Cheatsheet: https://pkgbuild.com/~jelle/ncmpcpp/
#+begin_src conf :noweb yes :tangle ~/.config/jellyfin-tui/config.yaml
servers:
- name: Home Server
password: <<get-password(passname="jellyfin.tdehaeze.xyz/tdehaeze")>>
url: https://jellyfin.tdehaeze.xyz
username: tdehaeze
** Config
:PROPERTIES:
:header-args:conf: :tangle ~/.config/ncmpcpp/config
:header-args:conf+: :comments both :mkdirp yes
:END:
persist: true
always_show_lyrics: false
keymap:
q: !Shell "tmux detach"
Configuration directory.
#+begin_src conf
ncmpcpp_directory = ~/.config/ncmpcpp
lyrics_directory = ~/.local/share/lyrics
#+end_src
MPD Configuration.
#+begin_src conf
mpd_host = localhost
mpd_port = 6600
mpd_music_dir = ~/Music
#+end_src
Notification of song change.
#+begin_src conf
execute_on_song_change = dunstify --replace=19845 "Now Playing ♫" "$(mpc current)"
#+end_src
Better user interface
#+begin_src conf
user_interface = "alternative"
playlist_editor_display_mode = "columns"
search_engine_display_mode = "columns"
browser_display_mode = "columns"
playlist_display_mode = "columns"
#+end_src
Lyrics
#+begin_src conf
lyrics_fetchers = musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet
#+end_src
Sorting by tracking number and then title
#+begin_src conf
browser_sort_mode = "format"
browser_sort_format = '{%n - %t}|{%t}'
#+end_src
#+begin_src conf
ask_before_clearing_playlists = "no"
#+end_src
** Bindings
:PROPERTIES:
:header-args:conf: :tangle ~/.config/ncmpcpp/bindings
:header-args:conf+: :comments none :mkdirp yes
:END:
#+begin_src conf
def_key "q"
run_external_command "sh -c 'if [ $TMUX ] ; then tmux detach; fi'"
def_key "Q"
quit
def_key "g"
move_home
def_key "G"
move_end
def_key "j"
scroll_down
def_key "k"
scroll_up
def_key "ctrl-u"
page_up
def_key "ctrl-d"
page_down
def_key "l"
enter_directory
def_key "h"
jump_to_parent_directory
def_key "."
show_lyrics
def_key "n"
next_found_item
def_key "N"
previous_found_item
def_key "J"
move_sort_order_down
def_key "K"
move_sort_order_up
def_key "d"
delete_playlist_items
def_key "+"
volume_up
def_key "-"
volume_down
#+end_src
+2
View File
@@ -3,6 +3,8 @@
#+PROPERTY: header-args :comments both :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/dunst/dunstrc
After tangling this config, restart the service with =systemctl --user restart dunst=.
* Global
#+begin_src conf
[global]
+1 -1
View File
@@ -62,7 +62,7 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
modules-left = i3 xwindow
modules-center =
modules-right = pipewire music tunnel_homelab tunnel_esrf dunst lockscreen cursor unread_mail calendar timer battery date tray
modules-right = pipewire music tunnel_homelab tunnel_esrf dunst lockscreen cursor unread_mail calendar battery date tray
# wm-restack = i3
#+END_SRC
-856
View File
@@ -1,856 +0,0 @@
#+TITLE: Ranger
#+SETUPFILE: ./setup/org-setup-file.org
* Documentation
#+begin_quote
%f the highlighted file
%d the path of the current directory
%s the selected files in the current directory
%t all tagged files in the current directory
%c the full paths of the currently copied/cut files
%p the full paths of selected files
#+end_quote
After install, run:
#+begin_src bash :tangle no
ranger --copy-config=scope
#+end_src
To add =scope.sh=.
The following has been added to preview =xournalpp= file:
#+begin_src bash
case "${FILE_EXTENSION_LOWER}" in
## xournall file
xopp)
xournalpp-thumbnailer "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
;;
esac
#+end_src
To have image preview:
#+begin_src bash :tangle no
sudo pip3 install ueberzug
#+end_src
* Config
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/rc.conf
:header-args+: :comments both :mkdirp yes
:END:
** Options
#+BEGIN_SRC conf
# Which viewmode should be used? Possible values are:
# miller: Use miller columns which show multiple levels of the hierarchy
# multipane: Midnight-commander like multipane view showing all tabs next
# to each other
set viewmode miller
# How many columns are there, and what are their relative widths?
set column_ratios 1,1
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|lof|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl|xopp~)$|^lost\+found$|^__(py)?cache__$
# Show hidden files? You can toggle this by typing 'zh'
set show_hidden false
# Ask for a confirmation when running the "delete" command?
# Valid values are "always", "never", "multiple" (default)
# With "multiple", ranger will ask only if you delete multiple files at once.
set confirm_on_delete multiple
# Which script is used to generate file previews?
# ranger ships with scope.sh, a script that calls external programs (see
# README.md for dependencies) to preview images, archives, etc.
set preview_script /home/thomas/.config/ranger/scope.sh
# Use the external preview script or display simple plain text or image previews?
set use_preview_script true
# Automatically count files in the directory, even before entering them?
set automatically_count_files true
# Open all images in this directory when running certain image viewers
set open_all_images true
# Be aware of version control systems and display information.
set vcs_aware false
# Use one of the supported image preview protocols
set preview_images true
# Set the preview image method
set preview_images_method ueberzug
set colorscheme default
# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
set preview_files true
set preview_directories true
set collapse_preview true
# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false
# Draw a progress bar in the status bar which displays the average state of all
# currently running tasks which support progress bars?
set draw_progress_bar_in_status_bar true
# Draw borders around columns?
set draw_borders true
# Display the directory name in tabs?
set dirname_in_tabs false
# Enable the mouse support?
set mouse_enabled true
# Display the file size in the main column or status bar?
set display_size_in_main_column true
set display_size_in_status_bar false
# Display files tags in all columns or only in main column?
set display_tags_in_all_columns false
# Set a title for the window?
set update_title false
# Set the title to "ranger" in the tmux program?
set update_tmux_title true
# Shorten the title if it gets long? The number defines how many
# directories are displayed at once, 0 turns off this feature.
set shorten_title 3
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
set tilde_in_titlebar true
# How many directory-changes or console-commands should be kept in history?
set max_history_size 20
set max_console_history_size 50
# Try to keep so much space between the top/bottom border when scrolling:
set scroll_offset 8
# Flush the input after each key hit? (Noticeable when ranger lags)
set flushinput true
# Padding on the right when there's no preview?
# This allows you to click into the space to run the file.
set padding_right true
set autosave_bookmarks false
set autoupdate_cumulative_size false
# Turning this on makes sense for screen readers:
set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural
# Additional sorting options
set sort_reverse false
set sort_case_insensitive true
set sort_directories_first true
set sort_unicode false
# Enable this if key combinations with the Alt Key don't work for you.
# (Especially on xterm)
set xterm_alt_key false
# Whether to include bookmarks in cd command
set cd_bookmarks false
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
# disable this feature.
set preview_max_size 5000000
# Add the highlighted file to the path in the titlebar
set show_selection_in_titlebar true
# The delay that ranger idly waits for user input, in milliseconds, with a
# resolution of 100ms. Lower delay reduces lag between directory updates but
# increases CPU load.
set idle_delay 2000
# When the metadata manager module looks for metadata, should it only look for
# a ".metadata.json" file in the current directory, or do a deep search and
# check all directories above the current one as well?
set metadata_deep_search false
# Clear all existing filters when leaving a directory
set clear_filters_on_dir_change false
# Disable displaying line numbers in main column
set line_numbers false
#+END_SRC
** Command Aliases in the Console
#+BEGIN_SRC conf
alias q quit
alias filter scout -prt
alias find scout -aeit
alias mark scout -mr
alias unmark scout -Mr
alias search scout -rs
alias search_inc scout -rts
alias travel scout -aefiklst
#+END_SRC
** Some Custom Keybindings
Extract:
#+BEGIN_SRC conf
map ,x shell ~/.config/ranger/scripts/extract.sh %f
#+END_SRC
Compress:
#+BEGIN_SRC conf
map ,z shell ~/.config/ranger/scripts/compress.sh %f
#+END_SRC
Convert images/pdf/...:
#+BEGIN_SRC conf
map ,c shell convert-file %f
#+END_SRC
Extract BibTeX:
#+begin_src conf
map ,b shell ~/.config/ranger/scripts/add-reference.sh %d/%f
#+end_src
Open SXIV on current directory:
#+BEGIN_SRC conf
map ,s shell nohup sxiv -t %d &
#+END_SRC
Upload to https://0x0.st/:
#+BEGIN_SRC conf
map ,t shell upload %f
#+END_SRC
Open current folder with PCManFM:
#+begin_src conf
map ,o shell nohup pcmanfm %d &
#+end_src
Print on Rnice:
#+BEGIN_SRC conf
map ,p shell print-esrf %f &
#+END_SRC
Backup to NAS:
#+BEGIN_SRC conf
map ,B shell ~/.config/ranger/scripts/backup-to-nas.sh %s &
#+END_SRC
#+begin_src conf
map ,y shell ~/.config/ranger/scripts/copy-content.sh %s &
#+end_src
** Scripts
*** Extract DOI, create BibTeX and rename file
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/add-reference.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
add_reference () {
doi=$(pdf2doi $1 | sed 's/^DOI *//' | sed 's/ \+.*//')
# If empty DOI, ask manually
if [ -z $doi ]; then
doi=$(rofi -dmenu -p "DOI")
fi
# If DOI, add it to Emacs
if [ ! -z $doi ]; then
emacsclient --eval "(tdh-org-ref-import-pdf \"$doi\" \"$1\")" && \
dunstify --replace=49496 "BibTeX" "File copied."
else
dunstify --replace=49496 "BibTeX" "Failed to get DOI"
fi
}
add_reference "$1"
#+end_src
*** Extract Script
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/extract.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 atool -x "$1" && tmux select-pane -U
else
atool -x "$1"
fi
#+end_src
*** Compress Script
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/compress.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 apack "${1%.*}.zip" "$1" && tmux select-pane -U
else
apack "${1%.*}.zip" "$1"
fi
#+end_src
*** Copy File Content
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/copy-content.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
xclip -sel c < "$1" && notify-send "Ranger" "Copied to clipboard"
#+end_src
*** Paste with Rsync
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/paste-rsync.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
- First argument is the directory where to copy files
- All other arguments are files that are to be copied
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 1 rsync -a --info=progress2 --no-inc-recursive "${@:2}" "$1" && tmux select-pane -U
else
rsync -a --info=progress2 --no-inc-recursive "${@:2}" "$1"
fi
#+end_src
** Define keys for the browser
*** Basic
#+BEGIN_SRC conf
map Q quit!
map q eval fm.execute_console("shell tmux detach") if 'TMUX' in os.environ.keys() else fm.execute_console("quit")
#+END_SRC
#+BEGIN_SRC conf
map <C-c> abort
map <esc> change_mode normal
map ~ set viewmode!
#+END_SRC
#+BEGIN_SRC conf
map ? help
#+END_SRC
#+BEGIN_SRC conf
map : console
map ; console
#+END_SRC
#+BEGIN_SRC conf
map ! console shell%space
#+END_SRC
#+BEGIN_SRC conf
map @ console -p6 shell %%s
#+END_SRC
*** Open Shell in current directory
#+BEGIN_SRC conf
map s shell $SHELL
map S shell nohup $TERMINAL &
#+END_SRC
*** Open With
#+BEGIN_SRC conf
map O chain draw_possible_programs; console open_with%space
#+END_SRC
*** Filter
#+BEGIN_SRC conf
map f console filter%space
# Reset filter
map F filter
#+END_SRC
*** Tagging / Marking
#+BEGIN_SRC conf
map <Space> mark_files toggle=True
map v mark_files all=True toggle=True
#+END_SRC
*** VIM-like
#+BEGIN_SRC conf
copymap <UP> k
copymap <DOWN> j
copymap <LEFT> h
copymap <RIGHT> l
copymap <HOME> gg
copymap <END> G
#+END_SRC
*** Jumping around
#+BEGIN_SRC conf
map H history_go -1
map L history_go 1
#+END_SRC
#+BEGIN_SRC conf
map ] move_parent 1
map [ move_parent -1
#+END_SRC
#+BEGIN_SRC conf
map } traverse
#+END_SRC
#+BEGIN_SRC conf
map cd console cd%space
#+END_SRC
*** Go to special folders
#+BEGIN_SRC conf
map gh cd ~/
map gw cd ~/Cloud/work-projects
map gp cd ~/Cloud/personnal
map gP cd ~/Cloud/pictures/phone
map gs cd ~/Cloud/pictures/screenshots
map gT cd ~/.local/share/Trash/files
map gd cd ~/Downloads
map gD cd ~/Cloud/documents
map gc cd ~/Cloud
map gV cd ~/.config/literate-dotfiles
map gm cd ~/Cloud/meetings
#+END_SRC
*** Get size of folders
#+BEGIN_SRC conf
# Get size of all folders
map du shell -p du --max-depth=1 -h --apparent-size
# Get size of all folders and sort them
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
#+END_SRC
*** Yank path of directory/file
#+BEGIN_SRC conf
# Yank path of current directory/file
map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
# Yank path of directory
map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b
# Yank filename
map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
#+END_SRC
*** Drag and Drop
#+BEGIN_SRC conf
map D shell dragon-drop -a -x %p
#+END_SRC
*** Rename files
#+BEGIN_SRC conf
map a rename_append
map C eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
#+END_SRC
*** Paste files
#+BEGIN_SRC conf
map pp paste
map po paste overwrite=True
map pP paste append=True
map pO paste overwrite=True append=True
map pl paste_symlink relative=False
map pL paste_symlink relative=True
map phl paste_hardlink
map pht paste_hardlinked_subtree
#+END_SRC
Paste with Rsync
#+BEGIN_SRC conf
map pr shell ~/.config/ranger/scripts/paste-rsync.sh %d %c
#+END_SRC
*** Delete and move files
#+BEGIN_SRC conf
map dD shell -s trash-put %s
map dd cut
map du uncut
#+END_SRC
*** Copy files
#+BEGIN_SRC conf
map yy copy
map yu uncut
#+END_SRC
*** Searching
#+BEGIN_SRC conf
map / console search%space
map n search_next
map N search_next forward=False
#+END_SRC
*** Tabs
#+BEGIN_SRC conf
map <C-n> tab_new ~
map <C-w> tab_close
map <TAB> tab_move 1
map <S-TAB> tab_move -1
map gn tab_new ~
map gt tab_move 1
#+END_SRC
*** Settings
#+BEGIN_SRC conf
map zh set show_hidden!
map zi set preview_images!
map zv set use_preview_script!
#+END_SRC
*** Bookmarks
#+BEGIN_SRC conf
map `<any> enter_bookmark %any
map '<any> enter_bookmark %any
map m<any> set_bookmark %any
map um<any> unset_bookmark %any
map m<bg> draw_bookmarks
copymap m<bg> um<bg> `<bg> '<bg>
#+END_SRC
*** FZF
#+BEGIN_SRC conf
map <C-f> fzf_select
#+END_SRC
** Define keys for the console
*** Basic
#+BEGIN_SRC conf
cmap <tab> eval fm.ui.console.tab()
cmap <s-tab> eval fm.ui.console.tab(-1)
cmap <ESC> eval fm.ui.console.close()
cmap <CR> eval fm.ui.console.execute()
cmap <C-l> redraw_window
copycmap <ESC> <C-c>
copycmap <CR> <C-j>
#+END_SRC
*** Move around
#+BEGIN_SRC conf
cmap <up> eval fm.ui.console.history_move(-1)
cmap <down> eval fm.ui.console.history_move(1)
cmap <left> eval fm.ui.console.move(left=1)
cmap <right> eval fm.ui.console.move(right=1)
#+END_SRC
*** Line Editing
#+BEGIN_SRC conf
cmap <backspace> eval fm.ui.console.delete(-1)
cmap <delete> eval fm.ui.console.delete(0)
cmap <C-w> eval fm.ui.console.delete_word()
cmap <C-y> eval fm.ui.console.paste()
copycmap <home> <C-a>
copycmap <end> <C-e>
#+END_SRC
* Rifle
:PROPERTIES:
:CUSTOM_ID: rifle
:header-args: :tangle ~/.config/ranger/rifle.conf
:header-args+: :comments both :mkdirp yes
:END:
** Documentation
#+BEGIN_SRC conf :tangle no
# This is the configuration file of "rifle", ranger's file executor/opener.
# Each line consists of conditions and a command. For each line the conditions
# are checked and if they are met, the respective command is run.
#
# Syntax:
# <condition1> , <condition2> , ... = command
#
# The command can contain these environment variables:
# $1-$9 | The n-th selected file
# $@ | All selected files
#
# If you use the special command "ask", rifle will ask you what program to run.
#
# Prefixing a condition with "!" will negate its result.
# These conditions are currently supported:
# match <regexp> | The regexp matches $1
# ext <regexp> | The regexp matches the extension of $1
# mime <regexp> | The regexp matches the mime type of $1
# name <regexp> | The regexp matches the basename of $1
# path <regexp> | The regexp matches the absolute path of $1
# has <program> | The program is installed (i.e. located in $PATH)
# env <variable> | The environment variable "variable" is non-empty
# file | $1 is a file
# directory | $1 is a directory
# number <n> | change the number of this command to n
# terminal | stdin, stderr and stdout are connected to a terminal
# X | $DISPLAY is not empty (i.e. Xorg runs)
#
# There are also pseudo-conditions which have a "side effect":
# flag <flags> | Change how the program is run. See below.
# label <label> | Assign a label or name to the command so it can
# | be started with :open_with <label> in ranger
# | or `rifle -p <label>` in the standalone executable.
# else | Always true.
#
# Flags are single characters which slightly transform the command:
# f | Fork the program, make it run in the background.
# | New command = setsid $command >& /dev/null &
# r | Execute the command with root permissions
# | New command = sudo $command
# t | Run the program in a new terminal. If $TERMCMD is not defined,
# | rifle will attempt to extract it from $TERM.
# | New command = $TERMCMD -e $command
# Note: The "New command" serves only as an illustration, the exact
# implementation may differ.
# Note: When using rifle in ranger, there is an additional flag "c" for
# only running the current file even if you have marked multiple files.
#+END_SRC
** Websites
#+BEGIN_SRC conf
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has w3m, terminal = w3m "$@"
#+END_SRC
** Text Files
3D files (before the rest)
#+begin_src conf
ext stp, X, flag f = f3d -- "$@"
ext step, X, flag f = f3d -- "$@"
ext stl, X, flag f = f3d -- "$@"
#+end_src
Calendar files
#+begin_src conf
ext ics, X, flag f = ics-add "$@"
#+end_src
Define the =$EDITOR= for text files as first action:
#+BEGIN_SRC conf
mime ^text, label editor = $EDITOR -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
#+END_SRC
Favorite editors:
#+begin_src conf
mime ^text, has nvim, flag f = nvim "$@"
mime ^text, has emacsclient, X, flag f = emacsclient -c "$@"
#+end_src
Org mode files
#+BEGIN_SRC conf
ext org, has emacsclient, X, flag f = emacsclient -c "$@"
#+END_SRC
#+BEGIN_SRC conf
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext py = python -- "$1"
ext pl = perl -- "$1"
ext rb = ruby -- "$1"
ext js = node -- "$1"
ext sh = sh -- "$1"
ext php = php -- "$1"
#+END_SRC
** PDF, Epub and jdvu
#+BEGIN_SRC conf
ext pdf, has zathura, X, flag f = zathura -- "$@"
ext pdf, has mupdf, X, flag f = mupdf "$@"
ext pdf, X, flag f = "$BROWSER" "$@"
#+END_SRC
#+BEGIN_SRC conf
ext epub, has zathura, X, flag f = zathura -- "$@"
ext epub, has mupdf, X, flag f = mupdf "$@"
#+END_SRC
#+BEGIN_SRC conf
ext djvu, has zathura, X, flag f = zathura -- "$@"
ext djvu, has evince, X, flag f = evince -- "$@"
ext djvu, has atril, X, flag f = atril -- "$@"
#+END_SRC
** Xournalpp
#+begin_src conf
ext xopp, X, flag f = xournalpp "$@"
#+end_src
** Archives
#+BEGIN_SRC conf
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@"
ext tar|gz, has tar = tar vvtf "$@" | "$PAGER"
ext tar|gz, has tar = tar vvxf "$@"
#+END_SRC
** Torrent
#+BEGIN_SRC conf
ext torrent, X, flag f = stig add -- "$@"
#+END_SRC
** Word, Excel and Presentation files
#+BEGIN_SRC conf
ext docx?, has onlyoffice-desktopeditors, X, flag f = onlyoffice-desktopeditors "$@"
ext docx?, has wps, X, flag f = wps "$@"
ext docx?, has libreoffice, X, flag f = libreoffice "$@"
#+END_SRC
#+begin_src conf
ext pptx?, has onlyoffice-desktopeditors, X, flag f = onlyoffice-desktopeditors "$@"
ext pptx?, has wps, X, flag f = wps "$@"
ext pptx?, has libreoffice, X, flag f = libreoffice "$@"
#+end_src
#+begin_src conf
ext csv|xlsx?, has sc-im = sc-im -- "$@"
ext csv|xlsx?, has onlyoffice-desktopeditors, X, flag f = onlyoffice-desktopeditors "$@"
ext csv|xlsx?, has wps, X, flag f = wps "$@"
ext csv|xlsx?, has libreoffice, X, flag f = libreoffice "$@"
#+end_src
** Images
#+BEGIN_SRC conf
mime ^image/svg, has inkview, X, flag f = inkview -- "$@"
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@"
#+END_SRC
#+BEGIN_SRC conf
mime ^image/gif, has mpv, X, flag f = mpv --loop -- "$@"
mime ^image/gif, has qutebrowser, X, flag f = qutebrowser -- "$@"
#+END_SRC
#+BEGIN_SRC conf
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh --scale-down --auto-zoom -- "$@"
#+END_SRC
** Audio
#+BEGIN_SRC conf
mime ^audio|ogg$, terminal, has mpv = mpv --no-audio-display -- "$@"
mime ^audio|ogg$, X, flag f, has vlc = vlc -- "$@"
#+END_SRC
** Video
#+BEGIN_SRC conf
mime ^video, has mpv, X, flag f = mpv -- "$@"
mime ^video, has vlc, X, flag f = vlc -- "$@"
#+END_SRC
** Misc
#+BEGIN_SRC conf
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
ext nes, has fceux, X = fceux "$1"
ext exe = wine "$1"
name ^[mM]akefile$ = make
mime application/vnd.ms-tnef = winmail-add "$@"
#+END_SRC
#+BEGIN_SRC conf
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
has dragon-drop, X, flag f = dragon-drop -a -x "$@"
#+END_SRC
* Ranger Commands
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/commands.py
:header-args+: :comments both :mkdirp yes
:END:
** Import
#+begin_src python
from ranger.api.commands import *
import os
#+end_src
** fzf_select
#+begin_src python
class fzf_select(Command):
"""
:fzf_select
Find a file using fzf.
With a prefix argument select only directories.
See: https://github.com/junegunn/fzf
"""
def execute(self):
import subprocess
if self.quantifier:
# match only directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
else:
# match files and directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.decode('utf-8').rstrip('\n'))
if os.path.isdir(fzf_file):
self.fm.cd(fzf_file)
else:
self.fm.select_file(fzf_file)
# fzf_locate
class fzf_locate(Command):
"""
:fzf_locate
Find a file using fzf.
With a prefix argument select only directories.
See: https://github.com/junegunn/fzf
"""
def execute(self):
import subprocess
if self.quantifier:
command="locate home media | fzf -e -i"
else:
command="locate home media | fzf -e -i"
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.decode('utf-8').rstrip('\n'))
if os.path.isdir(fzf_file):
self.fm.cd(fzf_file)
else:
self.fm.select_file(fzf_file)
#+end_src
+14 -3
View File
@@ -1,9 +1,20 @@
#!/bin/bash
set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() {
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
}
echo "==> Calendar and contacts packages"
paru -S --needed \
paru -S --needed --noconfirm \
vdirsyncer \
khal \
khard \
mu
khard
echo "==> Tangling systemd configs for calendar"
tangle "systemd.org"
echo "==> Enabling vdirsyncer timer"
systemctl --user enable --now vdirsyncer.timer
+1 -1
View File
@@ -8,7 +8,7 @@ tangle() {
}
echo "==> Desktop packages"
paru -S --needed \
paru -S --needed --noconfirm \
i3-wm \
sxhkd \
polybar \
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail
echo "==> Laptop power management"
paru -S --needed \
paru -S --needed --noconfirm \
powertop \
tlp \
thermald
+1 -1
View File
@@ -2,6 +2,6 @@
set -euo pipefail
echo "==> LaTeX packages"
paru -S --needed \
paru -S --needed --noconfirm \
texlive-most tllocalmgr-git \
biber
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail
echo "==> Mail packages"
paru -S --needed \
paru -S --needed --noconfirm \
isync \
msmtp \
neomutt \
+93 -16
View File
@@ -1,32 +1,38 @@
#!/bin/bash
set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() {
emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
}
echo "==> Shell and Terminal"
paru -S --needed \
paru -S --needed --noconfirm \
bash bash-completion zsh \
kitty \
tmux
echo "==> Fonts"
paru -S --needed \
paru -S --needed --noconfirm \
ttf-hack-nerd \
ttf-sourcecodepro-nerd \
adobe-source-code-pro-fonts \
noto-fonts-emoji
echo "==> Text Editors"
paru -S --needed \
paru -S --needed --noconfirm \
neovim python-pynvim nodejs-neovim \
emacs \
aspell aspell-en aspell-fr
echo "==> GnuPG and Pass"
paru -S --needed \
paru -S --needed --noconfirm \
gnupg gnome-keyring \
pass rofi-pass pass-git-helper
echo "==> Window Manager and Desktop"
paru -S --needed \
paru -S --needed --noconfirm \
i3-wm \
sxhkd \
polybar \
@@ -37,10 +43,10 @@ paru -S --needed \
xorg-xrandr arandr
echo "==> File Manager"
paru -S --needed yazi
paru -S --needed --noconfirm yazi
echo "==> Terminal Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
fd ripgrep fzf \
xclip xsel \
atool unzip \
@@ -49,12 +55,12 @@ paru -S --needed \
fastfetch
echo "==> Browser"
paru -S --needed \
paru -S --needed --noconfirm \
qutebrowser python-adblock pdfjs \
firefox-developer-edition passff-host
echo "==> Media"
paru -S --needed \
paru -S --needed --noconfirm \
mpv \
jellyfin-tui \
nsxiv \
@@ -64,13 +70,12 @@ paru -S --needed \
gst-plugins-ugly gst-plugins-good gst-plugins-base-libs gst-plugins-base gst-plugins-bad gst-libav
echo "==> PipeWire"
paru -S --needed \
paru -S --needed --noconfirm \
pipewire pipewire-alsa pipewire-audio pipewire-jack pipewire-pulse \
wireplumber \
pwvucontrol
wireplumber
echo "==> PDF and Image Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
pdf2svg qpdf pdfarranger \
imagemagick \
maim flameshot \
@@ -78,13 +83,13 @@ paru -S --needed \
poppler
echo "==> Office"
paru -S --needed \
paru -S --needed --noconfirm \
onlyoffice-bin \
libreoffice-fresh libreoffice-fresh-fr \
inkscape
echo "==> System Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
udiskie \
blueman \
sshfs \
@@ -99,10 +104,82 @@ paru -S --needed \
gotify-dunst-git \
gomuks \
yt-dlp \
freerdp \
python ipython python-pip
echo "==> Misc Utilities"
paru -S --needed \
paru -S --needed --noconfirm \
xwallpaper \
highlight-pointer-git \
mpd
KEY_FILE="$HOME/.ssh/id_ed25519"
HOMELAB_OK=1
ESRF_OK=1
# Generate main SSH key if it doesn't exist
if [ ! -f "${KEY_FILE}" ]; then
echo ""
echo "==> Generating main SSH key"
read -p "Generate new SSH key at ${KEY_FILE}? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
ssh-keygen -t ed25519 -C "thomas@$(hostname)" -f "${KEY_FILE}" -N ""
else
echo "Skipping SSH key generation"
fi
fi
# Deploy key to a remote host if needed
deploy_ssh_key() {
local host_name="$1"
local remote_host="$2"
local remote_port="${3:-22}"
echo ""
echo "==> Checking SSH key for ${host_name}"
# Check if we can connect without password
if ssh -o BatchMode=yes -o ConnectTimeout=5 -p "${remote_port}" "${remote_host}" exit 2>/dev/null; then
echo "SSH key for ${host_name} is already deployed ✓"
return 0
fi
# Prompt to deploy key
read -p "Deploy SSH key to ${remote_host}? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
ssh-copy-id -i "${KEY_FILE}.pub" -p "${remote_port}" "${remote_host}"
return 0
else
echo "Skipping ${host_name} key deployment"
return 1
fi
}
# Setup homelab
deploy_ssh_key "homelab" "homelab" 22
HOMELAB_OK=$?
# Setup ESRF
deploy_ssh_key "esrf" "dehaeze@firewall.esrf.fr" 8022
ESRF_OK=$?
echo "==> Tangling systemd configs"
tangle "systemd.org"
echo "==> Enabling systemd services"
if [ $HOMELAB_OK -eq 0 ]; then
systemctl --user enable --now homelab-tunnel
else
echo " Skipping homelab-tunnel (SSH key not configured)"
fi
if [ $ESRF_OK -eq 0 ]; then
systemctl --user enable --now esrf-tunnel
else
echo " Skipping esrf-tunnel (SSH key not configured)"
fi
systemctl --user enable --now syncthing
+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
# Tmux Install Script
# :PROPERTIES:
# :header-args:bash: :tangle scripts/install-tmux.sh :shebang "#!/bin/bash" :mkdirp yes
# :END:
# [[file:../tmux.org::*Tmux Install Script][Tmux Install Script:1]]
set -euo pipefail
# Tmux Install Script:1 ends here
# Packages
# [[file:../tmux.org::*Packages][Packages:1]]
echo "==> Tmux packages"
paru -S --needed --noconfirm tmux
# Packages:1 ends here
# Tangle Configuration
# [[file:../tmux.org::*Tangle Configuration][Tangle Configuration:1]]
echo "==> Tangling tmux.org"
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/tmux.org")'
# Tangle Configuration:1 ends here
# Install TPM Plugins
# [[file:../tmux.org::*Install TPM Plugins][Install TPM Plugins:1]]
echo "==> Installing TPM plugins"
if [ ! -d ~/.config/tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
fi
tmux source ~/.config/tmux/tmux.conf
# Install TPM Plugins:1 ends here
+34 -43
View File
@@ -3,6 +3,39 @@
#+PROPERTY: header-args :tangle ~/.config/tmux/tmux.conf
#+PROPERTY: header-args+ :comments both :mkdirp yes
* Tmux Install Script
:PROPERTIES:
:header-args:bash: :tangle scripts/install-tmux.sh :shebang "#!/bin/bash" :mkdirp yes
:END:
#+begin_src bash
set -euo pipefail
#+end_src
** Packages
#+begin_src bash
echo "==> Tmux packages"
paru -S --needed --noconfirm tmux
#+end_src
** Tangle Configuration
#+begin_src bash
echo "==> Tangling tmux.org"
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/tmux.org")'
#+end_src
** Install TPM Plugins
#+begin_src bash
echo "==> Installing TPM plugins"
if [ ! -d ~/.config/tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
fi
tmux source ~/.config/tmux/tmux.conf
#+end_src
* Line
#+begin_src conf
# Activate the status bar
@@ -206,52 +239,10 @@ set-window-option -g aggressive-resize
** Install plugins
#+BEGIN_SRC conf
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sessionist'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'seebi/tmux-colors-solarized'
#+END_SRC
** Configuration
#+BEGIN_SRC conf
# =============================================================
# tmux-resurrect
# =============================================================
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# Restoring pane contents
set -g @resurrect-capture-pane-contents 'on'
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
# =============================================================
# =============================================================
# tmux-continuum
# =============================================================
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm,fullscreen'
set -g @continuum-save-interval '15'
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
# =============================================================
# =============================================================
# tmux-battery
# =============================================================
set -g @batt_charged_icon "="
set -g @batt_charging_icon "+"
set -g @batt_discharging_icon "-"
set -g @batt_attached_icon "o"
# =============================================================
#+END_SRC
* Colors
#+BEGIN_SRC conf
set -g @colors-solarized 'light'
@@ -259,5 +250,5 @@ set -g @colors-solarized 'light'
* Initialize TMUX plugin manager
#+BEGIN_SRC conf
run '~/.tmux/plugins/tpm/tpm'
run '~/.config/tmux/plugins/tpm/tpm'
#+END_SRC
+529 -3
View File
@@ -9,12 +9,11 @@ set connect.host <<get-password(passname="ip/homelab")>>
set connect.port 9091
set connect.tls false
set connect.user tdehaeze
set connect.host <<get-password(passname="nas/transmission")>>
set connect.path /
set connect.url /transmission/
set connect.password <<get-password(passname="nas/transmission")>>
# Update torrent/peer/file/etc lists every 10 seconds
set tui.poll 10
set tui.theme gruvbox.theme
# Tabs
tab ls all --columns size,ratio,status,rate-down,rate-up,%downloaded,name
@@ -30,6 +29,533 @@ set columns.trackers tier domain error last-announce next-announce leeches seeds
set columns.settings name value default description
#+end_src
** Gruvbox Theme
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/stig/gruvbox.theme
# Gruvbox Dark theme for stig
# Based on https://github.com/morhetz/gruvbox
# Background colors
$bg0 = #282828
$bg1 = #32302f
$bg2 = #3c3836
$bg3 = #504945
$bg4 = #665c54
# Foreground colors
$fg0 = #f5f0e1
$fg1 = #ebdbb2
$fg2 = #d5c4a1
$fg3 = #bdae93
$fg4 = #a89984
# Colors
$red = #fb4934
$green = #b8bb26
$yellow = #fabd2f
$blue = #83a598
$purple = #d3869b
$aqua = #8ec07c
$orange = #fe8019
$gray = #928374
cli $fg1 on $bg1
prompt $bg0 on $yellow
find.highlight $bg0 on $yellow
tabs.unfocused $fg4 on $bg0
tabs.focused $bg0 on $fg1
tabs.torrentlist.unfocused $aqua on $bg1
tabs.torrentlist.focused $bg0 on $aqua
tabs.torrentdetails.unfocused $blue on $bg1
tabs.torrentdetails.focused $bg0 on $blue
tabs.filelist.unfocused $purple on $bg1
tabs.filelist.focused $bg0 on $purple
tabs.peerlist.unfocused $green on $bg1
tabs.peerlist.focused $bg0 on $green
tabs.trackerlist.unfocused $fg4 on $bg1
tabs.trackerlist.focused $bg0 on $fg4
tabs.settinglist.unfocused $yellow on $bg0
tabs.settinglist.focused $bg0 on $yellow
tabs.help.unfocused $green on $bg0
tabs.help.focused $bg0 on $green
$topbar_bg = $bg0
topbar $fg3 on $topbar_bg
topbar.host.connected $green on $topbar_bg
topbar.host.connecting $bg0 on $purple
topbar.host.disconnected $bg0 on $red
topbar.help.key $aqua on $topbar_bg
topbar.help.equals $aqua on $topbar_bg
topbar.help.label $aqua on $topbar_bg
topbar.help.space $aqua on $topbar_bg
$bottombar_bg = $bg1
bottombar $fg2 on $bottombar_bg
bottombar.important $red,bold on $bottombar_bg
bottombar.marked $bg0 on $yellow
bottombar.bandwidth.up $green on $bottombar_bg
bottombar.bandwidth.up.highlighted $fg1 on $bottombar_bg
bottombar.bandwidth.down $aqua on $bottombar_bg
bottombar.bandwidth.down.highlighted $fg1 on $bottombar_bg
$log_bg = $bg1
log $fg2 on $log_bg
log.timestamp $aqua on $log_bg
log.info $green on $log_bg
log.error $red,bold on $log_bg
log.debug $yellow on $log_bg
log.dupecount $aqua on $log_bg
log.scrollbar $fg2 on $bg1
$keychains_bg = $bg0
keychains $fg2 on $keychains_bg
keychains.header $fg2 on $bg2
keychains.keys $fg2 on $keychains_bg
keychains.keys.next $yellow on $keychains_bg
keychains.action $fg1 on $keychains_bg
keychains.description $fg1 on $keychains_bg
$completion_bg = $bg1
completion $fg2 on $completion_bg
completion.category $fg2,bold,underline on $completion_bg
completion.item $fg2 on $completion_bg
completion.item.focused $bg0,bold on $yellow
completion.scrollbar $fg2 on $completion_bg
helptext $fg2 on $bg0
helptext.scrollbar $fg2 on $bg1
$tlist_bg.uf = $bg0
$tlist_bg.f = $bg1
torrentlist default on $tlist_bg.uf
torrentlist.focused default on $tlist_bg.f
torrentlist.header $fg4,underline on $tlist_bg.uf
torrentlist.scrollbar $fg4 on $bg1
$id_fg = $fg3
torrentlist.id.header $id_fg,underline on $tlist_bg.uf
torrentlist.id.unfocused $id_fg on $tlist_bg.uf
torrentlist.id.focused $id_fg on $tlist_bg.f
torrentlist.infohash.header $id_fg,underline on $tlist_bg.uf
torrentlist.infohash.unfocused $id_fg on $tlist_bg.uf
torrentlist.infohash.focused $id_fg on $tlist_bg.f
torrentlist.downloaded.header $aqua,underline on $tlist_bg.uf
torrentlist.downloaded.unfocused $aqua on $tlist_bg.uf
torrentlist.downloaded.focused $aqua on $tlist_bg.f
torrentlist.downloaded.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.downloaded.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.uploaded.header $green,underline on $tlist_bg.uf
torrentlist.uploaded.unfocused $green on $tlist_bg.uf
torrentlist.uploaded.focused $green on $tlist_bg.f
torrentlist.uploaded.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.uploaded.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.available.header $blue,underline on $tlist_bg.uf
torrentlist.available.unfocused $blue on $tlist_bg.uf
torrentlist.available.focused $blue on $tlist_bg.f
torrentlist.available.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.available.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.marked.header $fg1,underline on $tlist_bg.uf
torrentlist.marked.unfocused $fg1 on $tlist_bg.uf
torrentlist.marked.focused $fg1 on $tlist_bg.f
torrentlist.path.header $fg3,underline on $tlist_bg.uf
torrentlist.path.unfocused $fg3 on $tlist_bg.uf
torrentlist.path.focused $fg3 on $tlist_bg.f
torrentlist.peers.header $fg3,underline on $tlist_bg.uf
torrentlist.peers.unfocused $fg3 on $tlist_bg.uf
torrentlist.peers.focused $fg3 on $tlist_bg.f
torrentlist.peers.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.peers.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.seeds.header $fg3,underline on $tlist_bg.uf
torrentlist.seeds.unfocused $fg3 on $tlist_bg.uf
torrentlist.seeds.focused $fg3 on $tlist_bg.f
torrentlist.seeds.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.seeds.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.%downloaded.header $blue,underline on $tlist_bg.uf
torrentlist.%downloaded.unfocused $blue on $tlist_bg.uf
torrentlist.%downloaded.focused $blue on $tlist_bg.f
torrentlist.%downloaded.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.%downloaded.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.%available.header $blue,underline on $tlist_bg.uf
torrentlist.%available.unfocused $blue on $tlist_bg.uf
torrentlist.%available.focused $blue on $tlist_bg.f
torrentlist.%available.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.%available.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.rate-down.header $aqua,underline on $tlist_bg.uf
torrentlist.rate-down.unfocused $aqua on $tlist_bg.uf
torrentlist.rate-down.focused $aqua on $tlist_bg.f
torrentlist.rate-down.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.rate-down.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.rate-up.header $green,underline on $tlist_bg.uf
torrentlist.rate-up.unfocused $green on $tlist_bg.uf
torrentlist.rate-up.focused $green on $tlist_bg.f
torrentlist.rate-up.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.rate-up.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.limit-rate-down.header $aqua,underline on $tlist_bg.uf
torrentlist.limit-rate-down.unfocused $aqua on $tlist_bg.uf
torrentlist.limit-rate-down.focused $aqua on $tlist_bg.f
torrentlist.limit-rate-down.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.limit-rate-down.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.limit-rate-up.header $green,underline on $tlist_bg.uf
torrentlist.limit-rate-up.unfocused $green on $tlist_bg.uf
torrentlist.limit-rate-up.focused $green on $tlist_bg.f
torrentlist.limit-rate-up.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.limit-rate-up.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.ratio.header $blue,underline on $tlist_bg.uf
torrentlist.ratio.unfocused $blue on $tlist_bg.uf
torrentlist.ratio.focused $blue on $tlist_bg.f
torrentlist.ratio.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.ratio.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.size.header $purple,underline on $tlist_bg.uf
torrentlist.size.unfocused $purple on $tlist_bg.uf
torrentlist.size.focused $purple on $tlist_bg.f
torrentlist.tracker.header $fg3,underline on $tlist_bg.uf
torrentlist.tracker.unfocused $fg3 on $tlist_bg.uf
torrentlist.tracker.focused $fg3 on $tlist_bg.f
torrentlist.error.header $red,underline on $tlist_bg.uf
torrentlist.error.unfocused $red on $tlist_bg.uf
torrentlist.error.focused $red on $tlist_bg.f
torrentlist.added.header $orange,underline on $tlist_bg.uf
torrentlist.added.unfocused $orange on $tlist_bg.uf
torrentlist.added.focused $orange on $tlist_bg.f
torrentlist.activity.header $orange,underline on $tlist_bg.uf
torrentlist.activity.unfocused $orange on $tlist_bg.uf
torrentlist.activity.focused $orange on $tlist_bg.f
torrentlist.created.header $orange,underline on $tlist_bg.uf
torrentlist.created.unfocused $orange on $tlist_bg.uf
torrentlist.created.focused $orange on $tlist_bg.f
torrentlist.completed.header $yellow,underline on $tlist_bg.uf
torrentlist.completed.unfocused $yellow on $tlist_bg.uf
torrentlist.completed.focused $yellow on $tlist_bg.f
torrentlist.completed.highlighted.unfocused $fg1 on $tlist_bg.uf
torrentlist.completed.highlighted.focused $fg1 on $tlist_bg.f
torrentlist.eta.header $orange,underline on $tlist_bg.uf
torrentlist.eta.unfocused $orange on $tlist_bg.uf
torrentlist.eta.focused $orange on $tlist_bg.f
torrentlist.eta.highlighted.unfocused $yellow on $tlist_bg.uf
torrentlist.eta.highlighted.focused $yellow on $tlist_bg.f
torrentlist.started.header $orange,underline on $tlist_bg.uf
torrentlist.started.unfocused $orange on $tlist_bg.uf
torrentlist.started.focused $orange on $tlist_bg.f
$status.idle_fg = $fg3
$status.downloading_fg = $aqua
$status.uploading_fg = $green
$status.connected_fg = $purple
$status.seeding_fg = $fg3
$status.stopped_fg = $blue
$status.queued_fg = $orange
$status.isolated_fg = $red
$status.verifying_fg = $yellow
$status.discovering_fg = $blue
torrentlist.status.header $status.idle_fg,underline on $tlist_bg.uf
torrentlist.status.idle.unfocused $status.idle_fg on $tlist_bg.uf
torrentlist.status.idle.focused $status.idle_fg on $tlist_bg.f
torrentlist.status.uploading.unfocused $status.uploading_fg on $tlist_bg.uf
torrentlist.status.uploading.focused $status.uploading_fg on $tlist_bg.f
torrentlist.status.downloading.unfocused $status.downloading_fg on $tlist_bg.uf
torrentlist.status.downloading.focused $status.downloading_fg on $tlist_bg.f
torrentlist.status.connected.unfocused $status.connected_fg on $tlist_bg.uf
torrentlist.status.connected.focused $status.connected_fg on $tlist_bg.f
torrentlist.status.seeding.unfocused $status.seeding_fg on $tlist_bg.uf
torrentlist.status.seeding.focused $status.seeding_fg on $tlist_bg.f
torrentlist.status.stopped.unfocused $status.stopped_fg on $tlist_bg.uf
torrentlist.status.stopped.focused $status.stopped_fg on $tlist_bg.f
torrentlist.status.isolated.unfocused $status.isolated_fg on $tlist_bg.uf
torrentlist.status.isolated.focused $status.isolated_fg on $tlist_bg.f
torrentlist.status.queued.unfocused $status.queued_fg on $tlist_bg.uf
torrentlist.status.queued.focused $status.queued_fg on $tlist_bg.f
torrentlist.status.verifying.unfocused $status.verifying_fg on $tlist_bg.uf
torrentlist.status.verifying.focused $status.verifying_fg on $tlist_bg.f
torrentlist.status.discovering.unfocused $status.discovering_fg on $tlist_bg.uf
torrentlist.status.discovering.focused $status.discovering_fg on $tlist_bg.f
$name.idle_fg = $status.idle_fg
torrentlist.name.header $name.idle_fg,underline on $tlist_bg.uf
torrentlist.name.idle.progress1.unfocused $name.idle_fg,underline on $tlist_bg.uf
torrentlist.name.idle.progress1.focused $name.idle_fg,underline on $tlist_bg.f
torrentlist.name.idle.progress2.unfocused $name.idle_fg on $tlist_bg.uf
torrentlist.name.idle.progress2.focused $name.idle_fg on $tlist_bg.f
torrentlist.name.idle.complete.unfocused $name.idle_fg on $tlist_bg.uf
torrentlist.name.idle.complete.focused $name.idle_fg on $tlist_bg.f
$name.seeding_fg = $status.seeding_fg
torrentlist.name.seeding.progress1.unfocused $name.seeding_fg,underline on $tlist_bg.uf
torrentlist.name.seeding.progress1.focused $name.seeding_fg,underline on $tlist_bg.f
torrentlist.name.seeding.progress2.unfocused $name.seeding_fg on $tlist_bg.uf
torrentlist.name.seeding.progress2.focused $name.seeding_fg on $tlist_bg.f
torrentlist.name.seeding.complete.unfocused $name.seeding_fg on $tlist_bg.uf
torrentlist.name.seeding.complete.focused $name.seeding_fg on $tlist_bg.f
$name.uploading_fg = $status.uploading_fg
torrentlist.name.uploading.progress1.unfocused $name.uploading_fg,underline on $tlist_bg.uf
torrentlist.name.uploading.progress1.focused $name.uploading_fg,underline on $tlist_bg.f
torrentlist.name.uploading.progress2.unfocused $name.uploading_fg on $tlist_bg.uf
torrentlist.name.uploading.progress2.focused $name.uploading_fg on $tlist_bg.f
torrentlist.name.uploading.complete.unfocused $name.uploading_fg on $tlist_bg.uf
torrentlist.name.uploading.complete.focused $name.uploading_fg on $tlist_bg.f
$name.downloading_fg = $status.downloading_fg
torrentlist.name.downloading.progress1.unfocused $name.downloading_fg,underline on $tlist_bg.uf
torrentlist.name.downloading.progress1.focused $name.downloading_fg,underline on $tlist_bg.f
torrentlist.name.downloading.progress2.unfocused $name.downloading_fg on $tlist_bg.uf
torrentlist.name.downloading.progress2.focused $name.downloading_fg on $tlist_bg.f
torrentlist.name.downloading.complete.unfocused $name.downloading_fg on $tlist_bg.uf
torrentlist.name.downloading.complete.focused $name.downloading_fg on $tlist_bg.f
$name.isolated_fg = $status.isolated_fg
torrentlist.name.isolated.progress1.unfocused $name.isolated_fg,underline on $tlist_bg.uf
torrentlist.name.isolated.progress1.focused $name.isolated_fg,underline on $tlist_bg.f
torrentlist.name.isolated.progress2.unfocused $name.isolated_fg on $tlist_bg.uf
torrentlist.name.isolated.progress2.focused $name.isolated_fg on $tlist_bg.f
torrentlist.name.isolated.complete.unfocused $name.isolated_fg on $tlist_bg.uf
torrentlist.name.isolated.complete.focused $name.isolated_fg on $tlist_bg.f
$name.connected_fg = $status.connected_fg
torrentlist.name.connected.progress1.unfocused $name.connected_fg,underline on $tlist_bg.uf
torrentlist.name.connected.progress1.focused $name.connected_fg,underline on $tlist_bg.f
torrentlist.name.connected.progress2.unfocused $name.connected_fg on $tlist_bg.uf
torrentlist.name.connected.progress2.focused $name.connected_fg on $tlist_bg.f
torrentlist.name.connected.complete.unfocused $name.connected_fg on $tlist_bg.uf
torrentlist.name.connected.complete.focused $name.connected_fg on $tlist_bg.f
$name.queued_fg = $status.queued_fg
torrentlist.name.queued.progress1.unfocused $name.queued_fg,underline on $tlist_bg.uf
torrentlist.name.queued.progress1.focused $name.queued_fg,underline on $tlist_bg.f
torrentlist.name.queued.progress2.unfocused $name.queued_fg on $tlist_bg.uf
torrentlist.name.queued.progress2.focused $name.queued_fg on $tlist_bg.f
torrentlist.name.queued.complete.unfocused $name.queued_fg on $tlist_bg.uf
torrentlist.name.queued.complete.focused $name.queued_fg on $tlist_bg.f
$name.stopped_fg = $status.stopped_fg
torrentlist.name.stopped.progress1.unfocused $name.stopped_fg,underline on $tlist_bg.uf
torrentlist.name.stopped.progress1.focused $name.stopped_fg,underline on $tlist_bg.f
torrentlist.name.stopped.progress2.unfocused $name.stopped_fg on $tlist_bg.uf
torrentlist.name.stopped.progress2.focused $name.stopped_fg on $tlist_bg.f
torrentlist.name.stopped.complete.unfocused $name.stopped_fg on $tlist_bg.uf
torrentlist.name.stopped.complete.focused $name.stopped_fg on $tlist_bg.f
$name.verifying_fg = $status.verifying_fg
torrentlist.name.verifying.progress1.unfocused $name.verifying_fg,underline on $tlist_bg.uf
torrentlist.name.verifying.progress1.focused $name.verifying_fg,underline on $tlist_bg.f
torrentlist.name.verifying.progress2.unfocused $name.verifying_fg on $tlist_bg.uf
torrentlist.name.verifying.progress2.focused $name.verifying_fg on $tlist_bg.f
torrentlist.name.verifying.complete.unfocused $name.verifying_fg on $tlist_bg.uf
torrentlist.name.verifying.complete.focused $name.verifying_fg on $tlist_bg.f
$name.discovering_fg = $status.discovering_fg
torrentlist.name.discovering.progress1.unfocused $name.discovering_fg,underline on $tlist_bg.uf
torrentlist.name.discovering.progress1.focused $name.discovering_fg,underline on $tlist_bg.f
torrentlist.name.discovering.progress2.unfocused $name.discovering_fg on $tlist_bg.uf
torrentlist.name.discovering.progress2.focused $name.discovering_fg on $tlist_bg.f
torrentlist.name.discovering.complete.unfocused $name.discovering_fg on $tlist_bg.uf
torrentlist.name.discovering.complete.focused $name.discovering_fg on $tlist_bg.f
torrentdetails $fg2 on $bg0
torrentdetails.error $red on $bg0
torrentdetails.scrollbar $fg2 on $bg1
$flist_bg.uf = $bg0
$flist_bg.f = $bg1
filelist default on $flist_bg.uf
filelist.focused default on $flist_bg.f
filelist.header $fg4,underline on $flist_bg.uf
filelist.scrollbar $fg4 on $bg1
filelist.marked.header $fg1,underline on $flist_bg.uf
filelist.marked.unfocused $fg1 on $flist_bg.uf
filelist.marked.focused $fg1 on $flist_bg.f
filelist.name.header $fg4,underline on $flist_bg.uf
filelist.name.file.unfocused $fg3 on $flist_bg.uf
filelist.name.file.focused $fg3 on $flist_bg.f
filelist.name.folder.unfocused $fg1 on $flist_bg.uf
filelist.name.folder.focused $fg1 on $flist_bg.f
filelist.size.header $purple,underline on $flist_bg.uf
filelist.size.unfocused $purple on $flist_bg.uf
filelist.size.focused $purple on $flist_bg.f
filelist.downloaded.header $aqua,underline on $flist_bg.uf
filelist.downloaded.unfocused $aqua on $flist_bg.uf
filelist.downloaded.focused $aqua on $flist_bg.f
filelist.downloaded.highlighted.unfocused $fg1 on $flist_bg.uf
filelist.downloaded.highlighted.focused $fg1 on $flist_bg.f
filelist.%downloaded.header $blue,underline on $flist_bg.uf
filelist.%downloaded.unfocused $blue on $flist_bg.uf
filelist.%downloaded.focused $blue on $flist_bg.f
filelist.%downloaded.highlighted.unfocused $fg1 on $flist_bg.uf
filelist.%downloaded.highlighted.focused $fg1 on $flist_bg.f
filelist.priority.header $orange,underline on $flist_bg.uf
filelist.priority.unfocused $orange on $flist_bg.uf
filelist.priority.focused $orange on $flist_bg.f
filelist.priority.low.unfocused $orange on $flist_bg.uf
filelist.priority.low.focused $orange on $flist_bg.f
filelist.priority.high.unfocused $yellow on $flist_bg.uf
filelist.priority.high.focused $yellow on $flist_bg.f
filelist.priority.off.unfocused $blue on $flist_bg.uf
filelist.priority.off.focused $blue on $flist_bg.f
$plist_bg = $bg0
peerlist default on $plist_bg
peerlist.focused default on $plist_bg
peerlist.header $fg4,underline on $plist_bg
peerlist.scrollbar $fg4 on $bg1
peerlist.torrent.header $fg3,underline on $plist_bg
peerlist.torrent.unfocused $fg3 on $plist_bg
peerlist.host.header $fg3,underline on $plist_bg
peerlist.host.unfocused $fg3 on $plist_bg
peerlist.port.header $fg3,underline on $plist_bg
peerlist.port.unfocused $fg3 on $plist_bg
peerlist.client.header $purple,underline on $plist_bg
peerlist.client.unfocused $purple on $plist_bg
peerlist.%downloaded.header $blue,underline on $plist_bg
peerlist.%downloaded.unfocused $blue on $plist_bg
peerlist.%downloaded.highlighted.unfocused $fg1 on $plist_bg
peerlist.rate-down.header $aqua,underline on $plist_bg
peerlist.rate-down.unfocused $aqua on $plist_bg
peerlist.rate-down.highlighted.unfocused $fg1 on $plist_bg
peerlist.rate-up.header $green,underline on $plist_bg
peerlist.rate-up.unfocused $green on $plist_bg
peerlist.rate-up.highlighted.unfocused $fg1 on $plist_bg
peerlist.rate-est.header $green,underline on $plist_bg
peerlist.rate-est.unfocused $green on $plist_bg
peerlist.rate-est.highlighted.unfocused $fg1 on $plist_bg
peerlist.eta.header $orange,underline on $plist_bg
peerlist.eta.unfocused $orange on $plist_bg
peerlist.eta.highlighted.unfocused $yellow on $plist_bg
$trklist_bg.uf = $bg0
$trklist_bg.f = $bg1
trackerlist default on $trklist_bg.uf
trackerlist.focused default on $trklist_bg.f
trackerlist.header $fg4,underline on $trklist_bg.uf
trackerlist.scrollbar $fg4 on $bg1
trackerlist.torrent.header $fg3,underline on $trklist_bg.uf
trackerlist.torrent.unfocused $fg3 on $trklist_bg.uf
trackerlist.torrent.focused $fg3 on $trklist_bg.f
trackerlist.tier.header $orange,underline on $trklist_bg.uf
trackerlist.tier.unfocused $orange on $trklist_bg.uf
trackerlist.tier.focused $orange on $trklist_bg.f
trackerlist.domain.header $purple,underline on $trklist_bg.uf
trackerlist.domain.unfocused $purple on $trklist_bg.uf
trackerlist.domain.focused $purple on $trklist_bg.f
trackerlist.url-announce.header $blue,underline on $trklist_bg.uf
trackerlist.url-announce.unfocused $blue on $trklist_bg.uf
trackerlist.url-announce.focused $blue on $trklist_bg.f
trackerlist.url-scrape.header $blue,underline on $trklist_bg.uf
trackerlist.url-scrape.unfocused $blue on $trklist_bg.uf
trackerlist.url-scrape.focused $blue on $trklist_bg.f
trackerlist.status.header $aqua,underline on $trklist_bg.uf
trackerlist.status.unfocused $aqua on $trklist_bg.uf
trackerlist.status.focused $aqua on $trklist_bg.f
trackerlist.error.header $red,underline on $trklist_bg.uf
trackerlist.error.unfocused $red on $trklist_bg.uf
trackerlist.error.focused $red on $trklist_bg.f
trackerlist.error-announce.header $red,underline on $trklist_bg.uf
trackerlist.error-announce.unfocused $red on $trklist_bg.uf
trackerlist.error-announce.focused $red on $trklist_bg.f
trackerlist.error-scrape.header $red,underline on $trklist_bg.uf
trackerlist.error-scrape.unfocused $red on $trklist_bg.uf
trackerlist.error-scrape.focused $red on $trklist_bg.f
trackerlist.downloads.header $fg3,underline on $trklist_bg.uf
trackerlist.downloads.unfocused $fg3 on $trklist_bg.uf
trackerlist.downloads.focused $fg3 on $trklist_bg.f
trackerlist.leeches.header $fg3,underline on $trklist_bg.uf
trackerlist.leeches.unfocused $fg3 on $trklist_bg.uf
trackerlist.leeches.focused $fg3 on $trklist_bg.f
trackerlist.seeds.header $fg3,underline on $trklist_bg.uf
trackerlist.seeds.unfocused $fg3 on $trklist_bg.uf
trackerlist.seeds.focused $fg3 on $trklist_bg.f
trackerlist.last-announce.header $fg1,underline on $trklist_bg.uf
trackerlist.last-announce.unfocused $fg1 on $trklist_bg.uf
trackerlist.last-announce.focused $fg1 on $trklist_bg.f
trackerlist.next-announce.header $fg1,underline on $trklist_bg.uf
trackerlist.next-announce.unfocused $fg1 on $trklist_bg.uf
trackerlist.next-announce.focused $fg1 on $trklist_bg.f
trackerlist.last-scrape.header $fg1,underline on $trklist_bg.uf
trackerlist.last-scrape.unfocused $fg1 on $trklist_bg.uf
trackerlist.last-scrape.focused $fg1 on $trklist_bg.f
trackerlist.next-scrape.header $fg1,underline on $trklist_bg.uf
trackerlist.next-scrape.unfocused $fg1 on $trklist_bg.uf
trackerlist.next-scrape.focused $fg1 on $trklist_bg.f
$slist_bg.uf = $bg0
$slist_bg.f = $bg1
settinglist default on $slist_bg.uf
settinglist.focused default on $slist_bg.f
settinglist.header $fg4,underline on $slist_bg.uf
settinglist.scrollbar $fg4 on $bg1
settinglist.name.header $blue,underline on $slist_bg.uf
settinglist.name.unfocused $blue on $slist_bg.uf
settinglist.name.focused $blue on $slist_bg.f
settinglist.value.header $fg3,underline on $slist_bg.uf
settinglist.value.unfocused $fg3 on $slist_bg.uf
settinglist.value.focused $fg3 on $slist_bg.f
settinglist.value.highlighted.unfocused $fg1,bold on $slist_bg.uf
settinglist.value.highlighted.focused $fg1,bold on $slist_bg.f
settinglist.default.header $fg3,underline on $slist_bg.uf
settinglist.default.unfocused $fg3 on $slist_bg.uf
settinglist.default.focused $fg3 on $slist_bg.f
settinglist.description.header $fg3,underline on $slist_bg.uf
settinglist.description.unfocused $fg3 on $slist_bg.uf
settinglist.description.focused $fg3 on $slist_bg.f
#+end_src
* =aria2c= - Lightweight download utility
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export
continue
+1 -1
View File
@@ -19,7 +19,7 @@ DOTFILES="${HOME}/.config/literate-dotfiles"
#+begin_src bash
echo "==> Neovim packages"
paru -S --needed neovim python-pynvim nodejs-neovim
paru -S --needed --noconfirm neovim python-pynvim nodejs-neovim
#+end_src
** vim-plug