Browse Source

rm un-needed files

siduck76 4 years ago
parent
commit
98678d9637
2 changed files with 0 additions and 136 deletions
  1. 0 68
      chadwm/themes/nord_bar
  2. 0 68
      chadwm/themes/onedark_bar

+ 0 - 68
chadwm/themes/nord_bar

@@ -1,68 +0,0 @@
-#!/bin/bash
-
-interval=0
-
-cpu() {
-  cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
-
-  printf "^c#3b414d^ ^b#A3BE8C^ CPU"
-  printf "^c#abb2bf^ ^b#414753^ $cpu_val"
-}
-
-update_icon() {
-  printf "^c#94af7d^ "
-}
-
-pkg_updates() {
-  updates=$(doas xbps-install -un | wc -l) # void
-  # updates=$(checkupdates | wc -l)   # arch , needs pacman contrib
-  # updates=$(aptitude search '~U' | wc -l)  # apt (ubuntu,debian etc)
-
-  if [ -z "$updates" ]; then
-    printf "^c#94af7d^ Fully Updated"
-  else
-    printf "^c#94af7d^ $updates"" updates"
-  fi
-}
-
-# battery
-batt() {
-  printf "^c#81A1C1^  "
-  printf "^c#81A1C1^ $(acpi | sed "s/,//g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n")"
-}
-
-brightness() {
-
-  backlight() {
-    backlight="$(xbacklight -get)"
-    echo -e "$backlight"
-  }
-
-  printf "^c#BF616A^   "
-  printf "^c#BF616A^%.0f\n" $(backlight)
-}
-
-mem() {
-  printf "^c#7797b7^^b#2E3440^  "
-  printf "^c#7797b7^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
-}
-
-wlan() {
-  case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
-  up) printf "^c#3b414d^ ^b#7681c5^ 󰤨 ^d^%s" " ^c#828dd1^Connected" ;;
-  down) printf "^c#3b414d^ ^b#7681c5^ 󰤭 ^d^%s" " ^c#828dd1^Disconnected" ;;
-  esac
-}
-
-clock() {
-  printf "^c#2E3440^ ^b#828dd1^ 󱑆 "
-  printf "^c#2E3440^^b#6c77bb^ $(date '+%a, %I:%M %p') "
-}
-
-while true; do
-
-  [ $interval == 0 ] || [ $(($interval % 3600)) == 0 ] && updates=$(pkg_updates)
-  interval=$((interval + 1))
-
-  sleep 1 && xsetroot -name "$(update_icon) $updates $(batt) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
-done

+ 0 - 68
chadwm/themes/onedark_bar

@@ -1,68 +0,0 @@
-#!/bin/bash
-
-interval=0
-
-cpu() {
-  cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
-
-  printf "^c#3b414d^ ^b#7ec7a2^ CPU"
-  printf "^c#abb2bf^ ^b#353b45^ $cpu_val"
-}
-
-update_icon() {
-  printf "^c#7ec7a2^ "
-}
-
-pkg_updates() {
-  updates=$(doas xbps-install -un | wc -l) # void
-  # updates=$(checkupdates | wc -l)   # arch , needs pacman contrib
-  # updates=$(aptitude search '~U' | wc -l)  # apt (ubuntu,debian etc)
-
-  if [ -z "$updates" ]; then
-    printf "^c#7ec7a2^ Fully Updated"
-  else
-    printf "^c#7ec7a2^ $updates"" updates"
-  fi
-}
-
-# battery
-batt() {
-  printf "^c#81A1C1^  "
-  printf "^c#81A1C1^ $(acpi | sed "s/,//g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n")"
-}
-
-brightness() {
-
-  backlight() {
-    backlight="$(xbacklight -get)"
-    echo -e "$backlight"
-  }
-
-  printf "^c#BF616A^   "
-  printf "^c#BF616A^%.0f\n" $(backlight)
-}
-
-mem() {
-  printf "^c#7797b7^^b#1e222a^  "
-  printf "^c#7797b7^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
-}
-
-wlan() {
-  case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
-  up) printf "^c#3b414d^ ^b#7aa2f7^ 󰤨 ^d^%s" " ^c#7aa2f7^Connected" ;;
-  down) printf "^c#3b414d^ ^b#7aa2f7^ 󰤭 ^d^%s" " ^c#7aa2f7^Disconnected" ;;
-  esac
-}
-
-clock() {
-  printf "^c#1e222a^ ^b#668ee3^ 󱑆 "
-  printf "^c#1e222a^^b#7aa2f7^ $(date '+%a, %I:%M %p') "
-}
-
-while true; do
-
-  [ $interval == 0 ] || [ $(($interval % 3600)) == 0 ] && updates=$(pkg_updates)
-  interval=$((interval + 1))
-
-  sleep 1 && xsetroot -name "$(update_icon) $updates $(batt) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
-done