From 1e631017255774c9137383a87f2daa309398e98c Mon Sep 17 00:00:00 2001 From: Asara Date: Sat, 30 Mar 2024 14:27:28 -0400 Subject: [PATCH] add profile + customrc for laptop bootstrapping --- .customrc | 14 ++++++++++++++ .profile | 25 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .customrc create mode 100644 .profile diff --git a/.customrc b/.customrc new file mode 100644 index 0000000..f845cdb --- /dev/null +++ b/.customrc @@ -0,0 +1,14 @@ +#!/bin/bash +# add golang to path +export PATH=${PATH}:/usr/lib/go-1.22/bin/:${HOME}/go/bin + +# add uxn to path +export PATH=${PATH}:${HOME}/code/git.sr.ht/rabbits/uxn/bin + +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 new file mode 100644 index 0000000..4a54818 --- /dev/null +++ b/.profile @@ -0,0 +1,25 @@ +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +# set PATH so it includes user's private bin if it 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 + +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 + exec sway +fi