Update picom, sxhkd, and zsh

The zshrc now has a p that shows  working VCS info.
This commit is contained in:
foo-dogsquared 2019-12-25 15:22:52 +08:00
parent 5d1f441194
commit bd740d4b25
3 changed files with 13 additions and 13 deletions

View File

@ -105,13 +105,14 @@ shadow-ignore-shaped = false;
#
#################################
inactive-opacity = 0.5;
inactive-opacity = 0.75;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = true;
opacity-rule = [
"90:class_g = 'alacritty' && focused",
"60:class_g = 'alacritty' && !focused"
"60:class_g = 'alacritty' && !focused",
"100:class_g = 'slop'"
];
@ -120,7 +121,7 @@ inactive-dim = 0.5;
# Do not let dimness adjust based on window opacity.
inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = true;
blur-background = false;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;

View File

@ -31,7 +31,7 @@ super + d
# User action shortcuts.
super + F10
$HOME/bin/prompt "Proceed to shutdown?" "sudo -A shutdown"
$HOME/bin/prompt "Proceed to shutdown?" "sudo -A shutdown 0"
super + F11
$HOME/bin/prompt "Proceed to reboot?" "sudo -A reboot"

View File

@ -1,19 +1,18 @@
# This is the part that configures the interactive shell.
export function git_directory() {
git_branch=$(git branch --show-current 2>/dev/null)
return "$git_branch"
}
# Add pywal to the bootup of the interactive shell
cat ~/.cache/wal/sequences
# The prompt.
# This is based from Luke Smith's setup.
# https://github.com/LukeSmithxyz/voidrice/blob/master/.config/zsh/.zshrc
# Adding basic version control support to the zsh prompt.
# https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Zsh
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '(%b)'
autoload -U colors && colors
PS1="%F%(0?.%{$fg[red](T%}.%{$fg[green](F%})) %B%{$fg[magenta]%}%~%{$reset_color%} $%f%b "
PS1="%F${fg[white]}%(0?.√.%?) %B%{$fg[magenta]%}%1~%{$reset_color%} \$vcs_info_msg_0_ $%f%b "
# Configuring the command history.
HISTSIZE=1000