From 6a19cd55d325a0791e6e942d817f33c97180c086 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sun, 12 Apr 2020 19:57:02 +0200 Subject: [PATCH] Add crypto i3blocks --- dotfiles/i3/i3blocks_config | 8 ++++++++ installation_scripts/i3.sh | 15 +++++++++++++++ main_install.sh | 16 ++++++++-------- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/dotfiles/i3/i3blocks_config b/dotfiles/i3/i3blocks_config index bc95deb..db7ee79 100644 --- a/dotfiles/i3/i3blocks_config +++ b/dotfiles/i3/i3blocks_config @@ -38,6 +38,14 @@ BASE_COLOR=#5fff5f UPDATE_COLOR=#ffff85 LABEL= +[ccurrency] +command=scripts/ccurrency -f EUR +interval=5 + +[ccurrency] +command=scripts/ccurrency -f USD +interval=5 + [rofi-calendar] interval=3600 LABEL= diff --git a/installation_scripts/i3.sh b/installation_scripts/i3.sh index d416ef7..65842ba 100644 --- a/installation_scripts/i3.sh +++ b/installation_scripts/i3.sh @@ -41,6 +41,7 @@ if [ -e "$GITHUB_DOTFILES"/i3-starterpack ]; then else cd "$GITHUB_DOTFILES" && git clone https://github.com/addy-dclxvi/i3-starterpack.git fi + if [ -e "$GITHUB_DOTFILES"/i3blocks-contrib ]; then if [ "$UPDATE" = 'true' ]; then cd "$GITHUB_DOTFILES"/i3blocks-contrib && git pull @@ -49,6 +50,14 @@ else cd "$GITHUB_DOTFILES" && git clone https://github.com/vivien/i3blocks-contrib.git fi +if [ -e "$GITHUB_DOTFILES"/i3blocks-cryptocurrency ]; then + if [ "$UPDATE" = 'true' ]; then + cd "$GITHUB_DOTFILES"/i3blocks-cryptocurrency && git pull + fi +else + cd "$GITHUB_DOTFILES" && git clone https://github.com/ryanwalder/i3blocks-cryptocurrency.git +fi + # }}} # Add config links {{{ @@ -105,9 +114,15 @@ mkdir -p ~/.config/i3blocks/scripts if [ ! -L ~/.config/i3blocks/config ]; then ln -rs "$BASE_DIR"/dotfiles/i3/i3blocks_config ~/.config/i3blocks/config 2> /dev/null fi + if [ ! -L ~/.config/i3blocks/scripts/arch-update ]; then ln -rs "$GITHUB_DOTFILES"/i3blocks-contrib/arch-update/arch-update ~/.config/i3blocks/scripts/arch-update 2> /dev/null fi + +if [ ! -L ~/.config/i3blocks/scripts/ccurrency ]; then + ln -rs "$GITHUB_DOTFILES"/i3blocks-cryptocurrency/ccurrency ~/.config/i3blocks/scripts/ccurrency 2> /dev/null +fi + if [ ! -L ~/.config/i3blocks/scripts/rofi-calendar ]; then ln -rs "$GITHUB_DOTFILES"/i3blocks-contrib/rofi-calendar/rofi-calendar ~/.config/i3blocks/scripts/rofi-calendar 2> /dev/null fi diff --git a/main_install.sh b/main_install.sh index b2c88e5..f723b15 100755 --- a/main_install.sh +++ b/main_install.sh @@ -134,7 +134,7 @@ install_scripts() { # {{{ separator } # }}} -install_scripts +# install_scripts update_vim() { # {{{ # Update vim configuration @@ -144,7 +144,7 @@ update_vim() { # {{{ separator } # }}} -update_vim +# update_vim setup_sddm() { # {{{ # Update sddm @@ -154,7 +154,7 @@ setup_sddm() { # {{{ separator } # }}} -setup_sddm +# setup_sddm update_i3() { # {{{ # Update i3 configuration @@ -194,7 +194,7 @@ setup_bash_files() { # {{{ separator } # }}} -setup_bash_files +# setup_bash_files configure_git() { # {{{ # Configure Git @@ -209,7 +209,7 @@ configure_git() { # {{{ separator } # }}} -configure_git +# configure_git install_rust() { # {{{ # Install Rust @@ -231,7 +231,7 @@ install_rust() { # {{{ separator } # }}} -install_rust +# install_rust bash_git_prompt() { # {{{ # Clone bash-git-prompt @@ -249,7 +249,7 @@ bash_git_prompt() { # {{{ separator } # }}} -bash_git_prompt +# bash_git_prompt markdown_mimetype() { # {{{ # Add MIME type for reading .md files in Firefox (need to add extension too) @@ -269,7 +269,7 @@ markdown_mimetype() { # {{{ separator } # }}} -markdown_mimetype +# markdown_mimetype clone_projects() { # {{{ # Clone projects