mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
Update picom, sxhkd, and zsh
The zshrc now has a p that shows working VCS info.
This commit is contained in:
parent
5d1f441194
commit
bd740d4b25
@ -105,13 +105,14 @@ shadow-ignore-shaped = false;
|
|||||||
#
|
#
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
inactive-opacity = 0.5;
|
inactive-opacity = 0.75;
|
||||||
active-opacity = 1;
|
active-opacity = 1;
|
||||||
frame-opacity = 1;
|
frame-opacity = 1;
|
||||||
inactive-opacity-override = true;
|
inactive-opacity-override = true;
|
||||||
opacity-rule = [
|
opacity-rule = [
|
||||||
"90:class_g = 'alacritty' && focused",
|
"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.
|
# Do not let dimness adjust based on window opacity.
|
||||||
inactive-dim-fixed = true;
|
inactive-dim-fixed = true;
|
||||||
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
# 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 of opaque windows with transparent frames as well.
|
||||||
# blur-background-frame = true;
|
# blur-background-frame = true;
|
||||||
|
@ -31,7 +31,7 @@ super + d
|
|||||||
|
|
||||||
# User action shortcuts.
|
# User action shortcuts.
|
||||||
super + F10
|
super + F10
|
||||||
$HOME/bin/prompt "Proceed to shutdown?" "sudo -A shutdown"
|
$HOME/bin/prompt "Proceed to shutdown?" "sudo -A shutdown 0"
|
||||||
|
|
||||||
super + F11
|
super + F11
|
||||||
$HOME/bin/prompt "Proceed to reboot?" "sudo -A reboot"
|
$HOME/bin/prompt "Proceed to reboot?" "sudo -A reboot"
|
||||||
|
17
zsh/.zshrc
17
zsh/.zshrc
@ -1,19 +1,18 @@
|
|||||||
# This is the part that configures the interactive shell.
|
# 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
|
# Add pywal to the bootup of the interactive shell
|
||||||
cat ~/.cache/wal/sequences
|
cat ~/.cache/wal/sequences
|
||||||
|
|
||||||
# The prompt.
|
# The prompt.
|
||||||
# This is based from Luke Smith's setup.
|
# Adding basic version control support to the zsh prompt.
|
||||||
# https://github.com/LukeSmithxyz/voidrice/blob/master/.config/zsh/.zshrc
|
# 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
|
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.
|
# Configuring the command history.
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
|
Loading…
Reference in New Issue
Block a user