summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-04-12 18:58:48 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-04-12 18:58:48 +0200
commit26732c68d35cd3ac8c5af86b74a594ab2dd1a65a (patch)
tree0659d30320e1d5097a396013cec982c541cb950c
parent58e6123251a5564c7bb3ee5b3926271c1d6df3fd (diff)
using new connmenu
-rwxr-xr-xbuild8
-rw-r--r--dwm/config.h10
2 files changed, 10 insertions, 8 deletions
diff --git a/build b/build
index 0270ba9..ca2f44d 100755
--- a/build
+++ b/build
@@ -38,11 +38,11 @@ make -C $ST_DIR
ln -s $ST_DIR/st $HOME/bin
-# connman_dmenu setup
-CD_DIR=$HOME'/src/connman_dmenu'
-git clone https://git.tombarrett.xyz/tom/connman_dmenu $CD_DIR
+# connmenu setup
+CM_DIR=$HOME'/src/connmenu'
+git clone https://git.tombarrett.xyz/tom/connmenu $CM_DIR
-ln -s $CD_DIR/connman_dmenu $HOME/bin
+ln -s $CM_DIR/connmenu $HOME/bin
# wallpapers setup
mkdir -p $HOME'/personal'
diff --git a/dwm/config.h b/dwm/config.h
index 4b0fcbe..f715cd8 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -58,8 +58,9 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL };
static const char *passmenucmd[] = { "passmenu", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL };
-static const char *volumeup[] = { "amixer", "sset", "Master", "5%+", NULL};
-static const char *volumedown[] = { "amixer", "sset", "Master", "5%-", NULL};
+static const char *connmenucmd[] = { "connmenu", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL };
+static const char *volumeupcmd[] = { "amixer", "sset", "Master", "5%+", NULL };
+static const char *volumedowncmd[] = { "amixer", "sset", "Master", "5%-", NULL };
static const char *termcmd[] = { "st", NULL };
static Key keys[] = {
@@ -67,9 +68,10 @@ static Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_c, spawn, {.v = passmenucmd } },
+ { MODKEY, XK_w, spawn, {.v = connmenucmd } },
- { MODKEY, XK_equal, spawn, {.v = volumeup } },
- { MODKEY, XK_minus, spawn, {.v = volumedown } },
+ { MODKEY, XK_equal, spawn, {.v = volumeupcmd } },
+ { MODKEY, XK_minus, spawn, {.v = volumedowncmd } },
{ MODKEY, XK_q, killclient, {0} },
{ MODKEY|ShiftMask, XK_e, quit, {0} },