aboutsummaryrefslogtreecommitdiff
path: root/lua/sleep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/sleep.lua')
-rw-r--r--lua/sleep.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/sleep.lua b/lua/sleep.lua
new file mode 100644
index 0000000..bba30f2
--- /dev/null
+++ b/lua/sleep.lua
@@ -0,0 +1,11 @@
+local function set_brightness()
+ mp.set_property_number("brightness", -50)
+ mp.commandv("seek", "20", "relative")
+end
+
+local function init()
+ mp.set_property_bool("pause", true)
+end
+
+mp.add_key_binding(nil, "test", set_brightness)
+init()