Kraken ticker i3block

This commit is contained in:
2023-03-30 08:33:32 -04:00
parent e2a9e753ff
commit 1afe9d05a4
15 changed files with 112 additions and 95 deletions

View File

@@ -27,7 +27,7 @@ abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
# system [[[
set -x HASTE_SERVER https://pste.gq
{{ if eq .chezmoi.hostname "nzxt" }}
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
# set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
{{ end }}
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x GOPATH ~/go
@@ -70,12 +70,15 @@ set -xU XSET_DELAY 200
xset r rate $XSET_DELAY $XSET_RATE
{{ end }}#]]]
# [[[ universal var's #
set -xU BROWSER "firefox"
# set -U BROWSER "chromium"
set -xU FZF_DEFAULT_COMMAND "find ."
set -x PHONE_IP "192.168.0.12"
set -x LAPTOP_IP "192.168.0.19"
set -x PHONE_IP "192.168.0.13"
set -x PIXEL_IP "192.168.0.18"
set -x WORK_LAPTOP_IP "kmok@192.168.0.11"
@@ -92,6 +95,8 @@ set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
set -x FLASK_DEBUG 1
set -x DB_NAME "covid_monitor"
set -x FULLNODE_API_INFO wss://api.chain.love
# ]]] universal var's #
# fish-specific [[[ #
@@ -182,6 +187,7 @@ abbr ff "fzf-cd"
# abbr fr "fzf-ranger"
abbr fv "fzf-vim"
abbr fvft "find-vim-filetype"
abbr gif "video-to-gif"
# git [[[ #
abbr gcamp "git-amend-push"
@@ -239,6 +245,7 @@ abbr wga "wget-all"
abbr wag "watson-add-game"
abbr waf "watson-add-game fortnite"
abbr wap "watson-add-game pokemon-go"
abbr wgn "wget-name"
abbr xya "export-pkgs"
# school [[[ #

View File

@@ -0,0 +1,4 @@
function video-to-gif
# ffmpeg -i $argv[1] -filter_complex "[0:v]setpts=0.5*PTS,fps=24,split [a][b];[a] palettegen [p];[b][p] paletteuse" $argv[2]
ffmpeg -i $argv[1] -filter_complex "[0:v]fps=24,split [a][b];[a] palettegen [p];[b][p] paletteuse" $argv[2]
end

View File

@@ -0,0 +1,3 @@
function wget-name
wget $argv[1] -O $argv[2]
end

View File

@@ -463,7 +463,8 @@ set $ws11 "11 "
workspace $ws11 output $secondary
# bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM
bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach obs'
# bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
bindsym Control+Shift+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk
# bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m
# bindsym Mod4+a workspace $ws11; exec antimicro

View File

@@ -17,21 +17,41 @@ color=#cbe4ff
{{ if eq .chezmoi.hostname "nzxt" }}
# [ticker]
# label=SOL
# TICKER=SOL-USD
# interval=30
[kraken]
label=ARB
TICKER=ARBUSD
interval=30
# [ticker]
# label=ETH
# TICKER=ETH-USD
# interval=30
[kraken]
label=ETH
TICKER=ETHUSDC
interval=30
[kraken]
label=BLUR
TICKER=BLURUSD
interval=30
# [ticker]
# label=SPY
# TICKER=SPY
# interval=30
# [ticker]
# label=BTC
# TICKER=BTC-USD
# interval=30
[ticker]
label=SOL
TICKER=SOL-USD
interval=30
[ticker]
label=ETH
TICKER=ETH-USD
interval=30
# [ticker]
# label=DAQ
# TICKER=^IXIC

View File

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

View File

@@ -15,12 +15,12 @@ Ctrl+RIGHT no-osd seek 0.2 exact
Ctrl+LEFT no-osd seek -0.2 exact
Shift+RIGHT no-osd seek 1 exact
Shift+LEFT no-osd seek -1 exact
RIGHT seek 3
LEFT seek -3
UP seek 10
DOWN seek -10
Shift+UP seek 60
Shift+DOWN seek -60
RIGHT seek 3 exact
LEFT seek -3 exact
UP seek 10 exact
DOWN seek -10 exact
Shift+UP seek 60 exact
Shift+DOWN seek -60 exact
# mark
m revert-seek mark # mark position for revert-seek

View File

@@ -1,16 +0,0 @@
audio.play_bitrate_non_metered_migrated=true
audio.sync_bitrate_enumeration=4
audio.crossfade_v2=true
gaia.attached_device_id="6ca6cdc7bc677d43534460982c3a13959dd1939c"
audio.play_bitrate_enumeration=4
ui.hide_hpto=true
ui.track_notifications_enabled=false
audio.play_bitrate_non_metered_enumeration=4
audio.normalize_v2=false
ui.show_friend_feed=false
app.player.volume=40000
{{ if eq .chezmoi.hostname "x1-carbon" }}
app.browser.zoom-level=300
{{ else }}
app.browser.zoom-level=75
{{ end }}