This commit is contained in:
NaiJi ✨ 2025-05-06 20:20:18 -04:00
parent cfa03950fa
commit a55137cb22
12 changed files with 14 additions and 27 deletions

View File

@ -16,8 +16,7 @@ general {
} }
# order += "ipv6" # order += "ipv6"
order += "read_file now-playing" order += "read_file now-playing"
order += "read_file reminder" order += "read_file now-crypto"
order += "read_file now-monero"
order += "volume master" order += "volume master"
order += "wireless _first_" order += "wireless _first_"
order += "cpu_usage" order += "cpu_usage"
@ -30,16 +29,12 @@ order += "disk /home/naiji/Mounts/hdd2/"
order += "memory" order += "memory"
order += "tztime local" order += "tztime local"
read_file "reminder" {
path = "/home/naiji/.local/share/i3status/reminder"
}
read_file "now-playing" { read_file "now-playing" {
path = "/home/naiji/.local/share/i3status/now-playing" path = "/home/naiji/.local/share/i3status/now-playing"
} }
read_file "now-monero" { read_file "now-crypto" {
path = "/home/naiji/.local/share/i3status/now-monero" path = "/home/naiji/.local/share/i3status/now-crypto"
} }
cpu_usage { cpu_usage {

View File

@ -4,3 +4,4 @@ https://pencil.toast.cafe/yu-gi-oh-colors/feed/
https://pencil.toast.cafe/bunker-labs/feed/ https://pencil.toast.cafe/bunker-labs/feed/
https://selfprivacy.org/blog/index.xml https://selfprivacy.org/blog/index.xml
https://lukesmith.xyz/index.xml https://lukesmith.xyz/index.xml
https://blog.waifuism.life/index.xml

View File

@ -78,12 +78,6 @@ Include = /etc/pacman.d/mirrorlist
[extra] [extra]
Include = /etc/pacman.d/mirrorlist Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system, # If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here. # enable the multilib repositories as required here.

9
.local/bin/update-crypto-price Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
while :
do
current_btc="$(curl -sSL 'https://mempool.space/api/v1/prices' | jq '.USD')"
echo " btc: $current_btc " > /home/naiji/.local/share/i3status/now-crypto
sleep 3600
done

View File

@ -1,12 +0,0 @@
#!/bin/sh
while :
do
current="$(curl https://api.nanopool.org/v1/xmr/prices | jq | grep usd | cut -d ':' -f 2 | cut -d ',' -f 1)"
if [ -n "$current" ]
then
echo " xmr:$current " > /home/naiji/.local/share/i3status/now-monero
fi
sleep 3600
done

View File

@ -2,7 +2,7 @@
while : while :
do do
current="$(mpc current)" current="$(mpc current -f '%title%')"
if [ -n "$current" ] if [ -n "$current" ]
then then
echo "$(echo "$current" | awk '{ if ( length($0) > 80 ) { printf substr($0, 1, 80); print "..." } else { print $0; }}') " >/home/naiji/.local/share/i3status/now-playing echo "$(echo "$current" | awk '{ if ( length($0) > 80 ) { printf substr($0, 1, 80); print "..." } else { print $0; }}') " >/home/naiji/.local/share/i3status/now-playing

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB