Ticker i3block, reminder fish script

kubectl completion.
This commit is contained in:
2021-04-17 00:05:07 -04:00
parent 23d1b1ffbd
commit 5c6f1e9a1c
21 changed files with 2018 additions and 107 deletions

View File

@@ -11,17 +11,48 @@ markup=pango
color=#cbe4ff
# ]]] Global properties #
# [ticker]
# label=$
# TICKER=GME
# interval=30
# # interval=10
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[temperature]
label=
interval=5
[cpu_usage]
label=
interval=5
[memory]
label=
# color=#3da061
interval=5
{{ end }}
# ]]] sys.monitoring #
# volume/spotify [[[ #
# [spotify]
# # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
# # label=
# label=
# # label=🎧
# # green
# # color=#198c19
# # aqua
# # color=#2d7272
# interval=5
[spotify]
# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
# label=
label=
# label=🎧
# green
# color=#198c19
# aqua
# color=#2d7272
LONG_NAME=
SHORT_NAME=
interval=5
[volume]
@@ -36,11 +67,12 @@ interval=60
[calendar]
interval=30
label=
{{ if eq .chezmoi.fullHostname "nzxt" }}
DATEFMT=+%H:%M.%a-%m-%d
{{ else }}
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# DATEFMT=+%H:%M.%a-%m-%d
# {{ else }}
# DATEFMT=+%H:%M
# {{ end }}
DATEFMT=+%H:%M
{{ end }}
# SHORTFMT=+%H:%M:%S
SHORTFMT=+%H:%M.%a-%m-%d
HEIGHT=180
@@ -49,9 +81,9 @@ WIDTH=220
# ]]] time #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
[temperature]
label=
interval=5
# [temperature]
# label=
# interval=5
[name]
label=

View File

@@ -13,6 +13,25 @@ color=#cbe4ff
# ]]] global #
# ticker [[[ #
# [ticker]
# label=PEJ
# TICKER=PEJ
# interval=30
[ticker]
label=ADA
TICKER=ADA-USD
interval=30
[ticker]
label=DAQ
TICKER=^IXIC
interval=30
# ]]] ticker #
# volume/spotify [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
@@ -21,10 +40,21 @@ interval=once
signal=1
interval=60
# [spotify]
# label=
# LONG_NAME=
# SHORT_NAME=
# interval=5
[spotify]
# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
# label=
label=
LONG_NAME=
SHORT_NAME=
# label=🎧
# green
# color=#198c19
# aqua
# color=#2d7272
interval=5
{{ end }}
@@ -47,6 +77,13 @@ label=
interval=5
{{ end }}
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# [wifi]
# label=
# instance=wlp4s0
# interval=10
# {{ end }}
# ]]] laptop #
# time [[[ #
@@ -54,11 +91,12 @@ interval=5
[calendar]
interval=30
label=
{{ if eq .chezmoi.fullHostname "nzxt" }}
DATEFMT=+%H:%M
{{ else }}
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# DATEFMT=+%H:%M
# {{ else }}
# DATEFMT=+%H:%M.%a-%m-%d
# {{ end }}
DATEFMT=+%H:%M.%a-%m-%d
{{ end }}
# SHORTFMT=+%H:%M:%S
HEIGHT=180
WIDTH=220
@@ -68,31 +106,19 @@ WIDTH=220
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
# [wifi]
# label=
# instance=wlp4s0
# interval=10
[temperature]
label=
interval=5
# unbold this?
# [load_average]
# label=
# [temperature]
# label=
# interval=5
# color=#990000
{{ end }}
[cpu_usage]
label=
interval=5
{{ if eq .chezmoi.fullHostname "nzxt" }}
[memory]
label=
# color=#3da061
interval=5
# [cpu_usage]
# label=
# interval=5
# [memory]
# label=
# # color=#3da061
# interval=5
# ]]] sys.monitoring #

View File

@@ -0,0 +1,5 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
ticker=$(~/scripts/ticker $TICKER)
printf "%s\n\n%s\n" "$ticker" "$color7"

View File

@@ -32,7 +32,8 @@ SCONTROL=${SCONTROL:-""}
# }}} default vars #
AUDIO_DELTA=${AUDIO_DELTA:-5}
AUDIO_DELTA=${AUDIO_DELTA:-3}
# AUDIO_DELTA=${AUDIO_DELTA:-2}
# AUDIO_DELTA=${AUDIO_DELTA:-1}
# LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'}

View File

@@ -18,7 +18,6 @@
INTERFACE="${BLOCK_INSTANCE:-wlan0}"
# echo $INTERFACE
# INTERFACE="${INSTANCE}"
#------------------------------------------------------------------------
@@ -29,7 +28,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
#------------------------------------------------------------------------
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
# echo $QUALITY
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')