-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
48 lines (46 loc) · 1.31 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
#!/usr/bin/bash
xdg-settings set default-web-browser firefox.desktop
# Set this for HiDPI screens
export GDK_SCALE=2
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export BROWSER="firefox"
dunst &
# Disable the touchpad if my trackball is plugged in
if xinput list --name-only | grep -q 'Logitech'; then
xinput disable "$( xinput list --name-only | grep Touchpad )"
elif xinput list --name-only | grep -q 'ELECOM'; then
xinput disable "$( xinput list --name-only | grep Touchpad )"
fi
#
# set font paths; make sure to run mkfontdir on all the font directories added here after installation
#
xset fp+ /usr/share/fonts/awesome-terminal-fonts,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/apple,/usr/share/fonts/joypixels,/usr/share/fonts/added &
#
# disable screen saver
#
xset -dpms
setterm --blank=0 --powerdown=0
xset s off
#
# Start some programs
#
# background image
xwallpaper --daemon --zoom $HOME/images/background.jpg
# my dwm bar script
if [[ -n "$( pgrep dwmbar )" ]]; then
killall dwmbar
fi
dwmbar &
# sync e-mail
if [[ -n "$( pgrep imapSync )" ]]; then
killall imapSync
fi
$HOME/.scripts/imapSync &
# the compton relacement (for transparency)
if [[ -n "$( pgrep picom )" ]]; then
killall picom
fi
picom -b > /dev/null 2>&1
# Screen lock on inactivity
#xssproxy &
xss-lock -- i3lock -t -n -i $HOME/images/lockImage.png &