-
Notifications
You must be signed in to change notification settings - Fork 0
/
_xprofile
executable file
·52 lines (36 loc) · 999 Bytes
/
_xprofile
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
#!/bin/sh
# X Server Initialization
# Source system config
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Xresources for urxvt
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
export SDL_AUDIODRIVER=pulse
# NixOS Specifics
if [ -e /etc/NIXOS ];
then
export GTK_DATA_PREFIX=/home/prikhi/.nix-profile
fi
# Use ibus as the input method framework
export GTK_IM_MODULE=xim
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon --xim -dr
# font-cache
xset +fp /home/prikhi/.fonts
xset fp rehash
xsetroot -cursor_name left_ptr
# rotate background
~/.bin/feh-bg &
# enable mangohud in games
export MANGOHUD=1
# enable raytracing in games
export VKD3D_CONFIG=dxr VKD3D_FEATURE_LEVEL=12_2
# don't mask the nvidia gfx card in proton games
export PROTON_ENABLE_NVAPI=1 PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NGX_UPDATER=1
# export the DBUS session's environmental variables
export $(dbus-launch)