From d53f638563de439158e7afbb72073eae445a6ce9 Mon Sep 17 00:00:00 2001 From: Marcin Wozniak Date: Sat, 25 May 2019 00:43:55 +0200 Subject: [PATCH] Added files --- config.h | 5 ++- dwm | Bin 64152 -> 64184 bytes dwm.o | Bin 72008 -> 72072 bytes dwm_status | 95 ++++++++++++++++++++++++++++++++--------------------- 4 files changed, 59 insertions(+), 41 deletions(-) diff --git a/config.h b/config.h index 099e0a0..5b8aad6 100644 --- a/config.h +++ b/config.h @@ -8,8 +8,7 @@ static const unsigned int systraypinning = 0; /* 0: sloppy systray follows sel static const unsigned int systrayspacing = 2; /* systray spacing */ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ static const int showsystray = 1; /* 0 means no systray */ -/*static const char *fonts[] = {"monospace:size=14", "noto color emoji"};*/ -static const char *fonts[] = { "monospace:size=14", "Font Awesome 5 Free Solid:size=14" }; +static const char *fonts[] = { "monospace:size=15", "Font Awesome 5 Free Solid:size=15"}; static const char dmenufont[] = "monospace:size=14"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -117,7 +116,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, /* { MODKEY|ShiftMask, XK_q, spawn, {.v = dwmkill } }, */ - { MODKEY, XK_k, spawn, {.v = qalculategtk }}, + { MODKEY, XK_k, spawn, SHCMD ("qalculate-gtk")}, { MODKEY, XK_r, spawn, {.v = ranger }}, { MODKEY, XK_m, spawn, {.v = cmusshell }}, { MODKEY, XK_F4, spawn, {.v = dmenumount }}, diff --git a/dwm b/dwm index 6f8131769bda18d773d2647ddc9a9dbf004e6e62..543c991f8b11640e3684a662af258784d04818aa 100755 GIT binary patch delta 7286 zcmZWu3tUuH{=a8%YM@vKbs9mDhaeyzOdrQ2nuL||Vnab#q2>e46%Z4YQAiOK5wF)N z@aNlnYuUf2jizW4h52ZESej{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//'`" - if test -z "$ESSID" - then - echo -e "" - else - echo -e " $ESSID" - fi -} +# ESSID="`iw dev wlan0 link | grep SSID| sed -r 's/SSID://' | sed -e 's/^[ \t]*//'`" +# if test -z "$ESSID" +# then +# echo -e "" +# else +# echo -e " $ESSID" +# fi + +[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" + +[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }') + +printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" -print_mem(){ - memfree=$(($(grep -m1 'MemAvailable:' /proc/meminfo | awk '{print $2}') / 1024)) - echo -e "$memfree" } print_temp(){ echo -e " $(sensors | awk '/Core 0/ {print $3}') +$(nvidia-smi -q -d temperature | grep -i "GPU Current" |sed -r 's/GPU Current Temp ://'| sed -r 's/ C//' |sed -e 's/^[ \t]*//').0°C" } -print_bat(){ - hash acpi || return 0 - onl="$(grep "on-line" <(acpi -V))" - charge="$(awk '{ sum += $1 } END { print sum }' /sys/class/power_supply/BAT*/capacity)" - if test -z "$onl" - then - # suspend when we close the lid - #systemctl --user stop inhibit-lid-sleep-on-battery.service - if [ "$charge" -ge 75 ]; then - echo -e " ${charge}%" - elif [ "$charge" -ge 50 ]; then - echo -e " ${charge}%" - elif [ "$charge" -ge 25 ]; then - echo -e " ${charge}%" - else - echo -e " !${charge}%" - fi - else - # On mains! no need to suspend - #systemctl --user start inhibit-lid-sleep-on-battery.service - echo -e " ${charge}%" - fi -} - - print_date(){ echo -e " $(date +"%m-%e %H:%M")" } @@ -80,6 +57,48 @@ print_mail(){ fi } +batLevel() { + # Find the battery level + hash acpi || return 0 + onl="$(acpi -V | grep "on-line")" + charge="$(cat /sys/class/power_supply/BAT*/capacity)" + + # Determine battery glyph by percentage range + if [[ -z $onl && ${charge} -gt 80 ]]; then + echo -e " ${charge}%" + elif [[ -z $onl && ${charge} -le 80 && ${charge} -gt 60 ]]; then + echo -e " ${charge}%" + elif [[ -z $onl && ${charge} -le 60 && ${charge} -gt 40 ]]; then + echo -e " ${charge}%" + elif [[ -z $onl && ${charge} -le 40 && ${charge} -gt 20 ]]; then + echo -e " ${charge}%" + elif [[ -z $onl && ${charge} -le 20 ]]; then + echo -e " ${charge}%" + # If charging, use animated glyph + else + echo -e "" + fi +} + +usageData() { + # Calculate CPU percentage + read cpu a b c pi rest < /proc/stat + pt=$((a+b+c+pi)) + sleep 0.1 + read cpu a b c i rest < /proc/stat + t=$((a+b+c+i)) + cpuUse=$((100*( (t-pt) - (i-pi) ) / (t-pt) )) + + # Find RAM use + # As "A/B" + ramUseA=$(free -m -h | grep Mem | awk '{print $3"/"$2}') + # As percentage + ramPer=$(free -m | grep Mem | awk '{print 100*($3/$2)}') + ramUseB="${ramPer%.*}" + + echo -e " $cpuUse%  $ramUseB%" +} + echo AUTOSTART feh --bg-fill $HOME/.wall.jpg & xset s off -dpms& @@ -108,14 +127,14 @@ do vel_recv=$(get_velocity $received_bytes $old_received_bytes $now) vel_trans=$(get_velocity $transmitted_bytes $old_transmitted_bytes $now) - xsetroot -name "$(print_temp)  $(sh /home/yorune/dwm/weather.sh) $(print_wifi) $(print_bat) $(print_volume) $(print_date)" + xsetroot -name "$(print_temp) | $(usageData) |  $(sh /home/yorune/dwm/weather.sh) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)" # Update old values to perform new calculations old_received_bytes=$received_bytes old_transmitted_bytes=$transmitted_bytes old_time=$now - sleep 1 + sleep 2 done