-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
executable file
·118 lines (105 loc) · 3.16 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/sh
# ~/.profile
#
# do the shellcheck y stuff disable=1091
#
# Put stuff here that you only want sourced when
# initializing login shells
. "$HOME/.mancolors"
. "$HOME/.config/lf/ico"
. "$HOME/.secret"
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/share/go/bin:$PATH"
# export PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
export PATH
# Default Programs
export EDITOR="edit"
export VISUAL="$EDITOR"
export TERMINAL="kitty -1"
# export TERMINAL="wezterm"
# export TERM=xterm-kitty
export BROWSER="copytoclip"
# export GUIBROWSER="qutebrowser"
# export GUIBROWSER="firefox-nightly"
export GUIBROWSER="firefox"
# export GUIBROWSER="firedragon"
export PAGER="nvimpager -p"
export FILEMAN="lf"
export TASKMAN="ytop -p"
export MUSICPLAYER="ncmpcpp"
export NEWSREADER="newsboat"
export READER="zathura"
export MAILREADER="neomutt"
export STATUSBAR="i3blocks"
# Program Configuration
export GTK_THEME="oomox-colors-oomox"
export QT_QPA_PLATFORMTHEME="gtk2"
export LYNX_CFG="$HOME/.lynxrc"
# Because some programs can't find the pulse cookie on their own I guess
export PULSE_COOKIE="$HOME/.pulse-cookie"
# XDG AppDirs
## TODO: Move to ~/.local/etc or ~/etc
export XDG_CONFIG_HOME="$HOME/.config"
## TODO: Move to ~/.local/cache or ~/cache or ~/var/cache
export XDG_CACHE_HOME="$HOME/.cache"
## TODO: Keep at current place or move to ~/share
export XDG_DATA_HOME="$HOME/.local/share"
## TODO: Keep at current place or move to ~/var/log
export XDG_STATE_HOME="$HOME/.local/state"
## Wine
export WINEESYNC=1
export WINEFSYNC=1
# export STAGING_SHARED_MEMORY=1
# export STAGING_WRITECOPY=1
## DXVK
export DXVK_HUD="compiler"
export DXVK_ASYNC=0
## Graphics
export AMDVLK_ENABLE_DEVELOPING_EXT="all"
export ENABLE_VKBASALT=0
# export mesa_glthread=true
# export RADV_FORCE_VRS="2x2"
# pswave32,gewave32,cswave32
export RADV_PERFTEST="rt,sam,nv_ms"
export VAAPI_MPEG4_ENABLED=true
# Dev Environment
export GOPATH="$XDG_DATA_HOME/go"
export CLASSPATH="$CLASSPATH:/usr/share/java/*"
## LaTeX plugins
export TEXINPUTS="$HOME/doc/tex/*/:$TEXINPUTS"
[ "$TERM" = linux ] && {
[ -f "$XDG_CACHE_HOME/wal/colors-tty.sh" ] && . "$XDG_CACHE_HOME/wal/colors-tty.sh"
sudo -n kbdrate -r 35 -d 150 >/dev/null
# TODO: Remap caps lock and escape in the TTY (using interception?)
}
login_options=$(
cat <<EOF
sway
xorg
hyprland
EOF
)
[ "$SSH_TTY" ] || [ "$DISPLAY" ] || [ "$TMUX" ] || {
header="How do you wish to log in? (Press <Esc>, <Ctrl+[>, or <Ctrl+C> to stay in the tty)"
disp=$(echo "$login_options" | fzf --header "$header" --header-first)
}
case $disp in
xorg)
# Set up multi-monitor FreeSync correctly by piggy-backing off wayland's better FreeSync support
# sway &
# sleep 5
# SWAYSOCK="/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock" sway exit
startx
;;
sway | hyprland)
# export WLR_RENDERER=vulkan
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export XDG_CURRENT_DESKTOP="$disp"
export MOZ_ENABLE_WAYLAND=1
$disp --unsupported-gpu
;;
esac
[ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && . "$HOME/.nix-profile/etc/profile.d/nix.sh" # added by Nix installer
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"