update config.def.h

This commit is contained in:
Sakooooo 2023-08-05 22:55:27 +03:00
parent cd339a8e39
commit d0f27ceb74
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 10 additions and 4 deletions

View file

@ -93,6 +93,9 @@ static const char *termcmd[] = { "kitty", NULL };
static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%", NULL };
static const char *downvol[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *downvol[] = { "pactl", "set-sink-volume", "0", "-5%", NULL };
static const char *mutevol[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; static const char *mutevol[] = { "pactl", "set-sink-mute", "0", "toggle", NULL };
// brightness
static const char *brightnessup[] = { "brightnessctl", "s", "+100", NULL };
static const char *brightnessdown[] = { "brightnessctl", "s", "-100", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@ -142,12 +145,15 @@ static const Key keys[] = {
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
// brightness
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessup} },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdown} },
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1) TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2) TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3) TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4) TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5) // TAGKEYS( XK_6, 5)
// TAGKEYS( XK_7, 6) // TAGKEYS( XK_7, 6)
// TAGKEYS( XK_8, 7) // TAGKEYS( XK_8, 7)
// TAGKEYS( XK_9, 8) // TAGKEYS( XK_9, 8)

View file

@ -11,7 +11,7 @@ interval=0
cpu() { cpu() {
cpu_val=$(grep -o "^[^ ]*" /proc/loadavg) cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
printf "^c$black^ ^b$red^ CPU" printf "^c$white^ ^b$red^ CPU"
printf "^c$white^ ^b$grey^ $cpu_val" printf "^c$white^ ^b$grey^ $cpu_val"
} }
@ -34,9 +34,9 @@ battery() {
audio() { audio() {
get_vol=$(pamixer --get-volume-human) get_vol=$(pamixer --get-volume-human)
if [ $get_vol = 'muted' ]; then if [ $get_vol = 'muted' ]; then
printf "^c$blue^ 󰕾 Muted" printf "^c$white^  Muted"
else else
printf "^c$blue^ 󰕾 $get_vol" printf "^c$blue^ $get_vol"
fi fi
#printf "^c$blue^ 󰕾 $get_vol" #printf "^c$blue^ 󰕾 $get_vol"
} }