Files
dotfiles/autostart/20_screen.sh

12 lines
320 B
Bash
Raw Normal View History

2017-01-23 16:59:05 +01:00
#!/usr/bin/env bash
2018-08-16 07:25:01 +02:00
printf '%s\n' "start compton"
compton --backend xrender --vsync opengl &
2017-01-23 16:59:05 +01:00
2018-08-16 07:25:01 +02:00
printf '%s\n' "disable screen blanking"
xset -dpms &
xset s off &
2018-02-03 23:02:34 +01:00
2018-08-16 07:25:01 +02:00
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