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 "