forked from nico/dots
matugen: change macOS dark/light mode
This commit is contained in:
parent
71fabc3a5f
commit
d39af55417
2 changed files with 13 additions and 0 deletions
9
stow/.config/matugen/scripts/macos-darkmode.sh
Executable file
9
stow/.config/matugen/scripts/macos-darkmode.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "dark" ]; then
|
||||
osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to true'
|
||||
elif [ "$1" = "light" ]; then
|
||||
osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to false'
|
||||
else
|
||||
echo "$0: [dark|light]"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue