summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-10 19:08:13 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-10 19:27:54 +0530
commitbaf2695c6ca84bd3cf612d4017228a0f97c6a4bf (patch)
tree146162e758f1e87d8ee4d9733a8beb6a691147aa /.profile
shell: initial shell setup
Diffstat (limited to '.profile')
-rw-r--r--.profile46
1 files changed, 46 insertions, 0 deletions
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..7249427
--- /dev/null
+++ b/.profile
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+# user directories
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_STATE_HOME="$HOME/.local/state"
+export XDG_CACHE_HOME="$HOME/.cache"
+export XDG_DESKTOP_DIR="$HOME"
+export XDG_DOWNLOAD_DIR="$HOME/dl"
+export XDG_DOCUMENTS_DIR="$HOME/doc"
+export XDG_PICTURES_DIR="$HOME/pix"
+export XDG_MUSIC_DIR="$HOME/ms"
+export XDG_VIDEOS_DIR="$HOME/vid"
+export GOPATH="${HOME}/.cache/go"
+
+# user programs
+export EDITOR=nvim
+export VISUAL=nvim
+export BROWSER=firefox
+export TERMINAL=foot
+export SUDO_ASKPASS="${HOME}/.local/bin/dmpass"
+export QT_QPA_PLATFORMTHEME=qt5ct
+
+# $HOME clean up
+export ANDROID_HOME="$XDG_DATA_HOME"/android
+export HISTFILE="${XDG_STATE_HOME}"/shell/history
+export CARGO_HOME="$XDG_DATA_HOME"/cargo
+export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nvidia
+export GNUPGHOME="$XDG_DATA_HOME"/gnupg
+export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
+export LESSHISTFILE="$XDG_STATE_HOME"/less/history
+export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
+export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
+
+# etc
+export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.local/bin/sb:${HOME}/.local/bin/sds"
+export _JAVA_AWT_WM_NONREPARENTING=1 # android-studio crash
+
+# display server
+case "$(tty)" in
+*/tty1)
+ clear &
+ exec dbus-launch --exit-with-session \
+ dwl -s "${XDG_CONFIG_HOME:-$HOME/.config}/wayland/winit" > /dev/null 2>&1
+ ;;
+esac