mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-09 20:16:40 +01:00
add dap-update script, add i3 & alacritty shortcut for bold font
This commit is contained in:
@@ -15,7 +15,7 @@ style = "MediumItalic"
|
||||
|
||||
[font.normal]
|
||||
family = "terminus"
|
||||
style = "Regular"
|
||||
style = "Regular"#tag_for_shortcut
|
||||
|
||||
[[keyboard.bindings]]
|
||||
action = "SpawnNewInstance"
|
||||
|
||||
12
bin/dap-update
Executable file
12
bin/dap-update
Executable 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
|
||||
@@ -180,6 +180,10 @@ for_window [window_role="alert"] floating enable
|
||||
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
|
||||
|
||||
5
init.vim
5
init.vim
@@ -98,6 +98,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
||||
" 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()
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
feh
|
||||
kolourpaint
|
||||
calibre
|
||||
tauon
|
||||
|
||||
# browsers
|
||||
firefox
|
||||
|
||||
28
raspberry/metrics.md
Normal file
28
raspberry/metrics.md
Normal 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/
|
||||
Reference in New Issue
Block a user