-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautostart.sh
executable file
·48 lines (34 loc) · 1.66 KB
/
autostart.sh
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
#!/bin/sh
# Autostart these applications on startup.
# Clipboard manager.
command -v parcellite && { pgrep parcellite || parcellite & }
command -v nm-applet && { pgrep nm-applet || nm-applet & }
# Set screen-timeout to 420 seconds.
xset dpms 420
# Prevent screen from blanking.
# xset s off -dpms
# Turnoff touchpad. Use `xinput` to see all inputs. To enable, set it to 1. Put
# this in i3 config, not .bashrc as for floating wm for my Kubuntu, a script automatically
# disables it.
# Usage: `xinput` - lists all input devices.
# `xinput list-props [Device name in quotes/Device ID]` - lists all properties of given device.
# `xinput set-prop [Device name in quotes/Device ID]` - set desired property for given device.
# For T14
xinput set-prop "Synaptics TM3471-020" "Device Enabled" 0
# Try to use picom, if not available then use compton.
{ command -v picom && { pgrep picom || picom --config $HOME/.config/picom/picom.conf -b & }; } ||
{ command -v compton && { pgrep compton || compton --config $HOME/.config/compton/compton.conf -b & } }
# awesomewm doesn't need dunst for notifications.
pgrep -x awesome ||
{ command -v dunst && { pgrep dunst || { killall -q notify-osd; dunst -config $HOME/.config/dunst/dunstrc & } } }
redshift -P -O 3700 &
new_wall.sh &
# If has emacs, search if daemon is already running. If not then start
# an emacs daemon.
type emacs && { [ "$(ps aux | grep 'emacs --daemon' | wc -l)" = "2" ] ||
emacs --daemon; } &
disp_config.sh
# 1. Check if dwm is current windown manager.
# 2. Start dwmbar only if it's not running.
[ $GDMSESSION = "dwm" ] && { pgrep dwmbar || dwmbar; } &
pgrep -x power_alert.sh >/dev/null || power_alert.sh