From 15491d7442c0e7069e90a27f7cc3196664301856 Mon Sep 17 00:00:00 2001 From: jacobeva Date: Wed, 25 Jan 2023 14:13:09 +0000 Subject: [PATCH] Added compatibility for UK keyboard and added keybindings --- config.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 4233ae1..1c1bb09 100644 --- a/config.h +++ b/config.h @@ -115,7 +115,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA /* commands */ static const char *termcmd[] = { "foot", NULL }; -static const char *menucmd[] = { "dmenu-run", NULL }; +static const char *menucmd[] = { "dmenu_run", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ @@ -125,7 +125,7 @@ static const Key keys[] = { { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, - { MODKEY, XKB_KEY_d, incnmaster, {.i = -1} }, + { MODKEY, XKB_KEY_u, incnmaster, {.i = -1} }, { MODKEY, XKB_KEY_h, setmfact, {.f = -0.05} }, { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05} }, { MODKEY, XKB_KEY_Return, zoom, {0} }, @@ -144,8 +144,8 @@ static const Key keys[] = { { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} }, TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), - TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), - TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), + TAGKEYS( XKB_KEY_2, XKB_KEY_quotedbl, 1), + TAGKEYS( XKB_KEY_3, XKB_KEY_sterling, 2), TAGKEYS( XKB_KEY_4, XKB_KEY_dollar, 3), TAGKEYS( XKB_KEY_5, XKB_KEY_percent, 4), TAGKEYS( XKB_KEY_6, XKB_KEY_asciicircum, 5), @@ -158,12 +158,16 @@ static const Key keys[] = { { MODKEY, XKB_KEY_l, spawn, SHCMD("swaylock") }, { MODKEY, XKB_KEY_o, spawn, SHCMD("passmenu") }, { MODKEY, XKB_KEY_r, spawn, SHCMD("MOZ_ENABLE_WAYLAND=1 torbrowser-launcher") }, + { MODKEY, XKB_KEY_d, spawn, SHCMD("MOZ_ENABLE_WAYLAND=1 librewolf") }, + { MODKEY, XKB_KEY_c, spawn, SHCMD("MOZ_ENABLE_WAYLAND=1 firefox") }, /* Function key bindings */ { 0, XKB_KEY_XF86MonBrightnessUp, spawn, SHCMD("brightnessctl set 10%+") }, { 0, XKB_KEY_XF86MonBrightnessDown, spawn, SHCMD("brightnessctl set 10%-") }, { 0, XKB_KEY_Print, spawn, SHCMD("GRIM_DEFAULT_DIR=/home/elimin8/Pictures/Screenshots/ grim -g \"$(slurp)\" - | wl-copy -t \"image/png\"") }, { WLR_MODIFIER_SHIFT, XKB_KEY_Print, spawn, SHCMD("GRIM_DEFAULT_DIR=/home/elimin8/Pictures/Screenshots/ grim -g \"$(slurp)\" && ls /home/elimin8/Pictures/Screenshots -Art | tail -n 1 | awk '{print \"/home/elimin8/Pictures/Screenshots/\"$1}' | wl-copy") }, + { MODKEY, XKB_KEY_b, spawn, SHCMD("$HOME/.local/bin/get-bookmark.sh") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_b, spawn, SHCMD("$HOME/.local/bin/add-bookmark.sh") }, /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },