diff --git a/picom/picom.conf b/picom/picom.conf index 95f949f..fa8bd6d 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -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; diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 1de9b4f..64e7679 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -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" diff --git a/zsh/.zshrc b/zsh/.zshrc index e4effe9..9631b1c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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