mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-06-13 05:20:24 +01:00
add dark/light mode scripts
This commit is contained in:
9
enable-darkmode.sh
Normal file
9
enable-darkmode.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
!/bin/bash
|
||||
sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END'
|
||||
osascript <<EOD
|
||||
tell application "System Events"
|
||||
tell appearance preferences
|
||||
set dark mode to true # Can be one of: true, false, not dark
|
||||
end tell
|
||||
end tell
|
||||
EOD
|
||||
9
enable-lightmode.sh
Normal file
9
enable-lightmode.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
!/bin/bash
|
||||
sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END'
|
||||
osascript <<EOD
|
||||
tell application "System Events"
|
||||
tell appearance preferences
|
||||
set dark mode to false # Can be one of: true, false, not dark
|
||||
end tell
|
||||
end tell
|
||||
EOD
|
||||
Reference in New Issue
Block a user