mirror of
https://github.com/tiyn/dwm.git
synced 2025-05-05 07:07:49 +02:00
remove unneeded code of terminal and dmenu
This commit is contained in:
parent
dd78bfd8a9
commit
6255476d24
@ -13,7 +13,6 @@ static const int showsystray = 1; /* 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[] = { "monospace:size=10" };
|
static const char *fonts[] = { "monospace:size=10" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
|
||||||
static const char normbgcolor[] = "#0e0f14";
|
static const char normbgcolor[] = "#0e0f14";
|
||||||
static const char normbordercolor[] = "#363b47";
|
static const char normbordercolor[] = "#363b47";
|
||||||
static const char normfgcolor[] = "#dfdfdf";
|
static const char normfgcolor[] = "#dfdfdf";
|
||||||
@ -74,10 +73,6 @@ static const Layout layouts[] = {
|
|||||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#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[] = { "dmenu_run", "-c", "-l", "20", NULL };
|
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY|ShiftMask, XK_Escape, quit, {0} },
|
{ MODKEY|ShiftMask, XK_Escape, quit, {0} },
|
||||||
|
2
dwm.c
2
dwm.c
@ -2091,8 +2091,6 @@ sigdwmblocks(const Arg *arg)
|
|||||||
void
|
void
|
||||||
spawn(const Arg *arg)
|
spawn(const Arg *arg)
|
||||||
{
|
{
|
||||||
if (arg->v == dmenucmd)
|
|
||||||
dmenumon[0] = '0' + selmon->num;
|
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
if (dpy)
|
if (dpy)
|
||||||
close(ConnectionNumber(dpy));
|
close(ConnectionNumber(dpy));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user