From 601ed6d2e1c0a7d60e08e9e96d624966aac35bce Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Thu, 23 Jan 2025 11:51:33 +0300 Subject: [PATCH] fixed map-pointer --- river/init.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/river/init.lua b/river/init.lua index 72bc72e..581ba88 100755 --- a/river/init.lua +++ b/river/init.lua @@ -343,9 +343,12 @@ for map_type, tbl in pairs(mappings) do else opt = '-' .. opt end - - -- -layout 0 is hardcoded to make mappings work on any layout - os.execute(string.format('riverctl %s -layout 0 %s %s %s %s %s', map_type, opt, mode, modifiers, binding.key, cmd)) + local layout = '' + -- -layout 0 is hardcoded on 'riverctl map *' to make mappings work on any layout + if map_type == 'map' then + layout = '-layout 0' + end + os.execute(string.format('riverctl %s %s %s %s %s %s %s', map_type, layout, opt, mode, modifiers, binding.key, cmd)) -- Duplicate mappings of mode 'locked' for mode 'normal' if mode == 'locked' then