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
|
||||
LABEL=
|
||||
|
||||
[ccurrency]
|
||||
command=scripts/ccurrency -f EUR
|
||||
interval=5
|
||||
|
||||
[ccurrency]
|
||||
command=scripts/ccurrency -f USD
|
||||
interval=5
|
||||
|
||||
[rofi-calendar]
|
||||
interval=3600
|
||||
LABEL=
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue