This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- mpv script to manage the state of night color | |
-- Global variable to store the initial state of night color | |
local night_color_was_enabled = false | |
-- Function to execute shell commands and capture output | |
function execute_command(cmd) | |
local handle = io.popen(cmd) | |
local result = handle:read("*a") | |
handle:close() |