small fixes for laptop
This commit is contained in:
parent
1e63101725
commit
a22ede5b96
2 changed files with 16 additions and 8 deletions
17
.customrc
17
.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
|
||||
|
|
7
.profile
7
.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
|
||||
|
|
Loading…
Reference in a new issue