From 877abe22a73425350e2602ffda6714c96c3ed1e1 Mon Sep 17 00:00:00 2001 From: jika Date: Sun, 27 Aug 2023 21:05:46 +0200 Subject: [PATCH] add some shortcuts --- config.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index c68afe0..fa6126f 100644 --- a/config.h +++ b/config.h @@ -24,7 +24,7 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = {"", "", "󰙯", "󰎆", ""}; +static const char *tags[] = {"", "", "", "󰙯", "󰎆"}; static const Rule rules[] = { /* xprop(1): @@ -73,7 +73,9 @@ static const char *dmenucmd[] = { static const char *termcmd[] = {"alacritty", NULL}; static const char *browsercmd[] = {"firefox", NULL}; static const char *filemanagercmd[] = {"thunar", NULL}; -static const char *screenshotcmd[] = {"xfce4-screenshooter", "-r -s ~/Pictures", NULL}; +static const char *idecmd[] = {"alacritty", "-e", "/home/jika/.local/bin/lvim", NULL}; +static const char *screenshotcmd[] = {"xfce4-screenshooter", "-r", "-s", "Pictures", NULL}; +static const char *switchkbcmd[] = {"xkb-switch", "-n", NULL}; #include "shiftview.c" static Key keys[] = { @@ -82,12 +84,14 @@ static Key keys[] = { {MODKEY, XK_t, spawn, {.v = termcmd}}, {MODKEY, XK_w, spawn, {.v = browsercmd}}, {MODKEY, XK_f, spawn, {.v = filemanagercmd}}, - {MODKEY, XK_s, spawn, {.v = screenshotcmd}}, + {MODKEY, XK_i, spawn, {.v = idecmd}}, + {MODKEY | ShiftMask, XK_s, spawn, {.v = screenshotcmd}}, + {NULL, XK_Alt_L | ShiftMask, spawn, {.v = switchkbcmd }}, {MODKEY, XK_b, togglebar, {0}}, {MODKEY, XK_j, focusstack, {.i = +1}}, {MODKEY, XK_k, focusstack, {.i = -1}}, - {MODKEY, XK_i, incnmaster, {.i = +1}}, - {MODKEY, XK_d, incnmaster, {.i = -1}}, + {MODKEY | ShiftMask, XK_i, incnmaster, {.i = +1}}, + {MODKEY | ShiftMask, XK_d, incnmaster, {.i = -1}}, {MODKEY, XK_h, setmfact, {.f = -0.05}}, {MODKEY, XK_l, setmfact, {.f = +0.05}}, {MODKEY, XK_Return, zoom, {0}},