aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/awesome/rc.lua8
-rwxr-xr-x.local/bin/awesome-widgets/widget-RAM3
-rwxr-xr-x.local/bin/awesome-widgets/widget-cpu_usage31
-rwxr-xr-x.local/bin/awesome-widgets/widget-disks13
-rwxr-xr-x.local/bin/awesome-widgets/widget-newsboat6
-rwxr-xr-x.local/bin/awesome-widgets/widget-sensors3
-rwxr-xr-x.local/bin/awesome-widgets/widget-weather3
7 files changed, 0 insertions, 67 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index ae2431b..f7c8bbf 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -255,14 +255,6 @@ awful.screen.connect_for_each_screen(function(s)
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
- -- awful.widget.watch('sh -c "~/.local/bin/awesome-widgets/widget-cpu_usage"', 5),
- -- awful.widget.watch('sh -c "~/.local/bin/awesome-widgets/widget-sensors"', 60),
- -- awful.widget.watch('sh -c "~/.local/bin/awesome-widgets/widget-RAM"', 30),
- -- awful.widget.watch('sh -c "~/.local/bin/awesome-widgets/widget-disks /home"', 300),
- -- awful.widget.watch('sh -c "~/.local/bin/awesome-widgets/widget-newsboat"', 600),
- -- wibox.widget.textbox(" "),
- -- awful.widget.watch('sh -c ~/.local/bin/awesome-widgets/widget-weather', 3600),
- -- wibox.widget.textbox(" 🌐"),
mykeyboardlayout,
wibox.widget.systray(),
mytextclock,
diff --git a/.local/bin/awesome-widgets/widget-RAM b/.local/bin/awesome-widgets/widget-RAM
deleted file mode 100755
index add3ca2..0000000
--- a/.local/bin/awesome-widgets/widget-RAM
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-free --mebi | sed -n '2{p;q}' | awk '{printf (" 🐏 %2.1fG/%2.0fG\n", ( $3 / 1024), ($2 / 1024))}'
diff --git a/.local/bin/awesome-widgets/widget-cpu_usage b/.local/bin/awesome-widgets/widget-cpu_usage
deleted file mode 100755
index 4be33eb..0000000
--- a/.local/bin/awesome-widgets/widget-cpu_usage
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# Cache in tmpfs to improve speed and reduce SSD load
-cache=/tmp/cpubarscache
-
-stats=$(awk '/cpu[0-7]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat)
-[ ! -f $cache ] && echo "$stats" > "$cache"
-old=$(cat "$cache")
-printf " 🫀 "
-echo "$stats" | while read -r row; do
- id=${row%% *}
- rest=${row#* }
- total=${rest%% *}
- idle=${rest##* }
-
- case "$(echo "$old" | awk '{if ($1 == id)
- printf "%d\n", (1 - (idle - $3) / (total - $2))*100 /12.5}' \
- id="$id" total="$total" idle="$idle")" in
-
- "0") printf "▁";;
- "1") printf "▂";;
- "2") printf "▃";;
- "3") printf "▄";;
- "4") printf "▅";;
- "5") printf "▆";;
- "6") printf "▇";;
- "7") printf "█";;
- "8") printf "█";;
- esac
-done; printf "\\n"
-echo "$stats" > "$cache"
diff --git a/.local/bin/awesome-widgets/widget-disks b/.local/bin/awesome-widgets/widget-disks
deleted file mode 100755
index d0fab3c..0000000
--- a/.local/bin/awesome-widgets/widget-disks
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-location=${1:-/}
-
-[ -d "$location" ] || exit
-
-case "$location" in
- "/home"* ) icon="🏠" ;;
- "/run/media"* ) icon="💾" ;;
- *) icon="🖥";;
-esac
-
-printf "%s%s" " $icon " "$(df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2 " "} ')"
diff --git a/.local/bin/awesome-widgets/widget-newsboat b/.local/bin/awesome-widgets/widget-newsboat
deleted file mode 100755
index c8303b7..0000000
--- a/.local/bin/awesome-widgets/widget-newsboat
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-if ! pgrep -x "newsboat" > /dev/null; then
- newsboat -x reload
- cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " 📰 " $1 }')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)"
-fi
diff --git a/.local/bin/awesome-widgets/widget-sensors b/.local/bin/awesome-widgets/widget-sensors
deleted file mode 100755
index 248acc0..0000000
--- a/.local/bin/awesome-widgets/widget-sensors
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-sensors -f | awk '/Core 0/ {print " 🌡" $3}'
diff --git a/.local/bin/awesome-widgets/widget-weather b/.local/bin/awesome-widgets/widget-weather
deleted file mode 100755
index d48599e..0000000
--- a/.local/bin/awesome-widgets/widget-weather
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-curl -s wttr.in/?format=%c%t