stuff
This commit is contained in:
parent
5179c46042
commit
a2245d53d8
|
@ -30,6 +30,7 @@ bindsym $mod+Up exec --no-startup-id mpc volume +5
|
|||
bindsym $mod+Down exec --no-startup-id mpc volume -5
|
||||
bindsym $mod+o exec --no-startup-id alacritty -e ncmpcpp
|
||||
exec --no-startup-id /home/naiji/.local/bin/update-now-playing
|
||||
exec --no-startup-id /home/naiji/.local/bin/update-monero-price
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ general {
|
|||
# order += "ipv6"
|
||||
order += "read_file now-playing"
|
||||
order += "read_file reminder"
|
||||
order += "read_file now-monero"
|
||||
order += "volume master"
|
||||
order += "wireless _first_"
|
||||
order += "cpu_usage"
|
||||
|
@ -37,6 +38,10 @@ read_file "now-playing" {
|
|||
path = "/home/naiji/.local/share/i3status/now-playing"
|
||||
}
|
||||
|
||||
read_file "now-monero" {
|
||||
path = "/home/naiji/.local/share/i3status/now-monero"
|
||||
}
|
||||
|
||||
cpu_usage {
|
||||
format = " cpu %usage "
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
Loading…
Reference in New Issue