summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-10-13 15:53:27 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-10-13 15:53:27 -0400
commit7c231155cecfa1964b3b9c7153a166cbeb9efa8b (patch)
treea99b2ce3e2ea28c13ea5b62060ea924952bcfa99 /.local/bin
parentab1ca121adbeb0340e6c96267565866e99875261 (diff)
Debloat dwmblocks
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/dwmbar/dwmb-debarque26
-rwxr-xr-x.local/bin/dwmbar/dwmb-internet10
-rwxr-xr-x.local/bin/dwmbar/dwmb-layout3
-rwxr-xr-x.local/bin/dwmbar/dwmb-news9
-rwxr-xr-x.local/bin/dwmbar/dwmb-test6
5 files changed, 2 insertions, 52 deletions
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