disable cb GUI

This commit is contained in:
Christoph J. Scherr 2023-10-28 23:27:11 +02:00
parent 2e11b2f5ad
commit 861d92dcd4
1 changed files with 12 additions and 4 deletions

16
.zshrc
View File

@ -6,6 +6,13 @@ export editor=nvim
export XDG_CONFIG_HOME=~/.config export XDG_CONFIG_HOME=~/.config
export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P' export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P'
export ZSH=$HOME/.zsh export ZSH=$HOME/.zsh
export CLIPBOARD_NOGUI=1 # wayland only allows GUI apps to use the clipboard.
# cb would have to open every 2 seconds and steal
# focus. This sucks, so I will have to disable GUI
# integration (yes that means ctrl+v) for now.
#
# see https://github.com/Slackadays/Clipboard/issues/171
### Aliases ### Aliases
alias l="lsd -lah" alias l="lsd -lah"
@ -22,6 +29,7 @@ alias gg=lazygit
alias reload="source ~/.zshrc" alias reload="source ~/.zshrc"
alias gls=/bin/ls alias gls=/bin/ls
alias neorg='nvim -c "Neorg workspace $1"' alias neorg='nvim -c "Neorg workspace $1"'
alias accon="HOST=$(hostname) conda activate"
### non standard aliases ### non standard aliases
if [ -f ~/.zsh_aliases ]; then if [ -f ~/.zsh_aliases ]; then
@ -39,6 +47,10 @@ function cachekeys () { exec 2>/dev/null;
function newpass() { function newpass() {
LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0} LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0}
} }
function condac() {
conda activate $@
export HOST=$(hostname)
}
# TODO: make neorg a function, take a workspace as arg # TODO: make neorg a function, take a workspace as arg
### ---- zsh options ------------------------------------- ### ---- zsh options -------------------------------------
@ -182,7 +194,3 @@ then
else else
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
fi fi
### --- conda Config ------------------------------------
# try first ask later
conda activate std &> /dev/null