Battery script
This commit is contained in:
		@ -117,6 +117,7 @@ if ! shopt -oq posix; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
export PATH=$PATH:$HOME/go/bin
 | 
			
		||||
export PATH=$PATH:$HOME/bin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
eval "$(zoxide init bash)"
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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'
 | 
			
		||||
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
{
 | 
			
		||||
  "LazyVim": { "branch": "main", "commit": "ec5981dfb1222c3bf246d9bcaa713d5cfa486fbd" },
 | 
			
		||||
  "LazyVim": { "branch": "main", "commit": "3f034d0a7f58031123300309f2efd3bb0356ee21" },
 | 
			
		||||
  "blink.cmp": { "branch": "main", "commit": "49f211fe5d729df53df4c042d7c3464cf47d199e" },
 | 
			
		||||
  "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
 | 
			
		||||
  "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
 | 
			
		||||
  "conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" },
 | 
			
		||||
  "conform.nvim": { "branch": "master", "commit": "b1a75324ddf96b7bb84963a297b1ed334db087c0" },
 | 
			
		||||
  "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
 | 
			
		||||
  "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
 | 
			
		||||
  "gitsigns.nvim": { "branch": "main", "commit": "3c76f7fabac723aa682365ef782f88a83ccdb4ac" },
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
  "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
 | 
			
		||||
  "nvim-lint": { "branch": "master", "commit": "93b8040115c9114dac1047311763bef275e752dc" },
 | 
			
		||||
  "nvim-lspconfig": { "branch": "master", "commit": "ff6471d4f837354d8257dfa326b031dd8858b16e" },
 | 
			
		||||
  "nvim-treesitter": { "branch": "master", "commit": "9df671fda41bc4af91b9f7ea3fa1628ba988a77b" },
 | 
			
		||||
  "nvim-treesitter": { "branch": "master", "commit": "9be6836ebeb88a536055bf1ce0961eef68da4bc6" },
 | 
			
		||||
  "nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" },
 | 
			
		||||
  "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
 | 
			
		||||
  "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user