-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
123 lines (95 loc) · 3.05 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/sh
#
# behavior on a great variety of systems!
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# Arch packages necessary for this to run:
# [xorg-apps group] - xorg-xset xorg-xsetroot xorg-xrdb xorg-xrandr
# [misc] xscreensaver numlockx xcompmgr feh xmonad
# [AUR] shantz-xwinwrap-bzr
# All machine-specific xinit instructions go here:
#. ./.xinitrc-details
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Color codes
black='\e[0;30m'
red='\e[0;31m'
green='\0;32m'
orange='\0;33m'
blue='\0;34m'
purple='\0;35m'
cyan='\0;36m'
gray='\0;37m'
darkgray='\e[1;30m'
lightred='\e[1;31m'
lightgreen='\1;32m'
yellow='\1;33m'
lightblue='\1;34m'
lightpurple='\1;35m'
lightcyan='\1;36m'
white='\1;37m'
# use all the same default apps as Xfce does
#export DE='xfce'
# for locally installed packages
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
# needed for TwinView SDL gaming
#export SDL_VIDEO_FULLSCREEN_HEAD=1
# needed for Minecraft
#export _JAVA_AWT_WM_NONREPARENTING=1
#include fonts such as terminus
xset +fp /usr/share/fonts/local
xset fp rehash
# I like automatic numlock
#numlockx
# merge Xresources into urxvt settings
xrdb -merge ~/.Xresources
# For blueman
source /etc/X11/xinit/xinitrc.d/*
# For kensington mouse
xinput set-prop 10 libinput Middle Emulation Enabled 1
# Compositing
xcompmgr & # Light
#compton & # Fancy
#compton -D 8 -m 0.97 --frame-opacity=0.7 &
#compton -e 0.5 -inactive-dim 0.3 -m & # Fancier
xscreensaver -no-splash &
# set keyboard settings
xmodmap ~/.xmodmap &
# Make Caps a Ctrl key
setxkbmap -option ctrl:nocaps &
# use a screensaver for our background
# xwinwrap -b -fs -sp -fs -nf -ov -- /usr/lib/xscreensaver/klein -root -delay 34513 -view-mode walk -orientation-marks -mode wireframe -appearance solid -colors rainbow -projection-3d orthographic -projection-4d orthographic -walk-speed 1 -root -window-id WID &
# Glitch background
#xwinwrap -b -fs -sp -fs -nf -ov -- /usr/lib/xscreensaver/bsod -root -delay 18 -no-windows -no-nt -no-2k -no-msdos -no-amiga -no-glados -no-android -no-apple2 -no-nvidia -no-os2 -no-mac -no-mac1 -no-macsbug -no-macx -no-os390 -no-vms -no-hvx -no-atm -no-linux -no-hppalinux -no-solaris -no-sco -no-hpu -no-tru64 WID &
# we can alternatively use a wallpaper
# feh --bg-scale ~/pictures/wallpaper.png
# Using nitrogen:
nitrogen --restore &
# Set timer for power
#xautolock -time 30 -locker "sudo pm-suspend" -detectsleep &
# xbinkeys for audio control
xbindkeys
#Fix wonky Java problems:
wmname LG3D &
# dwm status bar:
# source /home/amber/scripts/.dwmstatus_x250.sh
# Run package-managed dwm
#exec dwm
#For Renoise and possibly other Audio Apps
export VST_PATH="/home/amber/proj/music_projects/VSTPlugins/VstPlugins"
# Run Local Build of dwm-6.0
while true; do ~/dotfiles/dwmstatus_teshub.sh; sleep 1; done &
#exec ~/build/dwm-6.0/src/dwm_dekstop > dwm.log
exec ~/build/dwm-6.0/src/dwm > dwm.log
#exec dwm > dwm.log
#~/.sleeper &
# exec openbox
# Run bspwm
#sxhkd &
#urxvt &
#exec bspwm