add profile + customrc for laptop bootstrapping
This commit is contained in:
parent
63de44d7a3
commit
1e63101725
2 changed files with 39 additions and 0 deletions
14
.customrc
Normal file
14
.customrc
Normal file
|
@ -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
|
25
.profile
Normal file
25
.profile
Normal file
|
@ -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
|
Loading…
Reference in a new issue