diff options
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 33 |
1 files changed, 21 insertions, 12 deletions
@@ -3,9 +3,9 @@ # enable certain tools only if on macOS case "$OSTYPE" in - darwin*) - eval "$(/opt/homebrew/bin/brew shellenv)" - ;; +darwin*) + eval "$(/opt/homebrew/bin/brew shellenv)" + ;; esac unsetopt PROMPT_SP 2>/dev/null @@ -14,13 +14,14 @@ unsetopt PROMPT_SP 2>/dev/null export EDITOR=nvim export TERMINAL=foot export TERMINAL_PROG=foot -export BROWSER=firefox-bin +export BROWSER=firefox # Misc export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" export XDG_CACHE_HOME="$HOME/.cache" export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" +export W3M_DIR="$XDG_CONFIG_HOME/w3m" export DISTRIB_ID=arch export DISTRIB_RELEASE="$(uname -r)" @@ -33,7 +34,7 @@ export CARGO_HOME="$XDG_DATA_HOME/cargo" export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export QT_QPA_PLATFORMTHEME="gtk2" -export MOZ_USE_XINPUT2=1 # Mozilla smooth scrolling/touchpad +export MOZ_USE_XINPUT2=1 # Mozilla smooth scrolling/touchpad export AWT_TOOLKIT="MToolkit wmname LG3D" # Fix for Java applications in dwm export _JAVA_AWT_WM_NONREPARENTING=1 # (this too) export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default" @@ -44,6 +45,7 @@ export BAT_THEME="ansi" export ELECTRON_OZONE_PLATFORM_HINT="wayland" # Path +export PATH="$HOME/.local/bin:$PATH" export PATH="$PATH:$(find "$HOME/.local/bin" -type d | paste -sd ":" -)" export PATH="$PATH:$GOPATH/bin" export PATH="$PATH:$HOME/.cargo/bin" @@ -52,6 +54,8 @@ export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:/usr/local/go/bin" export PATH="$PATH:/usr/local/go/bin" export PATH="$PATH:$HOME/.local/share/cargo/bin" +export GITHUB_TOKEN="$(pass gh/token)" +export WIREMAN_CONFIG_DIR=$XDG_CONFIG_HOME/wireman # Set foot as the default terminal when not connected via SSH # or xterm when connected via SSH @@ -74,14 +78,19 @@ aliasgen >/dev/null 2>&1 # Ensure XDG_RUNTIME_DIR is set if test -z "$XDG_RUNTIME_DIR"; then - export XDG_RUNTIME_DIR="$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)" + export XDG_RUNTIME_DIR="$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)" fi -startw(){ - dbus-launch --exit-with-session dwl -} - # Start Desktop Environment if on the main TTY -[ "$(tty)" = "/dev/tty1" ] && ! pidof dwl >/dev/null 2>&1 && { - startw +[ "$(tty)" = "/dev/tty1" ] && ! pidof river >/dev/null 2>&1 && { + dbus-launch --exit-with-session river -no-xwayland & + /usr/bin/pipewire & + /usr/bin/wireplumber & + /usr/bin/pipewire-pulse & +} +[ "$(tty)" = "/dev/tty2" ] && ! pidof river >/dev/null 2>&1 && { + dbus-launch --exit-with-session river & + /usr/bin/pipewire & + /usr/bin/wireplumber & + /usr/bin/pipewire-pulse & } |