-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.xinitrc
More file actions
executable file
·96 lines (75 loc) · 3.17 KB
/
Copy path.xinitrc
File metadata and controls
executable file
·96 lines (75 loc) · 3.17 KB
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
#!/bin/sh
# dwm, kde, cinnamon
# environment=dwm
environment=awesome
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
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
# keyboard layout
setxkbmap us &
exec dbus-launch --sh-syntax --exit-with-session awesome
# Display resolution
# xrandr --output HDMI-0 --off --output DP-0 --mode 1920x1080 --rate 144 --output DP-2 --mode 1920x1080 --rate 144 --right-of DP-0 --output DP-4 --mode 1920x1080 --rate 144 --right-of DP-2 &
# xrandr --output HDMI-0 --off --output DP-4 --mode 1920x1080 --rate 144 --output DP-2 --mode 1920x1080 --rate 144 --right-of DP-4 --output DP-0 --mode 1920x1080 --rate 144 --right-of DP-2 &
# xrandr --output HDMI-0 --off --output DP-2 --mode 1920x1080 --rate 144 --output DP-4 --mode 1920x1080 --rate 144 --right-of DP-2 --output DP-0 --mode 1920x1080 --rate 144 --right-of DP-4 &
# xrandr --output DP-2 --mode 1920x1080 --rate 144 --output DP-4 --mode 1920x1080 --rate 144 --right-of DP-2 --output DP-0 --mode 1920x1080 --rate 144 --right-of DP-4 &
# xrandr --output DP-4 --mode 1920x1080 --rate 144 --output DP-0 --mode 1920x1080 --rate 144 --right-of DP-2 --output DP-2 --mode 1920x1080 --rate 144 --right-of DP-4 &
xrandr --output DP-2 --mode 1920x1080 --rate 144 --output DP-0 --mode 1920x1080 --rate 144 --right-of DP-2 --output DP-4 --mode 1920x1080 --rate 144 --right-of DP-0 &
# Needed to use JDownloader for some reason
export _JAVA_AWT_WM_NONREPARENTING=1
killall -9 dwm_bar.sh
killall -9 dwmblocks
# Volume bindings
xbindkeys &
# Different desktop environments and window managers
if [[ $environment == dwm ]]; then
# Notification daemon
dunst &
glava --desktop &
# Start trayer (if not running dwm systray patch)
# trayer --transparent true --alpha 204 --monitor "secondary" --heighttype percent --height 15 --widthtype percent --width 15 --edge bottom --distance 0 --distancefrom left --distance 814 &
# trayer --transparent true --alpha 204 --monitor "secondary" --heighttype percent --height 20 --widthtype percent --width 15 --edge top --distance 20 &
# Start dwmblocks
#/home/hoswoo/Sources/dwm-bar/dwm_bar.sh &
~/Sources/dwmblocks/dwmblocks &
# Compositor
# picom -f &
xcompmgr rofi &
# Wallpaper
feh '/home/hoswoo/Pictures/Wallpapers/aurian.jpg' --bg-fill --no-xinerama &
# Fancy conky stuff
# conky -c ~/Accuweather_conky_script/.conkyrc_acc_images_2016 & # Broke this somehow
conky -c ~/Scripts/Conky/SysMonScript/SweetDarkConky1.rc &
conky -c ~/Scripts/Conky/SysMonScript/SweetDarkConky2.rc &
/home/hoswoo/Scripts/Conky/now-clocking/start.sh &
exec dwm
fi
if [[ $environment == kde ]]; then
# Both of these lines are needed for KDE-plasma
export DESKTOP_SESSION=plasma
exec startplasma-x11
fi
if [[ $environment == cinnamon ]]; then
exec cinnamon-session
fi