From 2d6bcd9ff792b77d0a8676b2bf2b7bfe0d291c3f Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 27 Aug 2023 19:13:27 +1000 Subject: [PATCH] Added comamnds to enable/disable screen saver - change to laptop and enable screensaver - change to dock and disable screenaver --- .local/bin/screen-dock.sh | 2 ++ .local/bin/screen-laptop.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.local/bin/screen-dock.sh b/.local/bin/screen-dock.sh index 2ab7819..a4a7d32 100755 --- a/.local/bin/screen-dock.sh +++ b/.local/bin/screen-dock.sh @@ -1,2 +1,4 @@ #!/bin/sh xrandr --output eDP --off --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --mode 2560x1440 --pos 0x615 --rotate normal --output DisplayPort-3 --mode 2560x1440 --pos 2560x0 --rotate left --output DisplayPort-4 --off +xset s 0 0 -dpms +notify-send -t 3000 "Screensaver Disabled!" diff --git a/.local/bin/screen-laptop.sh b/.local/bin/screen-laptop.sh index 7a68dcf..0b98e98 100755 --- a/.local/bin/screen-laptop.sh +++ b/.local/bin/screen-laptop.sh @@ -1,2 +1,4 @@ #!/bin/sh xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off +xset s 360 360 +dpms +notify-send -t 3000 "Screensaver Enabled!"