add .dwmscripts folder and add bar scripts instead of dwmblocks
This commit is contained in:
parent
07d1966715
commit
84fe623fb0
3 changed files with 17 additions and 13 deletions
|
@ -6,7 +6,7 @@
|
|||
interval=0
|
||||
|
||||
# load colors
|
||||
. ~/.config/chadwm/scripts/bar_themes/onedark
|
||||
. ~/.dwmscripts/themes/onedark
|
||||
|
||||
cpu() {
|
||||
cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
|
||||
|
@ -15,18 +15,6 @@ cpu() {
|
|||
printf "^c$white^ ^b$grey^ $cpu_val"
|
||||
}
|
||||
|
||||
pkg_updates() {
|
||||
#updates=$({ timeout 20 doas xbps-install -un 2>/dev/null || true; } | wc -l) # void
|
||||
updates=$({ timeout 20 checkupdates 2>/dev/null || true; } | wc -l) # arch
|
||||
# updates=$({ timeout 20 aptitude search '~U' 2>/dev/null || true; } | wc -l) # apt (ubuntu, debian etc)
|
||||
|
||||
if [ -z "$updates" ]; then
|
||||
printf " ^c$green^ Fully Updated"
|
||||
else
|
||||
printf " ^c$green^ $updates"" updates"
|
||||
fi
|
||||
}
|
||||
|
||||
battery() {
|
||||
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||
printf "^c$blue^ $get_capacity"
|
||||
|
|
11
config/dwm/scripts/themes/onedark.sh
Normal file
11
config/dwm/scripts/themes/onedark.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/dash
|
||||
|
||||
# colors
|
||||
|
||||
black=#1e222a
|
||||
green=#7eca9c
|
||||
white=#abb2bf
|
||||
grey=#282c34
|
||||
blue=#7aa2f7
|
||||
red=#d47d85
|
||||
darkblue=#668ee3
|
|
@ -57,6 +57,11 @@ in
|
|||
enable = true;
|
||||
source = ../../../config/background.png;
|
||||
};
|
||||
".dwmscripts" = {
|
||||
enable = true;
|
||||
source = ../../../config/dwm/scripts;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
home.pointerCursor = {
|
||||
name = "Catppuccin-Mocha-Dark";
|
||||
|
|
Loading…
Reference in a new issue