mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 03:40:57 +01:00
bspwm: Only disable power saving on virtual machines
Now physical machines still get power saving, and virtual machines don't since power saving is automatically handled by the host.
This commit is contained in:
parent
750fb7a2ba
commit
93e55359ed
@ -54,8 +54,12 @@ else
|
||||
wal -o ~/.config/wal/done.sh --theme base16-tomorrow-night
|
||||
fi
|
||||
|
||||
# Never blank the screen (disable power saving)
|
||||
xset s off -dpms
|
||||
# Never blank the screen if it's a virtual machine (disable power saving)
|
||||
VIRTUAL="$(systemd-detect-virt)"
|
||||
|
||||
if [[ "$VIRTUAL" != "none" ]]; then
|
||||
xset s off -dpms
|
||||
fi
|
||||
|
||||
# Start picom (prevents screen tearing)
|
||||
picom -b
|
||||
|
Loading…
Reference in New Issue
Block a user