From c3f00795ba79525ca9d06bea9732ae4465940665 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Sun, 26 Jan 2025 13:02:20 +0300 Subject: [PATCH] Added media keys in mappings --- river/init.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/river/init.lua b/river/init.lua index 581ba88..f18a976 100755 --- a/river/init.lua +++ b/river/init.lua @@ -125,7 +125,7 @@ local mappings = { }, -- Screen locker { - mod = { 'Super' }, + mod = 'Super', key = 'O', command = { 'spawn', [['waylock -init-color 0x352e2c -input-color 0x575e7a -fail-color 0x833b18']] } }, @@ -246,6 +246,17 @@ local mappings = { key = 'F', command = 'toggle-fullscreen', }, + -- Media buttons + { + mod = 'None', + key = 'XF86AudioNext', + command = { 'spawn', [['mpc next && mpc toggle']] } + }, + { + mod = 'None', + key = 'XF86AudioPlay', + command = { 'spawn', [['mpc toggle']] } + } }, }, -- Mappings for pointer (mouse)