This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.startup
executable file
·70 lines (56 loc) · 1.78 KB
/
.startup
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
#!/usr/bin/env sh
MONITOR1=eDP1
MONITOR2=DP1
refresh() {
#SHORTCUTS
killall -q sxhkd
while pgrep -x sxhkd >/dev/null; do sleep 1; done
sxhkd -c /home/bresilla/.config/sxhkd/sxhkdrc &
#MONITORS
xrandr --output eDP1 --primary --mode 3840x2160 --pos 0x2160 --rotate normal --output DP1 --mode 3840x2160 --pos 0x0 --rotate normal --output DP2 --off --output HDMI1 --off --output HDMI2 --off --output VIRTUAL1 --off &
#TASKBAR
killall -q polybar &
while pgrep -x polybar >/dev/null; do sleep 1; done
MONITOR=$MONITOR1 polybar -r -c ~/.config/polybar/main main &
MONITOR=$MONITOR2 polybar -r -c ~/.config/polybar/main main &
MONITOR=$MONITOR1 polybar -r -c ~/.config/polybar/center workspaces &
MONITOR=$MONITOR2 polybar -r -c ~/.config/polybar/center workspaces &
#COMPTOSITOR
killall -q picom
while pgrep -x picom >/dev/null; do sleep 1; done
picom --config ~/.config/compton/compton &
#WALLPAPER
pkill -f loopwall
loopwall /home/bresilla/data/WALL 300 &
#NOTIFICATION
killall -q dunst
while pgrep -x dunst >/dev/null; do sleep 1; done
dunst -config /home/bresilla/.config/dunst/dunstrc &
#WIDGETS
# killall -q conky
# while pgrep -x conky >/dev/null; do sleep 1; done
# conky -c /home/bresilla/.config/conky/conky &
}
runonce() {
#POLYKIT
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#KEYBOARD
xset -dpms s off &
xset -r 118 & #Insert
xset -r 107 & #Print
setxkbmap de &
xmodmap -e "remove control = Control_R" && xmodmap -e "add mod3 = Control_R" &
#POINTER
xsetroot -cursor_name left_ptr &
#LIGHT
clight &
#CLIPBOARD
greenclip daemon &
#SSH-AGENT
eval "$(ssh-agent)"
}
if [ "$1" == "-r" ] ;then
refresh
else
runonce
fi