diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-06 19:48:41 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-06 19:48:41 -0800 |
commit | 24d3da37fa4651d2b3a5bbbfc4dba3f7c4c4cefa (patch) | |
tree | 6fbbc07ce298eebcc0cf81dcfa9d582122018972 /config.def.h | |
parent | d6013bbe6c726c01b9e7288c08084945a747d21f (diff) |
try fix bug
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h index fc2c7a4..53c0b99 100644 --- a/config.def.h +++ b/config.def.h @@ -67,14 +67,16 @@ 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 *mutecmd[] = { "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 *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 *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 *bright_up_cmd[] = { "backlight -u", NULL }; -static const char *bright_down_cmd[] = { "backlight -d", 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 Key keys[] = { |