aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-06 19:53:14 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-12-06 19:53:14 -0800
commit91d30f94e872bfa60e29f76ef4831b55116d6c6d (patch)
tree4ac226a4d0d23ddb4ff367354003591527feef3a /config.def.h
parent24d3da37fa4651d2b3a5bbbfc4dba3f7c4c4cefa (diff)
fix bug
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 53c0b99..ed945dc 100644
--- a/config.def.h
+++ b/config.def.h
@@ -67,17 +67,15 @@ 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_base01, "-nf", col_base04, "-sb", col_base0D, "-sf", col_base00, NULL };
static const char *termcmd[] = { "alacritty", NULL };
-//static const char *lower_volume_cmd[] = { "amixer set Master 5%-; kill -RTMIN+1 $(pidof -x sbar)", NULL };
-static const char *lower_volume_cmd[] = { "amixer", "set", "Master", "5%-;", "kill", "-RTMIN+1", "$(pidof", "-x", "sbar)", NULL };
-//static const char *mutecmd[] = { "amixer set Master toggle; kill -RTMIN+1 $(pidof -x sbar)", NULL };
+static const char *lower_volume_cmd[] = { "/bin/sh", "-c", "amixer set Master 5%-; kill -RTMIN+1 $(pidof -x sbar)", NULL };
static const char *mutecmd[] = { "/bin/sh", "-c", "amixer set Master toggle; kill -RTMIN+1 $(pidof -x sbar)", NULL };
static const char *nextcmd[] = { "playerctl", "next", NULL };
static const char *playcmd[] = { "playerctl", "play-pause", NULL };
static const char *prevcmd[] = { "playerctl", "previous", NULL };
-static const char *raise_volume_cmd[] = { "amixer set Master 5%+; kill -RTMIN+1 $(pidof -x sbar)", NULL };
+static const char *raise_volume_cmd[] = { "/bin/sh", "-c", "amixer set Master 5%+; kill -RTMIN+1 $(pidof -x sbar)", NULL };
static const char *bright_up_cmd[] = { "backlight", "-u", NULL };
static const char *bright_down_cmd[] = { "backlight", "-d", NULL };
-static const char *toggle_audio_capture_cmd[] = { "amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)", NULL };
+static const char *toggle_audio_capture_cmd[] = { "/bin/sh", "-c", "amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)", NULL };
static const Key keys[] = {
/* modifier key function argument */