add .dwmscripts folder and add bar scripts instead of dwmblocks

This commit is contained in:
Sakooooo 2023-08-03 17:42:16 +03:00
parent 07d1966715
commit 84fe623fb0
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 17 additions and 13 deletions

View file

@ -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"

View file

@ -0,0 +1,11 @@
#!/bin/dash
# colors
black=#1e222a
green=#7eca9c
white=#abb2bf
grey=#282c34
blue=#7aa2f7
red=#d47d85
darkblue=#668ee3

View file

@ -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";