Added new theme that tells you when you're sshed!! Also, fixed the wallpaper generator
This commit is contained in:
parent
cea8ede6d9
commit
65459dff07
@ -192,7 +192,7 @@ bindsym $mod+Shift+0 move container to workspace 10
|
|||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+r reload
|
bindsym $mod+Shift+r reload
|
||||||
# To initialize wallpapers, run:
|
# To initialize wallpapers, run:
|
||||||
# mkdir -p ~/.i3/wall ; cp ~/source ~/.i3/wall ; cd ~/.i3/wall ; rename -v 's/(.* )+//' * ; mogrify -resize `xrandr -q|perl -F'\s|,' -lane "/^Sc/&&print join '',@F[8..10]"`^ -verbose -gravity center -format png ; rm *.jpg *.jpeg
|
# mkdir -p ~/.i3/wall ; cp ~/source ~/.i3/wall ; cd ~/.i3/wall ; rename -v 's/(.* )+//' * ; mogrify -resize `xrandr -q|perl -F'\s|,' -lane "/^Sc/&&print join '',@F[8..10]"`^ -verbose -gravity center -format png * ; rm *.jpg ; rm *.jpeg
|
||||||
bindsym $mod+grave exec "i3lock -i `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`; sleep 60; pgrep i3lock && xset dpms force off"
|
bindsym $mod+grave exec "i3lock -i `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`; sleep 60; pgrep i3lock && xset dpms force off"
|
||||||
bindsym $mod+Shift+grave exec "sudo pm-suspend | i3lock -i `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`"
|
bindsym $mod+Shift+grave exec "sudo pm-suspend | i3lock -i `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`"
|
||||||
# Tees the filename to /tmp/wall for debugging
|
# Tees the filename to /tmp/wall for debugging
|
@ -59,9 +59,9 @@ while getopts ":hbsdtclw" VALUE "$@"; do
|
|||||||
if [ "$VALUE" = "c" ] ; then
|
if [ "$VALUE" = "c" ] ; then
|
||||||
echo "Syncing config files"
|
echo "Syncing config files"
|
||||||
if which trash >/dev/null; then
|
if which trash >/dev/null; then
|
||||||
trash ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh ~/.Xmodmap ~/.xsession
|
trash ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh ~/.Xmodmap ~/.xsession ~/.oh-my-zsh/themes/af-magic.zsh-theme
|
||||||
else
|
else
|
||||||
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh ~/.Xmodmap ~/.xsession
|
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh ~/.Xmodmap ~/.xsession ~/.oh-my-zsh/themes/af-magic.zsh-theme
|
||||||
fi
|
fi
|
||||||
ln -s ${PWD}/../python/pylintrc ~/.pylintrc
|
ln -s ${PWD}/../python/pylintrc ~/.pylintrc
|
||||||
ln -s ${PWD}/../vim/vimrc ~/.vimrc
|
ln -s ${PWD}/../vim/vimrc ~/.vimrc
|
||||||
@ -73,11 +73,12 @@ while getopts ":hbsdtclw" VALUE "$@"; do
|
|||||||
ln -s ${PWD}/../git/gitconfig ~/.gitconfig
|
ln -s ${PWD}/../git/gitconfig ~/.gitconfig
|
||||||
ln -s ${PWD}/../shells/bashrc ~/.bashrc
|
ln -s ${PWD}/../shells/bashrc ~/.bashrc
|
||||||
ln -s ${PWD}/../shells/zshrc ~/.zshrc
|
ln -s ${PWD}/../shells/zshrc ~/.zshrc
|
||||||
|
ln -s ${PWD}/../shells/af-magic.zsh-theme ~/.oh-my-zsh/themes/af-magic.zsh-theme
|
||||||
if [ -d "~/.oh-my-zsh" ] ; then
|
if [ -d "~/.oh-my-zsh" ] ; then
|
||||||
curl -L http://install.ohmyz.sh | sh
|
curl -L http://install.ohmyz.sh | sh
|
||||||
fi
|
fi
|
||||||
mkdir -p ~/.i3
|
mkdir -p ~/.i3
|
||||||
ln -s ${PWD}/../i3/i3config ~/.i3/config
|
ln -s ${PWD}/../i3/config ~/.i3/config
|
||||||
ln -s ${PWD}/../i3/sleep.sh ~/.i3/sleep.sh
|
ln -s ${PWD}/../i3/sleep.sh ~/.i3/sleep.sh
|
||||||
ln -s ${PWD}/../i3/Xmodmap ~/.Xmodmap
|
ln -s ${PWD}/../i3/Xmodmap ~/.Xmodmap
|
||||||
ln -s ${PWD}/../i3/xsession ~/.xsession
|
ln -s ${PWD}/../i3/xsession ~/.xsession
|
||||||
|
45
shells/af-magic.zsh-theme
Normal file
45
shells/af-magic.zsh-theme
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# af-magic.zsh-theme
|
||||||
|
# Repo: https://github.com/andyfleming/oh-my-zsh
|
||||||
|
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
|
||||||
|
|
||||||
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
||||||
|
if [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ] ; then
|
||||||
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
else
|
||||||
|
local return_code="%(?..%{$fg[green]%}%? ↵%{$reset_color%})"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# primary prompt
|
||||||
|
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
|
||||||
|
$FG[032]%~\
|
||||||
|
$(git_prompt_info) \
|
||||||
|
$FG[105]%(!.#.»)%{$reset_color%} '
|
||||||
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
|
RPS1='${return_code}'
|
||||||
|
|
||||||
|
|
||||||
|
# color vars
|
||||||
|
eval my_gray='$FG[237]'
|
||||||
|
eval my_orange='$FG[214]'
|
||||||
|
|
||||||
|
# right prompt
|
||||||
|
if type "virtualenv_prompt_info" > /dev/null
|
||||||
|
then
|
||||||
|
if [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ] ; then
|
||||||
|
RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%'
|
||||||
|
else
|
||||||
|
RPROMPT='$(virtualenv_prompt_info)$my_red%n@%m%{$reset_color%}%'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ] ; then
|
||||||
|
RPROMPT='$my_gray%n@%m%{$reset_color%}%'
|
||||||
|
else
|
||||||
|
RPROMPT='$my_red%n@%m%{$reset_color%}%'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# git settings
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075](branch:"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
|
Loading…
Reference in New Issue
Block a user