add dap-update script, add i3 & alacritty shortcut for bold font

This commit is contained in:
2025-02-10 23:19:52 +01:00
parent 1a1e3c7242
commit 3c9f625688
7 changed files with 50 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ style = "MediumItalic"
[font.normal] [font.normal]
family = "terminus" family = "terminus"
style = "Regular" style = "Regular"#tag_for_shortcut
[[keyboard.bindings]] [[keyboard.bindings]]
action = "SpawnNewInstance" action = "SpawnNewInstance"

12
bin/dap-update Executable file
View File

@@ -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

View File

@@ -180,6 +180,10 @@ for_window [window_role="alert"] floating enable
exec feh --bg-fill ~/Sync-tablet/wallpapers/geometry02_croped1920x1080.png exec feh --bg-fill ~/Sync-tablet/wallpapers/geometry02_croped1920x1080.png
exec xmodmap .Xmodmap 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 # move current workspace to another display
bindsym $mod+Control+k move workspace to output HDMI-1 bindsym $mod+Control+k move workspace to output HDMI-1
# bindsym $mod+Control+k move workspace to output DP-1 # bindsym $mod+Control+k move workspace to output DP-1

View File

@@ -98,6 +98,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
" focus mode " focus mode
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plug 'szw/vim-maximizer' " use `CTRL+w; m` to maximize panel
" vimwiki " vimwiki
Plug 'vimwiki/vimwiki' Plug 'vimwiki/vimwiki'
@@ -109,8 +110,8 @@ Plug 'tomasr/molokai'
Plug 'srcery-colors/srcery-vim' Plug 'srcery-colors/srcery-vim'
Plug 'rakr/vim-one' Plug 'rakr/vim-one'
Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'noahfrederick/vim-hemisu'
Plug 'szw/vim-maximizer' Plug 'JaySandhu/xcode-vim'
call plug#end() call plug#end()

View File

@@ -100,6 +100,7 @@
feh feh
kolourpaint kolourpaint
calibre calibre
tauon
# browsers # browsers
firefox firefox

28
raspberry/metrics.md Normal file
View File

@@ -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/

View File

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