+ Use dwmblocks on dwm
+ Added free disks indicator to polybar + Trying out lfimg (Buggy) + Rework rateUSD + Rework PATH, now detect any subdir inside .local/bin + lf now can be accessed inside vim
This commit is contained in:
parent
5d3f85eb80
commit
57c06d99ce
7 changed files with 49 additions and 16 deletions
|
@ -106,7 +106,7 @@ font-8 = "Iosevka Nerd Font:bold:style=solid:size=8;2"
|
|||
; ----------------------------------------------------------------------------------------
|
||||
modules-left = bspwm dividerS wirednetwork temp dividerS
|
||||
modules-center = date
|
||||
modules-right = dividerS player-mpris-tail player-mpris mpd volume battery dividerS prompt
|
||||
modules-right = dividerS disk player-mpris-tail player-mpris mpd volume battery dividerS prompt
|
||||
; ----------------------------------------------------------------------------------------
|
||||
|
||||
tray-detached = false
|
||||
|
@ -537,7 +537,7 @@ full-at = 99
|
|||
|
||||
; Use the following command to list batteries and adapters:
|
||||
; $ ls -1 /sys/class/power_supply/
|
||||
battery = BAT0
|
||||
battery = BAT*
|
||||
adapter = ADP1
|
||||
|
||||
poll-interval = 5
|
||||
|
@ -609,3 +609,15 @@ ramp-1 =
|
|||
ramp-2 =
|
||||
ramp-foreground = ${colors.secondary1L2}
|
||||
|
||||
|
||||
[module/disk]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/disk.sh
|
||||
tail = true
|
||||
label-font = 3
|
||||
label-foreground = ${colors.foreground}
|
||||
format-prefix = " "
|
||||
format-prefix-font = "5"
|
||||
format-foreground = ${colors.spotgreen}
|
||||
format-background = ${colors.background}
|
||||
format-padding = 1
|
||||
|
|
8
.config/polybar/scripts/disk.sh
Executable file
8
.config/polybar/scripts/disk.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
capacity=$(df -h --output=source,avail /home | grep -A1 '/' | sed "s/^.* //;s/[[:alpha:]]//")
|
||||
warn=""
|
||||
if [ $capacity -lt 71 ]; then warn='!'; fi
|
||||
|
||||
printf "%s%s" "$warn " "$(echo $capacity | sed "s/$/G free/")"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue