Ticker i3block, reminder fish script
kubectl completion.
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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 #
|
||||
|
||||
|
||||
5
dot_config/i3blocks/scripts/executable_ticker
Executable file
5
dot_config/i3blocks/scripts/executable_ticker
Executable 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"
|
||||
@@ -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}]'}
|
||||
|
||||
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user