From a22ede5b96e657a3831da7c00b7c07ddafd6b57c Mon Sep 17 00:00:00 2001 From: Asara Date: Sat, 30 Mar 2024 14:36:49 -0400 Subject: [PATCH] small fixes for laptop --- .customrc | 17 +++++++++++++---- .profile | 7 +++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.customrc b/.customrc index f845cdb..4075598 100644 --- a/.customrc +++ b/.customrc @@ -1,14 +1,23 @@ #!/bin/bash -# add golang to path -export PATH=${PATH}:/usr/lib/go-1.22/bin/:${HOME}/go/bin +# add golang to PATH + +if [ -d "/usr/lib/go-1.22/bin/" ]; then + export PATH=${PATH}:/usr/lib/go-1.22/bin +fi + +if [ -d "${HOME}/go/bin" ]; then + export PATH=${PATH}:${HOME}/go/bin +fi # add uxn to path -export PATH=${PATH}:${HOME}/code/git.sr.ht/rabbits/uxn/bin +if [ -d "$HOME/code/git.sr.ht/rabbits/uxn/bin" ]; then + export PATH=${PATH}:${HOME}/code/git.sr.ht/rabbits/uxn/bin +fi +# set up moolticute ssh agent if ! pgrep -u "$USER" mc-agent >/dev/null; then mc-agent >~/.mc-agent-env fi if pgrep -u "$USER" mc-agent &>/dev/null && grep -q 'SSH_AUTH_SOCK=' ~/.mc-agent-env; then - # once mc-agent started successfully override gnome-keyring ssh component eval "$(<~/.mc-agent-env)" fi diff --git a/.profile b/.profile index 4a54818..426d795 100644 --- a/.profile +++ b/.profile @@ -6,20 +6,19 @@ if [ -n "$BASH_VERSION" ]; then fi fi -# set PATH so it includes user's private bin if it exists +# set PATH so it includes user's private bin dirs if they exists if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH" fi - -# set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ]; then PATH="$HOME/.local/bin:$PATH" fi +# set up wayland env vars if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then export MOZ_ENABLE_WAYLAND=1 export MOZ_WEBRENDER=1 export XDG_SESSION_TYPE=wayland - XDG_CURRENT_DESKTOP=sway + export XDG_CURRENT_DESKTOP=sway exec sway fi