Files
dotfiles/autostart/20_screen.sh

12 lines
383 B
Bash
Raw Normal View History

2019-04-14 11:54:29 +02:00
#!/usr/bin/env bash
printf '%s\n' "start compton"
systemd-run --remain-after-exit --user --setenv=DISPLAY=${DISPLAY} compton --backend glx --vsync opengl &
printf '%s\n' "disable screen blanking"
xset -dpms &
xset s off &
printf '%s\n' "disable wakeup when lid switched"
grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup