From 2fff0818f6c83a55411fb134b7973de7edd4936e Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 7 Oct 2024 11:46:11 -0400 Subject: [PATCH] added sober alias and changed clip to support wayland Signed-off-by: cswimr --- .zshc/aliases.zsh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.zshc/aliases.zsh b/.zshc/aliases.zsh index 4f73191..d730218 100755 --- a/.zshc/aliases.zsh +++ b/.zshc/aliases.zsh @@ -20,12 +20,19 @@ alias pacsize="pacman -Qi | egrep '^(Name|Installed)' | cut -f2 -d':' | paste - alias lg="lazygit" alias lad="lazydocker" alias htop="btop" -alias clip="xsel -ib" +if [[ "${XDG_SESSION_TYPE}" == "x11" ]]; then + alias clip="xsel -ib" +elif [[ -n "${WAYLAND_DISPLAY}" ]]; then + alias clip="wl-copy" +else + alias clip='echo "Cannot determine desktop session type, are you running a display server that is not X11 or Wayland?"' +fi alias driver="nvidia-smi" alias gpu="sudo nvidia-settings" alias yaystats="yay -P --stats" alias pacstats="yaystats" alias taildrop="tailscale file" alias protontricks="flatpak run com.github.Matoking.protontricks" +alias sober="flatpak run org.vinegarhq.Sober" alias runactions="forgejo-runner exec --default-actions-url https://www.coastalcommits.com --gitea-instance https://www.coastalcommits.com" alias sudo="sudo "