{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },/* helper for spawning shell commands in the pre dwm-5.0 fashion */#defineSHCMD(cmd) { .v = (const char*[]){"/bin/sh","-c", cmd, NULL } ...
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },/* helper for spawning shell commands in the pre dwm-5.0 fashion */#defineSHCMD(cmd) { .v = (const char*[]){"/bin/sh","-c", cmd, NULL } ...
比如win+E 打开文件管理器Thunar cd dwmfiles/dwm/ nano config.def.h 在 static const Key keys[] = { 增加一行 { MODKEY, XK_e, spawn, SHCMD("thunar")}, 重新编译 rm -rf config.h make sudo make clean install 再比如 截图 flameshot 或者 spectacle 先获取 prt Scr的对照 xev #看 keycode ...
{ MODKEY, XK_s, togglescratch, SHCMD("tabbed -n scratchpad -c -r 2 st -w ''") }, /* super s | 打开st scratchpad */ { MODKEY, XK_Return, spawn, SHCMD("tabbed -n st -C tabbed -c -r 2 st -w ''") }, /* super enter | 打开st */ { MODKEY, XK_minus, spawn, SH...
/* spawn + SHCMD 执行对应命令 */ { MODKEY, XK_Return, spawn, SHCMD("st") }, 字体显示不全 请自行安装字体 仅以archlinux举例 yay -S nerd-fonts-jetbrains-mono yay -S ttf-material-design-icons yay -S ttf-joypixels yay -S wqy-microhei ...
在之前的博客中,我们将arch linux这个系统进行了一些美化,当然也是仅仅做到能看这个地步,要说跟网上...
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = {
在之前的博客中,我们将arch linux这个系统进行了一些美化,当然也是仅仅做到能看这个地步,要说跟网上...
drw = drw_create(dpy, screen, root, sw, sh, visual, depth, cmap); if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) die("no fonts could be loaded."); lrpad = drw->fonts->h; bh = drw->fonts->h + 2; updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, ...
static const char *termcmd[] = { "alacritty", NULL }; #定义alacritty终端的快捷键功能 static const char *volup[] = { "amixer", "-qM", "set", "Master", "2%+", "umute", NULL }; static const char *voldown[] = { "amixer", "-qM", "set", "Master", "2%-", "umute", ...