.xsessionrc

Sat, 24 Jun 2017 22:37:59 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 24 Jun 2017 22:37:59 -0400
changeset 610
5f49012f8242
parent 609
46f19b7955d8
child 617
595c6f803258
permissions
-rw-r--r--

move these into a .cache dir

512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
1 #!/bin/sh
52
ab3e58416aa0 sync changeset 692d2b9c7958 from default
Meredith Howard <mhoward@roomag.org>
parents: 42
diff changeset
2
512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
3 PLATFORM="$(uname -s)"
507
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
4 VIRT='no'
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
5
512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
6 if [ "$PLATFORM" = "OpenBSD" ]; then
154
72e18304b485 Fixes for trying to set up profile on OpenBSD
Meredith Howard <mhoward@roomag.org>
parents: 69
diff changeset
7 PATH="/usr/X11R6/bin:$PATH"
52
ab3e58416aa0 sync changeset 692d2b9c7958 from default
Meredith Howard <mhoward@roomag.org>
parents: 42
diff changeset
8 fi
ab3e58416aa0 sync changeset 692d2b9c7958 from default
Meredith Howard <mhoward@roomag.org>
parents: 42
diff changeset
9
512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
10 hsetroot -solid "#002244" >/dev/null 2>&1 || \
385
e3c8e2bdfccf Make sure root color gets set right
Meredith Howard <mhoward@roomag.org>
parents: 379
diff changeset
11 xsetroot -def -solid "#002244"
e3c8e2bdfccf Make sure root color gets set right
Meredith Howard <mhoward@roomag.org>
parents: 379
diff changeset
12
512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
13 xcompmgr -n >/dev/null 2>&1 </dev/null &
154
72e18304b485 Fixes for trying to set up profile on OpenBSD
Meredith Howard <mhoward@roomag.org>
parents: 69
diff changeset
14
72e18304b485 Fixes for trying to set up profile on OpenBSD
Meredith Howard <mhoward@roomag.org>
parents: 69
diff changeset
15 xmodmap ~/.xmodmaprc
609
46f19b7955d8 add check for .xmodmaprc.local
Meredith Howard <mhoward@roomag.org>
parents: 571
diff changeset
16 if [ -r ~/.xmodmaprc.local ]; then
46f19b7955d8 add check for .xmodmaprc.local
Meredith Howard <mhoward@roomag.org>
parents: 571
diff changeset
17 xmodmap ~/.xmodmaprc.local
46f19b7955d8 add check for .xmodmaprc.local
Meredith Howard <mhoward@roomag.org>
parents: 571
diff changeset
18 fi
52
ab3e58416aa0 sync changeset 692d2b9c7958 from default
Meredith Howard <mhoward@roomag.org>
parents: 42
diff changeset
19
56
e341df2dafda Allow .Xdefaults.local to be included, don\'t rely on system to run xrdb -cpp
Meredith Howard <mhoward@roomag.org>
parents: 52
diff changeset
20 if [ -r ~/.Xdefaults.local ]; then
154
72e18304b485 Fixes for trying to set up profile on OpenBSD
Meredith Howard <mhoward@roomag.org>
parents: 69
diff changeset
21 xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults
56
e341df2dafda Allow .Xdefaults.local to be included, don\'t rely on system to run xrdb -cpp
Meredith Howard <mhoward@roomag.org>
parents: 52
diff changeset
22 fi
e341df2dafda Allow .Xdefaults.local to be included, don\'t rely on system to run xrdb -cpp
Meredith Howard <mhoward@roomag.org>
parents: 52
diff changeset
23
154
72e18304b485 Fixes for trying to set up profile on OpenBSD
Meredith Howard <mhoward@roomag.org>
parents: 69
diff changeset
24 urxvtd -q -o -f
65
9c8f98eb7e1b add xmodmap, move urxvtd until after xmodmap and defaults
Meredith Howard <mhoward@roomag.org>
parents: 57
diff changeset
25
571
Meredith Howard <mhoward@roomag.org>
parents: 545
diff changeset
26 make -s -C ~/.i3 || {
Meredith Howard <mhoward@roomag.org>
parents: 545
diff changeset
27 cat ~/.i3/config.d/* > ~/.i3/config
Meredith Howard <mhoward@roomag.org>
parents: 545
diff changeset
28 cat ~/.i3/status.d/* > ~/.i3/status
Meredith Howard <mhoward@roomag.org>
parents: 545
diff changeset
29 }
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents: 282
diff changeset
30
42
68940b625e5e x session fixup
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
31 if [ -r ~/.xsessionrc.local ]; then
282
f6890bef382e This stuff runs under sh anyway
Meredith Howard <mhoward@roomag.org>
parents: 280
diff changeset
32 . ~/.xsessionrc.local
42
68940b625e5e x session fixup
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
33 fi
68940b625e5e x session fixup
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34
507
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
35 if [ "$VIRT" = "yes" ]; then
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
36 xset b off -dpms s off
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
37 else
523
978cc7613a13 fix dpms
Meredith Howard <mhoward@roomag.org>
parents: 512
diff changeset
38 xset b off s 300 dpms 360
507
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
39 xautolock -detectsleep &
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
40 pulseaudio --daemonize
512
da2cf0c3d734 bash unnecessary
Meredith Howard <mhoward@roomag.org>
parents: 508
diff changeset
41 nm-applet >/dev/null 2>&1 </dev/null &
507
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
42 fi
2ac6810a2e4a Move stuff from lt branch in as common config if not virtual
Meredith Howard <mhoward@roomag.org>
parents: 385
diff changeset
43

mercurial