summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/wal/templates/zathurarc1
-rwxr-xr-x.local/bin/cron/cronbat9
-rwxr-xr-x.local/bin/dmenuunicode2
-rwxr-xr-x.local/bin/ext1
-rwxr-xr-x.local/bin/statusbar/sb-crypto54
-rwxr-xr-x.local/bin/statusbar/sb-forecast2
-rw-r--r--.local/share/larbs/getkeys/i348
-rw-r--r--FUNDING.yml2
8 files changed, 5 insertions, 114 deletions
diff --git a/.config/wal/templates/zathurarc b/.config/wal/templates/zathurarc
index 242bf9a..a12bbd3 100644
--- a/.config/wal/templates/zathurarc
+++ b/.config/wal/templates/zathurarc
@@ -2,6 +2,7 @@ set sandbox none
set statusbar-h-padding 0
set statusbar-v-padding 0
set page-padding 1
+set selection-clipboard clipboard
map u scroll half-up
map d scroll half-down
map D toggle_page_mode
diff --git a/.local/bin/cron/cronbat b/.local/bin/cron/cronbat
deleted file mode 100755
index bd953c7..0000000
--- a/.local/bin/cron/cronbat
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# Notify me with notify-send if my battery is below 25%.
-# You can set this to run via cron.
-
-[ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && exit
-[ "$(cat /sys/class/power_supply/BAT0/capacity)" -lt 25 ] &&
-export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus &&
-notify-send -u critical "Battery critically low."
diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode
index de1421b..7d9a4ea 100755
--- a/.local/bin/dmenuunicode
+++ b/.local/bin/dmenuunicode
@@ -13,6 +13,6 @@ chosen=$(cut -d ';' -f1 ~/.local/share/larbs/emoji | dmenu -i -l 30 | sed "s/ .*
if [ -n "$1" ]; then
xdotool type "$chosen"
else
- echo "$chosen" | tr -d '\n' | xclip -selection clipboard
+ printf "$chosen" | xclip -selection clipboard
notify-send "'$chosen' copied to clipboard." &
fi
diff --git a/.local/bin/ext b/.local/bin/ext
index 806ce5e..927fb5b 100755
--- a/.local/bin/ext
+++ b/.local/bin/ext
@@ -27,6 +27,7 @@ if [ -f "$archive" ] ; then
*.tar.bz2|*.tbz2) tar xvjf "$archive" ;;
*.tar.xz) tar -xf "$archive" ;;
*.tar.gz|*.tgz) tar xvzf "$archive" ;;
+ *.tar.zst) tar -I zstd -xf "$archive" ;;
*.lzma) unlzma "$archive" ;;
*.bz2) bunzip2 "$archive" ;;
*.rar) unrar x -ad "$archive" ;;
diff --git a/.local/bin/statusbar/sb-crypto b/.local/bin/statusbar/sb-crypto
deleted file mode 100755
index 94ed949..0000000
--- a/.local/bin/statusbar/sb-crypto
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# Shows the price for desired cryptocurrencies. Module updates automatically
-# every calendar day, but can also be updated with a middle click.
-
-# Currencies should be ;-separated:
-# human-readable name;urlname;icon
-coins="Bitcoin;btc;💰
-Etherium;eth;🍸
-Basic Attention Token;bat;🦁
-LBC;lbc;📚"
-
-# Directory where currency info is stored.
-dir="${XDG_DATA_HOME:-$HOME/.local/share}/crypto-prices"
-
-getprices() { # The command to get the desired prices
- printf "🔃 "; printprices
- { rm -rf "${dir:?}/*"
- echo "$coins" | while IFS=';' read -r human web icon; do
- val="$(curl -s "rate.sx/1$web")" &&
- echo "$icon;$val;$human" > "$dir/$web"
- done; [ -d "$dir" ] && touch "$dir"
- pkill -RTMIN+13 "${STATUSBAR:-dwmblocks}" ;} &
- exit
- }
-
-printprices() { # Print/format all prices
- for x in "$dir"/*; do
- [ -f "$x" ] || break
- info="$(cut -d';' -f-2 --output-delimiter=' ' "$x")"
- printf "%s$%0.2f " "$info"
- done | sed 's/ $/\n/'
- }
-
-[ ! -d "$dir" ] && mkdir -p "$dir" && { getprices; exit ;}
-
-# If currencies haven't been updated today, try to update them.
-[ "$(stat -c %x "$HOME/.local/share/crypto-prices" | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] &&
- { ping -q -c 1 example.org >/dev/null 2>&1 && getprices || exit ;}
-
-case $BLOCK_BUTTON in
- 1) uptime="$(date -d "$(stat -c %x "$dir")" '+%D at %T' | sed "s|$(date '+%D')|Today|")"
- notify-send "Exact prices in USD" "$(awk -F';' '{print $1, $3 ":\n\t$" $2}' "$dir"/*)
-<b>Last updated:</b>
- $uptime" ;;
- 2) getprices ;;
- 3) notify-send "💸 Crypto-currency module" "\- Left click for exact prices.
-- Middle click to update.
-- Shows 🔃 if updating prices.
-- Manually add/remove currencies to list in the script." ;;
- 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
-printprices
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast
index 6652edd..7b8416e 100755
--- a/.local/bin/statusbar/sb-forecast
+++ b/.local/bin/statusbar/sb-forecast
@@ -14,7 +14,7 @@ getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;}
# display them with coresponding emojis.
showweather() { printf "%s" "$(sed '16q;d' "$weatherreport" |
grep -wo "[0-9]*%" | sort -rn | sed "s/^/☔/g;1q" | tr -d '\n')"
-sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶" $1 "°","🌞" $2 "°"}' ;}
+sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶" $1 "°","🌞" $2 "°"}' ;}
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e less -Srf "$weatherreport" ;;
diff --git a/.local/share/larbs/getkeys/i3 b/.local/share/larbs/getkeys/i3
deleted file mode 100644
index 695744a..0000000
--- a/.local/share/larbs/getkeys/i3
+++ /dev/null
@@ -1,48 +0,0 @@
- _ _____
-(_)___ /
-| | |_ \
-| |___) |
-|_|____/
-i3 is the window manager.
-For a full readme, press super+F1.
-This is a partial key list.
- esc left workspace exit i3
- tab last workspace
- - - vol -- vol
- _ - vol -- vol
- = + vol ++ vol
- + + vol ++ vol
- q kill win kill win
- w nmtui (wlan) browser
- e neomutt tutorials
- r ranger winresize
- t toggle hor/vert gaps=15px
- y calcurse resize left
- u dropdown term resize down
- i htop resize up
- o sticky win resize right
- p pause music pause A/V
- [ back 10 secs back 2 min
- ] forward 10 secs forward 2 min
- \ last workspace
- a calculator audio control
- s + inner gaps - inner gaps
- d dmenu remove gaps
- f fullscreen freeze mode
- g left workspace GIMP
- h focus left move win left
- j focus down move win down
- k focus up move win up
- l focus right move win right
- ; right workspace
- ' fast right win
- z + outer gaps - outer gaps
- x lock screen shutdown
- c webcam
- v open Vimwiki
- b bar on/off stick/float win (left)
- n newsboat stick/float win (right)
- m ncmpcpp mute audio
- , < previous song restart song
- . > next song
- / ? fast win below kill win
diff --git a/FUNDING.yml b/FUNDING.yml
index ec61a8b..c7c9a22 100644
--- a/FUNDING.yml
+++ b/FUNDING.yml
@@ -1,2 +1,2 @@
-custom: ["https://lukesmith.xyz/donate.html", "https://lukesmith.xyz/crypto.html"]
+custom: ["https://lukesmith.xyz/donate.html"]
github: lukesmithxyz