diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /eww/scripts | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'eww/scripts')
-rwxr-xr-x | eww/scripts/audio | 15 | ||||
-rwxr-xr-x | eww/scripts/backlight | 2 | ||||
-rwxr-xr-x | eww/scripts/fetch | 34 | ||||
-rwxr-xr-x | eww/scripts/system | 44 | ||||
-rwxr-xr-x | eww/scripts/wifi | 4 |
5 files changed, 0 insertions, 99 deletions
diff --git a/eww/scripts/audio b/eww/scripts/audio deleted file mode 100755 index 570d80e..0000000 --- a/eww/scripts/audio +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -headvol() { - amixer sget Headphone | grep 'Left:' | cut -d\ -f7 | tr -d '[%]' -} - -mastervol() { - amixer get Master | awk '$0~/%/{print $4}' | tr -d '[%]' -} - -micvol() { - amixer sget Mic | grep 'Left:' | cut -d\ -f7 | tr -d '[%]' -} - -"$@" diff --git a/eww/scripts/backlight b/eww/scripts/backlight deleted file mode 100755 index 4f03d54..0000000 --- a/eww/scripts/backlight +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -printf "%.0f\n" $(xbacklight -get) diff --git a/eww/scripts/fetch b/eww/scripts/fetch deleted file mode 100755 index 931bf30..0000000 --- a/eww/scripts/fetch +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -os() { - source /etc/os-release - echo $PRETTY_NAME | awk '{print $1;}' - -} - -wm() { - wm=$XDG_CURRENT_DESKTOP - [ "$wm" ] || wm=$DESKTOP_SESSION - - ## WM/DE - [ ! "$wm" ] && - # loop over all processes and check the binary name - for i in /proc/*/comm; do - read -r c <"$i" - case $c in - *bar*) ;; - awesome | xmonad* | qtile | sway | i3 | [bfo]*box | *wm*) - wm=${c%%-*} - break - ;; - esac - done - - echo $wm -} - -shell() { - basename $SHELL -} - -"$@" diff --git a/eww/scripts/system b/eww/scripts/system deleted file mode 100755 index d1cba41..0000000 --- a/eww/scripts/system +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -pkgCount() { - xbps-query -l | wc -l -} - -pkgUpdates() { - updates=$(xbps-install -S -un | cut -d' ' -f2 | sort | uniq -c | xargs) - - if [ -z "$updates" ]; then - echo "Fully Updated" - else - echo " $updates""s" - fi -} - -battery() { - cat /sys/class/power_supply/BAT1/capacity -} - -cpu() { - grep -o "^[^ ]*" /proc/loadavg -} - -disk() { - df -hl | awk '/^\/dev\/sd[ab]/ { sum+=$5 } END { print sum }' -} - -ram() { - printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}') -} - -backlight() { - printf "%.0f\n" $(xbacklight -get) -} - -wifi() { - case "$(cat /sys/class/net/wl*/operstate 2>/dev/null)" in - up) printf "" ;; - down) printf "" ;; - esac -} - -"$@" diff --git a/eww/scripts/wifi b/eww/scripts/wifi deleted file mode 100755 index ae6fe2f..0000000 --- a/eww/scripts/wifi +++ /dev/null @@ -1,4 +0,0 @@ - case "$(cat /sys/class/net/wl*/operstate 2>/dev/null)" in - up) printf "" ;; - down) printf "" ;; - esac |