summaryrefslogtreecommitdiff
path: root/qubes-dwm-6.2/autostart/autostart.sh
blob: bbf830f835dcbdd1d3cea5be02de7d42af50810f (plain)
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
#!/bin/sh

# This is to catch lock-session from systemd
xss-lock lock &

# No dpms
xset -dpms

# The idle timer is handled elsewhere
echo "enable autolock" > ~/.autolock_status
toggle_autolock

# Monitor battery
battery_monitor &

# Automatic colour temperature adjustment for Baltimore
redshift -l +39:-76 &

# Compositor
picom &

# Monitor configuration
srandrd display_handler
if [ -n "$(xrandr | grep 'HDMI-1 connected')" ]; then
  SRANDRD_OUTPUT=HDMI-1 SRANDRD_EVENT=connected display_handler
fi;

exec dwm_status &