Added dwmblocks fcitx5 support

This commit is contained in:
Alexander Rosenberg 2023-09-29 11:55:19 -07:00
parent ee9d4135e3
commit 69b72cc87f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -7,7 +7,7 @@ static const unsigned int systraypinning = 0; /* 0: sloppy systray follows sel
static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
static const unsigned int systrayspacing = 2; /* systray spacing */ static const unsigned int systrayspacing = 2; /* systray spacing */
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
static const int showsystray = 1; /* 0 means no systray */ static const int showsystray = 0; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "FiraCode Nerd Font:style=Medium:dpi=192:antialias=true:pixelsize=44" }; static const char *fonts[] = { "FiraCode Nerd Font:style=Medium:dpi=192:antialias=true:pixelsize=44" };
@ -60,17 +60,16 @@ static const Layout layouts[] = {
{ MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */ /* commands */
static const char *runcmd[] = { "dmenu_run", NULL }; static const char *runcmd[] = { "dmenu_run", NULL };
static const char *termcmd[] = { "kitty", "-1", NULL }; static const char *termcmd[] = { "kitty", "-1", NULL };
static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; static const char *emacscmd[] = { "emacsclient", "-nc", NULL };
static const char *diredcmd[] = { "emacsclient", "-nc", "--eval", "(dired \"~\")", NULL }; static const char *diredcmd[] = { "emacsclient", "-nc", "--eval", "(dired \"~\")", NULL };
static const char *mailcmd[] = { "emacsclient", "-nc", "--eval", "(mu4e)", NULL }; static const char *mailcmd[] = { "emacsclient", "-nc", "--eval", "(mu4e)", NULL };
static const char *toggletraycmd[] = { "toggle-stalonetray.sh", NULL };
static const char *khalcmd[] = { "kitty", "-1", "ikhal", NULL }; static const char *khalcmd[] = { "kitty", "-1", "ikhal", NULL };
static const char *browsercmd[] = { "mullvad-browser", NULL }; static const char *browsercmd[] = { "mullvad-browser", NULL };
static const char *fcitx5cmd[] = { "sh", "-c", "fcitx5-remote -t; pkill -RTMIN+2 dwmblocks", NULL };
static const char *lockcmd[] = { "loginctl", "lock-session", NULL }; static const char *lockcmd[] = { "loginctl", "lock-session", NULL };
static const char *passwdcmd[] = { "keepassxc", NULL }; static const char *passwdcmd[] = { "keepassxc", NULL };
static const char *volupcmd[] = { "pamixer", "-i", "1", NULL }; static const char *volupcmd[] = { "pamixer", "-i", "1", NULL };
@ -91,8 +90,10 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_e, spawn, {.v = emacscmd } }, { MODKEY|ShiftMask, XK_e, spawn, {.v = emacscmd } },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = diredcmd } }, { MODKEY|ShiftMask, XK_d, spawn, {.v = diredcmd } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } },
{ MODKEY|ShiftMask, XK_t, spawn, {.v = toggletraycmd } },
{ MODKEY|ShiftMask, XK_k, spawn, {.v = khalcmd } }, { MODKEY|ShiftMask, XK_k, spawn, {.v = khalcmd } },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } },
{ Mod1Mask|ShiftMask, XK_s, spawn, {.v = fcitx5cmd } },
{ MODKEY|ShiftMask, XK_o, spawn, {.v = lockcmd } }, { MODKEY|ShiftMask, XK_o, spawn, {.v = lockcmd } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = passwdcmd } }, { MODKEY|ShiftMask, XK_p, spawn, {.v = passwdcmd } },
{ MODKEY|ShiftMask, XK_n, spawn, {.v = selectsoundcmd } }, { MODKEY|ShiftMask, XK_n, spawn, {.v = selectsoundcmd } },
@ -124,7 +125,7 @@ static Key keys[] = {
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} }, { MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY|ShiftMask, XK_t, togglealwaysontop, {0} }, { MODKEY|ControlMask, XK_space, togglealwaysontop, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } },