-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
executable file
·109 lines (85 loc) · 2.28 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
#!/usr/bin/env bash
systemctl --user import-environment DISPLAY
#for fonts/colors etc
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
#simple x hotkey daemon
# sxhkd -c ~/.config/sxhkd/sxhkdrc &
# map caps lock button as escape button
setxkbmap -option caps:escape_shifted_capslock
#but when it is pressed once, treat it as escape
#killall xcape 2>/dev/null ; xcape -e 'Caps_Lock=Escape'
# to increase the rate of anykey press
# use xev -event keyboard to view keysym/keycode
xset r rate 300 40
#status bars for dwm
exec slstatus &
#exec dwmblocks &
#policykit gui
# polit_exec=/usr/lib/xfce-polkit/xfce-polkit
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#if [[ "$(pidof xfce-polkit)" ]]; then
# echo " xfce4-polkit is running"
#else
# echo "starting xfce-polkit"
# exec /usr/lib/xfce-polkit/xfce-polkit &
#fi
# run flameshot daemon
if [[ "$(pidof flameshot)" ]]; then
echo " flameshot is running"
else
echo "starting flameshot"
exec flameshot &
fi
#xfce4-panel
# xfce4-panel --disable-wm-check
#bash ~/.scripts/bash_scripts/e.sh &
#for wallpaper
if [[ $(pidof nitrogen) ]]; then
echo "nitrogen is running"
else
echo "starting"
exec nitrogen --restore --set-scaled &
fi
#compositor
# picom_config=$HOME/.config/picom/picom.conf
if [[ "$(pidof picom)" ]]; then
echo "picom is already running"
else
echo "starting picom"
picom -b --config=/home/ceaser/.config/picom/picom.conf &
fi
#window managers
#awesome windowmanager
# exec awesome
#notification daemon
if [[ "$(pidof dunst)" ]]; then
echo "dunst is running"
else
echo "starting dunst daemon"
exec dunst -config ~/.config/dunst/dunstrc &
fi
# if [[ -z $(pidof dunst) ]]; then
# $(dunst -config $dunst_config &)
# fi
# lock screen
# xautolock -time 1 -locker slock
# xautolock -time 1 -locker "systemctl suspend" -detectsleep
# MPD daemon start (if no other user instance exists)
#[ ! -s ~/.config/mpd/pid ] && mpd
#if [[ "$(pidof mpd)" ]]; then
# echo "mpd is running"
#else
# echo "starting mpd daemon"
# exec mpd &
#fi
#to start kdeconnect daemon and indicator
# /usr/lib/kdeconnectd &
# kdeconnect-indicator &
#
#for prime
#/usr/bin/prime-offload
#
#dynamic window manager-by suckless
#to update dwm without closing the running apps
#
while type dwm >/dev/null; do dwm && continue || break; done