-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
72 lines (60 loc) · 1.52 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
#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#
#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO
#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
set +e > /dev/null 2>&1
set +u > /dev/null 2>&1
set +o posix > /dev/null 2>&1
if type shopt > /dev/null 2>&1 ; then
shopt -s execfail
else
no_exit_on_failed_exec=1
fi
#
# Source common code shared between the
# X session and X init scripts
#
. /etc/X11/xinit/xinitrc.common
#
# Special for twm
#
case "$WINDOWMANAGER" in
*twm) xsetroot -solid darkslateblue
esac
#
# Uncomment next lines to activate asking for ssh passphrase
#
# if test -S "$SSH_AUTH_SOCK" -a -x "$SSH_ASKPASS"; then
# ssh-add < /dev/null
# fi
#
# Add your own lines here...
#
# My XRANDR display settings
# These settings needed for `i3` window manager runnin under Xorg in VMware.
# Running under Wayland use `$WAYLAND_DISPLAY` as the display name.
gtf 2560 1440 60.00
xrandr --newmode "2560x1440_60.00" 311.83 2560 2744 3024 3488 1440 1441 1444 1490 -HSync +Vsync
xrandr --addmode Virtual1 2560x1440_60.00
xrandr --output Virtual1 --mode 2560x1440_60.00
# day planer deamon
# pland &
#
# finally start the window manager
#
unset WINDOW_MANAGER STARTUP
exec $WINDOWMANAGER ${1+"$@"}
# call failsafe
exit 0
# Start GPG-AGENT as daemon
eval "$(gpg-agent --daemon)"