Battery script

This commit is contained in:
2025-04-08 06:36:33 +03:00
parent e9305858a5
commit 6dae1f8976
4 changed files with 20 additions and 13 deletions

View File

@ -62,7 +62,7 @@ bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
bindsym $mod+d exec "rofi -modi drun,run -show drun"
bindsym $mod+d exec --no-startup-id "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop

View File

@ -10,20 +10,26 @@
separator=true
separator_block_width=15
[documentation]
full_text=Documentation
website=https://vivien.github.io/i3blocks
command=xdg-open "$website"
color=#f12711
[battery1]
command=~/.dotfiles/bin/battery 0
interval=30
[battery2]
command=~/.dotfiles/bin/battery 1
interval=30
[tailscale]
command=echo TS: $(ip a show tailscale0 | rg "inet (\d+\.\d+\.\d+\.\d+)" -or '$1')
interval=30
[greetings]
color=#f5af19
command=echo "Hello, $USER!"
interval=once
[wthr]
command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
interval=3600
[layout]
command=/usr/lib/i3blocks/key_layout/key_layout
label=lang:
interval=1
[time]
command=date '+%Y-%m-%d %H:%M:%S'