aboutsummaryrefslogtreecommitdiff
path: root/lua/sleep.lua
diff options
context:
space:
mode:
authorben <ben@nagy.contact>2025-01-01 17:41:01 -0800
committerben <ben@nagy.contact>2025-01-01 17:41:01 -0800
commit16fb12c35ea3a89d3f35c7725e04994e93a407a3 (patch)
tree917a71998d3ece1118fea82971cd3b61d1e79830 /lua/sleep.lua
parent49a06fbf9c2a98c58c2c67abed937675aa659833 (diff)
added gitignore
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()