Add crypto i3blocks
This commit is contained in:
parent
17a891cd5f
commit
6a19cd55d3
3 changed files with 31 additions and 8 deletions
|
@ -38,6 +38,14 @@ BASE_COLOR=#5fff5f
|
||||||
UPDATE_COLOR=#ffff85
|
UPDATE_COLOR=#ffff85
|
||||||
LABEL=
|
LABEL=
|
||||||
|
|
||||||
|
[ccurrency]
|
||||||
|
command=scripts/ccurrency -f EUR
|
||||||
|
interval=5
|
||||||
|
|
||||||
|
[ccurrency]
|
||||||
|
command=scripts/ccurrency -f USD
|
||||||
|
interval=5
|
||||||
|
|
||||||
[rofi-calendar]
|
[rofi-calendar]
|
||||||
interval=3600
|
interval=3600
|
||||||
LABEL=
|
LABEL=
|
||||||
|
|
|
@ -41,6 +41,7 @@ if [ -e "$GITHUB_DOTFILES"/i3-starterpack ]; then
|
||||||
else
|
else
|
||||||
cd "$GITHUB_DOTFILES" && git clone https://github.com/addy-dclxvi/i3-starterpack.git
|
cd "$GITHUB_DOTFILES" && git clone https://github.com/addy-dclxvi/i3-starterpack.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "$GITHUB_DOTFILES"/i3blocks-contrib ]; then
|
if [ -e "$GITHUB_DOTFILES"/i3blocks-contrib ]; then
|
||||||
if [ "$UPDATE" = 'true' ]; then
|
if [ "$UPDATE" = 'true' ]; then
|
||||||
cd "$GITHUB_DOTFILES"/i3blocks-contrib && git pull
|
cd "$GITHUB_DOTFILES"/i3blocks-contrib && git pull
|
||||||
|
@ -49,6 +50,14 @@ else
|
||||||
cd "$GITHUB_DOTFILES" && git clone https://github.com/vivien/i3blocks-contrib.git
|
cd "$GITHUB_DOTFILES" && git clone https://github.com/vivien/i3blocks-contrib.git
|
||||||
fi
|
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 {{{
|
# Add config links {{{
|
||||||
|
@ -105,9 +114,15 @@ mkdir -p ~/.config/i3blocks/scripts
|
||||||
if [ ! -L ~/.config/i3blocks/config ]; then
|
if [ ! -L ~/.config/i3blocks/config ]; then
|
||||||
ln -rs "$BASE_DIR"/dotfiles/i3/i3blocks_config ~/.config/i3blocks/config 2> /dev/null
|
ln -rs "$BASE_DIR"/dotfiles/i3/i3blocks_config ~/.config/i3blocks/config 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -L ~/.config/i3blocks/scripts/arch-update ]; then
|
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
|
ln -rs "$GITHUB_DOTFILES"/i3blocks-contrib/arch-update/arch-update ~/.config/i3blocks/scripts/arch-update 2> /dev/null
|
||||||
fi
|
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
|
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
|
ln -rs "$GITHUB_DOTFILES"/i3blocks-contrib/rofi-calendar/rofi-calendar ~/.config/i3blocks/scripts/rofi-calendar 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -134,7 +134,7 @@ install_scripts() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
install_scripts
|
# install_scripts
|
||||||
|
|
||||||
update_vim() { # {{{
|
update_vim() { # {{{
|
||||||
# Update vim configuration
|
# Update vim configuration
|
||||||
|
@ -144,7 +144,7 @@ update_vim() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
update_vim
|
# update_vim
|
||||||
|
|
||||||
setup_sddm() { # {{{
|
setup_sddm() { # {{{
|
||||||
# Update sddm
|
# Update sddm
|
||||||
|
@ -154,7 +154,7 @@ setup_sddm() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
setup_sddm
|
# setup_sddm
|
||||||
|
|
||||||
update_i3() { # {{{
|
update_i3() { # {{{
|
||||||
# Update i3 configuration
|
# Update i3 configuration
|
||||||
|
@ -194,7 +194,7 @@ setup_bash_files() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
setup_bash_files
|
# setup_bash_files
|
||||||
|
|
||||||
configure_git() { # {{{
|
configure_git() { # {{{
|
||||||
# Configure Git
|
# Configure Git
|
||||||
|
@ -209,7 +209,7 @@ configure_git() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
configure_git
|
# configure_git
|
||||||
|
|
||||||
install_rust() { # {{{
|
install_rust() { # {{{
|
||||||
# Install Rust
|
# Install Rust
|
||||||
|
@ -231,7 +231,7 @@ install_rust() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
install_rust
|
# install_rust
|
||||||
|
|
||||||
bash_git_prompt() { # {{{
|
bash_git_prompt() { # {{{
|
||||||
# Clone bash-git-prompt
|
# Clone bash-git-prompt
|
||||||
|
@ -249,7 +249,7 @@ bash_git_prompt() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
bash_git_prompt
|
# bash_git_prompt
|
||||||
|
|
||||||
markdown_mimetype() { # {{{
|
markdown_mimetype() { # {{{
|
||||||
# Add MIME type for reading .md files in Firefox (need to add extension too)
|
# Add MIME type for reading .md files in Firefox (need to add extension too)
|
||||||
|
@ -269,7 +269,7 @@ markdown_mimetype() { # {{{
|
||||||
separator
|
separator
|
||||||
|
|
||||||
} # }}}
|
} # }}}
|
||||||
markdown_mimetype
|
# markdown_mimetype
|
||||||
|
|
||||||
clone_projects() { # {{{
|
clone_projects() { # {{{
|
||||||
# Clone projects
|
# Clone projects
|
||||||
|
|
Loading…
Add table
Reference in a new issue