-
Notifications
You must be signed in to change notification settings - Fork 3
/
.xinitrc
79 lines (62 loc) · 1.69 KB
/
.xinitrc
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
#!/bin/bash
# Copied from /etc/X11/xinit/xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[[ -f ~/.Xresources ]] && xrdb -I$HOME ~/.Xresources
##
## Screen
##
#xrandr --output DVI-I-1 --auto --primary --right-of DVI-D-0
#xrandr --dpi 94
#export __GL_THREADED_OPTIMIZATIONS=1
#export __GL_YIELD="USLEEP"
export __GL_SYNC_DISPLAY_DEVICE=DP-4
#export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=DP-4
# sleep
#xset s 3600 3600
#xset dmps 3600 3600 3600
# nvidia-settings -l
# Steam
export PROTON_DUMP_DEBUG_COMMANDS=1
##
## Font
##
# Seems to make autohint+hintfull closer to hintfull (non-autohint)
# https://www.freetype.org/freetype2/docs/reference/ft2-properties.html#warping
# and https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1722508
#export FREETYPE_PROPERTIES="autofitter:warping=1"
##
## Keyboard
##
#setxkbmap -option terminate:ctrl_alt_bksp
## desactivate touchpad when typing
#syndaemon -i 2 -t -k -d &
setxkbmap us_qwerty-fr
# 'Menu' key as Windows key
#xmodmap -e 'keycode 135 = Super_R'
numlockx on
##
## Sound
##
# set volume
pactl set-sink-volume @DEFAULT_SINK@ 50%
# no bell
xset b 0 &> /dev/null
##
## Start
##
# Fix flatpak service(?) making desktop/gtk app dbus stuff at startup very slow...
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/72
# https://bbs.archlinux.org/viewtopic.php?id=224787
#dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
## ssh agent
#eval "$(ssh-agent)"
~/.config/i3/wallpaper_cycle
i3log="$HOME/.config/i3/log"
mv -f "$i3log" "$i3log.bak"
# exec ~/Documents/clones/i3/build/i3 > "$i3log" 2>&1
exec i3 > "$i3log" 2>&1