From b877855580f9d1cdc35efb32f4e2ab5d1b3e4ba9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 15 Jul 2024 12:18:55 -0400 Subject: [PATCH] dual-function-keys: Prefer media keys over Super+F1/F2 Should make these keys easier to use and understand. --- home/hyprland.nix | 4 ++-- modules/hardware.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index 4666cde0..4a676f89 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -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" ]; }; diff --git a/modules/hardware.nix b/modules/hardware.nix index 7824a85d..2c8a7b67 100644 --- a/modules/hardware.nix +++ b/modules/hardware.nix @@ -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"; } {