From 126a81335653989e1ba5e0e7cd57ce5cda74c596 Mon Sep 17 00:00:00 2001 From: steveokard Date: Fri, 6 Jan 2023 23:05:51 -0500 Subject: [PATCH] starship config --- config/.config/mc/ini | 2 +- config/.config/starship.toml | 46 +++++++++++++++++++++++++++ scripts/server_bin/dedup_twitter.sh | 16 ++++++++++ scripts/server_bin/update_mastodon.sh | 2 +- 4 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 config/.config/starship.toml create mode 100755 scripts/server_bin/dedup_twitter.sh diff --git a/config/.config/mc/ini b/config/.config/mc/ini index 792dd37..7a993bb 100644 --- a/config/.config/mc/ini +++ b/config/.config/mc/ini @@ -88,7 +88,7 @@ shadows=true [Layout] output_lines=0 -left_panel_size=55 +left_panel_size=53 top_panel_size=0 message_visible=true keybar_visible=true diff --git a/config/.config/starship.toml b/config/.config/starship.toml new file mode 100644 index 0000000..9636f52 --- /dev/null +++ b/config/.config/starship.toml @@ -0,0 +1,46 @@ +format = """ +$username\ +$hostname\ +$directory\ +$git_branch\ +$git_state\ +$git_status\ +$cmd_duration\ +$line_break\ +$python\ +$character""" + +[directory] +style = "blue" + +[character] +success_symbol = "[❯](purple)" +error_symbol = "[❯](red)" +vimcmd_symbol = "[❮](green)" + +[git_branch] +format = "[$branch]($style)" +style = "bright-black" + +[git_status] +format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)" +style = "cyan" +conflicted = "​" +untracked = "​" +modified = "​" +staged = "​" +renamed = "​" +deleted = "​" +stashed = "≡" + +[git_state] +format = '\([$state( $progress_current/$progress_total)]($style)\) ' +style = "bright-black" + +[cmd_duration] +format = "[$duration]($style) " +style = "yellow" + +[python] +format = "[$virtualenv]($style) " +style = "bright-black" diff --git a/scripts/server_bin/dedup_twitter.sh b/scripts/server_bin/dedup_twitter.sh new file mode 100755 index 0000000..9f9cac8 --- /dev/null +++ b/scripts/server_bin/dedup_twitter.sh @@ -0,0 +1,16 @@ +#!/bin/bash +N=6 +df > ~/before_df.txt +cd $HOME/gallery-dl/twitter +for i in */; do + echo ">> $i" + (jdupes -LN $i) & + if [[ $(jobs -r -p | wc -l) -ge $N ]]; then + wait -n + fi +done +wait +echo "======COMPLETE=======" +echo "Before:" +cat ~/before_df.txt +df diff --git a/scripts/server_bin/update_mastodon.sh b/scripts/server_bin/update_mastodon.sh index 2e08b53..1f809b4 100755 --- a/scripts/server_bin/update_mastodon.sh +++ b/scripts/server_bin/update_mastodon.sh @@ -5,5 +5,5 @@ sleep 60 gallery-dl --sleep 12-16 --abort 2 "mastodon:https://yiff.life/@PupShadowNH@woof.group" echo "wait" sleep 60 - +gallery-dl --sleep 12-16 --abort 2 "mastodon:https://yiff.life/@KubiBun@meow.social" ─┘ echo "done!"