Add Telegram bind

This commit is contained in:
Marco Thomas
2021-05-28 12:50:20 +02:00
parent 6ac3f640f9
commit bd659c8d6e

View File

@@ -71,17 +71,18 @@ static const Layout layouts[] = {
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *lock[] = { "slock", NULL };
static const char *termcmd[] = { "alacritty", NULL };
static const char *browser[] = { "firefox-nightly", NULL }; static const char *browser[] = { "firefox-nightly", NULL };
static const char *discord[] = { "discord", NULL }; static const char *discord[] = { "discord", NULL };
static const char *pavu[] = { "pavucontrol", NULL }; static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *flameshot[] = { "flameshot", "gui", NULL };
static const char *spotify[] = { "spotify", NULL };
static const char *files[] = { "thunar", NULL };
static const char *emacs[] = { "emacs", NULL }; static const char *emacs[] = { "emacs", NULL };
static const char *files[] = { "thunar", NULL };
static const char *flameshot[] = { "flameshot", "gui", NULL };
static const char *lock[] = { "slock", NULL };
static const char *pavu[] = { "pavucontrol", NULL };
static const char *pdf[] = { "zathura", NULL }; static const char *pdf[] = { "zathura", NULL };
static const char *spotify[] = { "spotify", NULL };
static const char *telegram[] = { "telegram-desktop", NULL};
static const char *termcmd[] = { "alacritty", NULL };
static const char *vol_up[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+2%", NULL }; static const char *vol_up[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+2%", NULL };
static const char *vol_down[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-2%", NULL }; static const char *vol_down[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-2%", NULL };
@@ -100,11 +101,12 @@ static Key keys[] = {
{ MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_e, spawn, {.v = files } }, { MODKEY, XK_e, spawn, {.v = files } },
{ MODKEY|ControlMask, XK_d, spawn, {.v = discord } },
{ MODKEY|ControlMask, XK_e, spawn, {.v = emacs } }, { MODKEY|ControlMask, XK_e, spawn, {.v = emacs } },
{ MODKEY|ControlMask, XK_f, spawn, {.v = browser } }, { MODKEY|ControlMask, XK_f, spawn, {.v = browser } },
{ MODKEY|ControlMask, XK_d, spawn, {.v = discord } },
{ MODKEY|ControlMask, XK_p, spawn, {.v = pavu } }, { MODKEY|ControlMask, XK_p, spawn, {.v = pavu } },
{ MODKEY|ControlMask, XK_s, spawn, {.v = spotify } }, { MODKEY|ControlMask, XK_s, spawn, {.v = spotify } },
{ MODKEY|ControlMask, XK_t, spawn, {.v = telegram } },
{ MODKEY|ControlMask, XK_z, spawn, {.v = pdf } }, { MODKEY|ControlMask, XK_z, spawn, {.v = pdf } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = flameshot } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = flameshot } },