add some shortcuts

This commit is contained in:
2023-08-27 21:05:46 +02:00
parent b1fb8d41f9
commit 877abe22a7

View File

@@ -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}},