From 7c231155cecfa1964b3b9c7153a166cbeb9efa8b Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 13 Oct 2023 15:53:27 -0400 Subject: Debloat dwmblocks --- .local/bin/dwmbar/dwmb-debarque | 26 -------------------------- .local/bin/dwmbar/dwmb-internet | 10 ---------- .local/bin/dwmbar/dwmb-layout | 3 ++- .local/bin/dwmbar/dwmb-news | 9 --------- .local/bin/dwmbar/dwmb-test | 6 ------ 5 files changed, 2 insertions(+), 52 deletions(-) delete mode 100755 .local/bin/dwmbar/dwmb-debarque delete mode 100755 .local/bin/dwmbar/dwmb-internet delete mode 100755 .local/bin/dwmbar/dwmb-news delete mode 100755 .local/bin/dwmbar/dwmb-test (limited to '.local/bin') diff --git a/.local/bin/dwmbar/dwmb-debarque b/.local/bin/dwmbar/dwmb-debarque deleted file mode 100755 index 79fc346..0000000 --- a/.local/bin/dwmbar/dwmb-debarque +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# count="$(curl https://www.ladebarque.com/achalandage | - # grep 'il y a' | - # sed 's/.*il\sy\sa\sen\sce\smoment\s//; s/\sgrimpeurs.*//')" - -count="$(curl -L ladebarque.com/achalandage | - grep -i 'moment' | - sed 's/\s//g; - s/Maximum.*//; - s/^.*moment//; - s/\([0-9]\+\).*/\1/')" - -# curl https://www.ladebarque.com/achalandage > ~/asdf.html - -sep="," -date="$(TZ='America/Toronto' date +"%Y-%m-%d$sep%R")" -entry=""$date"$sep"$count"" - -case "$1" in - write) echo "$entry" >> $HOME/.cache/debarque.csv ;; - *) echo "  $count " ;; -esac - - -# echo "$entry" diff --git a/.local/bin/dwmbar/dwmb-internet b/.local/bin/dwmbar/dwmb-internet deleted file mode 100755 index 102a6a4..0000000 --- a/.local/bin/dwmbar/dwmb-internet +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -case "$(cat /sys/class/net/wlp0s20f3/operstate)" in - up) echo "  " ;; - down) echo "  " ;; -esac - -#  -#  -#  diff --git a/.local/bin/dwmbar/dwmb-layout b/.local/bin/dwmbar/dwmb-layout index a8dbbe3..e0cf446 100755 --- a/.local/bin/dwmbar/dwmb-layout +++ b/.local/bin/dwmbar/dwmb-layout @@ -1,6 +1,7 @@ #!/bin/sh -echo "  $(cat $HOME/.cache/layout) " +# echo "  $(cat $HOME/.cache/layout) " +echo " $(cat $HOME/.cache/layout) " case $BLOCK_BUTTON in 1) layouttoggle ;; 2) remaps && Capslock remaps reinitialized;; diff --git a/.local/bin/dwmbar/dwmb-news b/.local/bin/dwmbar/dwmb-news deleted file mode 100755 index b62c576..0000000 --- a/.local/bin/dwmbar/dwmb-news +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -nb=$(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) ") -echo " $nb" -case $BLOCK_BUTTON in - 1) "$TERMINAL" -e newsboat ;; - 3) newsup ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac diff --git a/.local/bin/dwmbar/dwmb-test b/.local/bin/dwmbar/dwmb-test deleted file mode 100755 index 7508072..0000000 --- a/.local/bin/dwmbar/dwmb-test +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 99 | head -n 1 -case $BLOCK_BUTTON in - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac \ No newline at end of file -- cgit v1.2.3