-
Notifications
You must be signed in to change notification settings - Fork 1
/
xprofile
executable file
·53 lines (43 loc) · 1.44 KB
/
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
53
# -*- mode: sh -*-
# Setup some extra PATH variables
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
# append the @ADD-TO-PATH entries to the path
# only if they resolve to directories
if [ -f "${HOME}/bin/@ADD-TO-PATH" ]
then
while read line
do
[ -z "${line}" ] && continue
[ X"${line#\#}" != X"${line}" ] && continue
[ X"${line#/}" = X"${line}" ] && line=$(realpath -q "${HOME}/bin/${line}")
[ -z "${line}" ] && continue
[ -d "${line}" ] && PATH="${PATH}:${line}"
done < "${HOME}/bin/@ADD-TO-PATH"
unset line
fi
# Load any Xterm settings
xrdb -merge ~/.Xresources
# set up monitor
monitor_hdmi="$(xrandr --listmonitors | awk '/HDMI/ { print $4 }')"
[ -n "${monitor_hdmi}" ] && xrandr --output "${monitor_hdmi%% *}" --fb 1920x1080 --pos 0x0 --auto
# Fix an issue with large image rendering via mozilla firefox
export MOZ_DISABLE_IMAGE_OPTIMIZE=1
#export MALLOC_CONF='narenas:1,tcache:false' ##### crashes lumina start menu
# Qt theme
export QT_QPA_PLATFORMTHEME=qt5ct
# ibus
export XIM=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=xim
export XMODIFIERS=@im=ibus
export XIM_PROGRAM="ibus-daemon"
export XIM_ARGS="--daemonize --xim"
# mixer
[ -f .mixerrc ] && . .mixerrc
# start a fresh gpg agent and set environment
gpgconf --kill gpg-agent
rm -f "${HOME}/.gnupg/gpg-agent.log"
export QT_FONT_DPI=144
eval $(gpg-agent --daemon --sh)
unset QT_FONT_DPI
export GPG_TTY='not a tty'