arnaucube
arnaucube/configsPublic Self-hosted repository
add dap-update script, add i3 & alacritty shortcut for bold font
arnaucube git@arnaucube.com
Mon, 10 Feb 2025 23:19:52 +0100
commit

3c9f625688a6649068f290d31b6bd6ba672a3edb

parent

1a1e3c7242c20b262ef50de3c259ca83c522c7df

M alacritty/alacritty.toml → alacritty/alacritty.toml

@@ -15,7 +15,7 @@ style = "MediumItalic"

[font.normal] family = "terminus" -style = "Regular" +style = "Regular"#tag_for_shortcut [[keyboard.bindings]] action = "SpawnNewInstance"
A bin/dap-update

@@ -0,0 +1,12 @@

+#!/usr/bin/env bash +# + + +DEVICE_PATH=$1 + +if [ -z $DEVICE_PATH ] ; then + echo "missing 1st argument (DEVICE_PATH), ie. where to download the files" + exit 1 +fi + +rsync -avz --progress --ignore-existing tele-rpi5:/mnt/usb/audio/ $DEVICE_PATH
M i3/config → i3/config

@@ -180,6 +180,10 @@ # having installed feh (sudo apt install feh)

exec feh --bg-fill ~/Sync-tablet/wallpapers/geometry02_croped1920x1080.png exec xmodmap .Xmodmap +# shortcut to switch regular/bold font in alacritty configuration +bindsym $mod+Control+b exec sed -i 's/\"Regular\"#tag_for_shortcut/\"Bold\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml +bindsym $mod+Control+Shift+b exec sed -i 's/\"Bold\"#tag_for_shortcut/\"Regular\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml + # move current workspace to another display bindsym $mod+Control+k move workspace to output HDMI-1 # bindsym $mod+Control+k move workspace to output DP-1
M init.vim → init.vim

@@ -98,6 +98,7 @@ " rustup component add rust-analyzer

" focus mode Plug 'junegunn/goyo.vim' +Plug 'szw/vim-maximizer' " use `CTRL+w; m` to maximize panel " vimwiki Plug 'vimwiki/vimwiki'

@@ -109,8 +110,8 @@ Plug 'tomasr/molokai'

Plug 'srcery-colors/srcery-vim' Plug 'rakr/vim-one' Plug 'morhetz/gruvbox' - -Plug 'szw/vim-maximizer' +Plug 'noahfrederick/vim-hemisu' +Plug 'JaySandhu/xcode-vim' call plug#end()
M nixos/common-configuration.nix → nixos/common-configuration.nix

@@ -100,6 +100,7 @@ vlc

feh kolourpaint calibre + tauon # browsers firefox
A raspberry/metrics.md

@@ -0,0 +1,28 @@

+# prometheus + graphana to monitor node +*(src: https://theawesomegarage.com/blog/monitor-your-raspberry-pi-with-prometheus-and-grafana)* + +``` +sudo apt install prometheus + +sudo apt-get install prometheus-node-exporter +``` + +now visiting http://localhost:9100/metrics should return metrics + +start the prometheus-node-exporter: +``` +sudo systemctl enable prometheus-node-exporter +sudo systemctl start prometheus-node-exporter +``` + +for monitoring too the mounted devices (ie. usb): +edit `/etc/default/prometheus-node-exporter`: +``` +ARGS="--collector.filesystem.mount-points-exclude="^/(dev|proc|run|sys|mnt|var/lib/docker/.+)($|/)"" +``` + +restart the service: +`sudo systemctl restart prometheus-node-exporter` + + +Install Graphana: https://grafana.com/docs/grafana/latest/setup-grafana/installation/
M zathurarc → zathurarc

@@ -1,3 +1,3 @@

" this file goes at ~/.config/zathura/zathurarc -map <C-o> exec "zathura $FILE" +map <C-O> exec "zathura $FILE"