From: Huck Boles Date: Thu, 16 May 2024 02:31:34 +0000 (-0700) Subject: added: peacock tweaks X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=refs%2Fheads%2Fpeacock;p=zsh.git added: peacock tweaks --- diff --git a/.zprofile b/.zprofile index 35e9ccf..266dc67 100644 --- a/.zprofile +++ b/.zprofile @@ -1,4 +1,14 @@ -unset XDG_RUNTIME_DIR -export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) +# start wayland if isn't already running +if [[ -z "${WAYLAND_DISPLAY}" ]] && [[ "${XDG_VTNR}" -eq 1 ]]; then -[[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && exec startx + # setup runtime directory if it's not already + if test -z "$XDG_RUNTIME_DIR"; then + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) + fi + + # enable wayland for firefox + export MOZ_ENABLE_WAYLAND=1 + + # start sway + dbus-launch sway +fi diff --git a/include/aliases.zsh b/include/aliases.zsh index 2460738..b9fa375 100644 --- a/include/aliases.zsh +++ b/include/aliases.zsh @@ -29,7 +29,7 @@ alias zc='cd;clear' alias cd='z ' alias rename='perl-rename' -alias make='make -j16 -l6 CFLAGS="-march=bdver1"' +alias make='make -j8 -l9 ' alias dust='dust -rb' alias ls='lsd' @@ -48,6 +48,3 @@ alias tattach='tmux attach-session -t' # config aliases alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"' -alias xrdb='xrdb -load "$XDG_CONFIG_HOME/X11/xresources"' -alias background='feh --bg-fill --no-fehbg --randomize /home/huck/drive/library/photos/background' -alias nvidia-settings='nvidia-settings --config=$XDG_CONFIG_HOME/nvidia/settings'