commit 09e1c4b75bbc0bbdd9ae8f5d6b045b130f6060cf
parent 9d5b79098ced34bd20e829db34a88d8de735e710
Author: deurzen <max@deurzen.net>
Date: Sun, 12 Feb 2023 21:04:12 +0100
updates key bindings
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/kranewl/input/key-bindings.hh b/include/kranewl/input/key-bindings.hh
@@ -228,13 +228,13 @@ static const KeyBindings key_bindings = {
.repeatable = true
}
},
-{ { XKB_KEY_j, MODKEY | SECKEY },
+{ { XKB_KEY_j, MODKEY | WLR_MODIFIER_SHIFT },
{
.action = CALL(cycle_focus(Direction::Forward)),
.repeatable = true
}
},
-{ { XKB_KEY_k, MODKEY | SECKEY },
+{ { XKB_KEY_k, MODKEY | WLR_MODIFIER_SHIFT },
{
.action = CALL(cycle_focus(Direction::Backward)),
.repeatable = true
@@ -1064,31 +1064,31 @@ static const KeyBindings key_bindings = {
},
{ { XKB_KEY_XF86AudioMute, {} },
{
- .action = CALL_EXTERNAL(amixer -D pulse sset Master toggle),
+ .action = CALL_EXTERNAL(pactl set-sink-mute @DEFAULT_SINK@ toggle),
.repeatable = false
}
},
{ { XKB_KEY_XF86AudioLowerVolume, {} },
{
- .action = CALL_EXTERNAL(amixer -D pulse sset Master 5%-),
+ .action = CALL_EXTERNAL(pactl set-sink-volume @DEFAULT_SINK@ -5%),
.repeatable = true
}
},
{ { XKB_KEY_XF86AudioRaiseVolume, {} },
{
- .action = CALL_EXTERNAL(amixer -D pulse sset Master 5%+),
+ .action = CALL_EXTERNAL(pactl set-sink-volume @DEFAULT_SINK@ -5%),
.repeatable = true
}
},
{ { XKB_KEY_XF86AudioMute, WLR_MODIFIER_SHIFT },
{
- .action = CALL_EXTERNAL(amixer -D pulse sset Capture toggle),
+ .action = CALL_EXTERNAL(pactl set-source-mute @DEFAULT_SOURCE@ toggle),
.repeatable = false
}
},
{ { XKB_KEY_XF86AudioMicMute, {} },
{
- .action = CALL_EXTERNAL(amixer -D pulse sset Capture toggle),
+ .action = CALL_EXTERNAL(pactl set-source-mute @DEFAULT_SOURCE@ toggle),
.repeatable = false
}
},