From 861d92dcd426c753888d52ab494853ebb083d9c9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 28 Oct 2023 23:27:11 +0200 Subject: [PATCH] disable cb GUI --- .zshrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 016cb4b..f02ea50 100644 --- a/.zshrc +++ b/.zshrc @@ -6,6 +6,13 @@ export editor=nvim export XDG_CONFIG_HOME=~/.config export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P' 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 alias l="lsd -lah" @@ -22,6 +29,7 @@ alias gg=lazygit alias reload="source ~/.zshrc" alias gls=/bin/ls alias neorg='nvim -c "Neorg workspace $1"' +alias accon="HOST=$(hostname) conda activate" ### non standard aliases if [ -f ~/.zsh_aliases ]; then @@ -39,6 +47,10 @@ function cachekeys () { exec 2>/dev/null; function newpass() { 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 ### ---- zsh options ------------------------------------- @@ -182,7 +194,3 @@ then else eval "$(zoxide init zsh)" fi - -### --- conda Config ------------------------------------ -# try first ask later -conda activate std &> /dev/null