dual-function-keys: Prefer media keys over Super+F1/F2

Should make these keys easier to use and understand.
This commit is contained in:
Donovan Glover 2024-07-15 12:18:55 -04:00
parent 986df40078
commit b877855580
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 4 additions and 4 deletions

View File

@ -214,8 +214,6 @@ in
"${super}_SHIFT, A, exec, killall activate-linux || activate-linux -s 1.15 -x 412 -y 120 -c 1-1-1-0.05"
"${super}, O, exec, killall .ironbar-wrapper inotifywait pactl || ironbar"
"${super}_SHIFT, O, exec, eww close overlay || eww open overlay"
"${super}, F1, exec, killall rofi || rofi -show drun"
"${super}, F2, togglespecialworkspace"
''${super}, comma, exec, playerctl -p mpv position "5-" && ${notifySend} "Minus 5 seconds" "$(playerctl -p mpv position)"''
''${super}, period, exec, playerctl -p mpv position "5+" && ${notifySend} "Plus 5 seconds" "$(playerctl -p mpv position)"''
''${super}_SHIFT, comma, exec, playerctl -p mpv previous && ${notifySend} "Previous track" "$(playerctl -p mpv metadata xesam:title)"''
@ -264,6 +262,8 @@ in
", XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
", XF86Display, exec, ~/.config/${monitorScript}"
", XF86WLAN, exec, sleep 0.2 && ${vars.notifySend} \"WiFi\" \"$(nmcli radio wifi)\""
", XF86Messenger, togglespecialworkspace"
", XF86Favorites, exec, killall rofi || rofi -show drun"
];
};

View File

@ -74,12 +74,12 @@ in
}
{
KEY = "KEY_LEFTMETA";
TAP = [ "KEY_LEFTMETA" "KEY_F1" ];
TAP = "KEY_FAVORITES";
HOLD = "KEY_LEFTMETA";
}
{
KEY = "KEY_RIGHTSHIFT";
TAP = [ "KEY_LEFTMETA" "KEY_F2" ];
TAP = "KEY_MESSENGER";
HOLD = "KEY_RIGHTSHIFT";
}
{