Changes in blocks.
This commit is contained in:
parent
8c660ea2d0
commit
a82c8cd2e8
3 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ $(pamixer --get-mute) = true ] && echo "^c#161616^^b#fd4285^mute^d^" && exit
|
|
||||||
vol="$(pamixer --get-volume)"
|
vol="$(pamixer --get-volume)"
|
||||||
[ $(echo $vol | wc -c) -lt 4 ] && echo " ${vol}%" || echo "${vol}%"
|
device=$(pamixer --list-sources | awk '/Raven/ {print $1}')
|
||||||
|
[ $(echo $vol | wc -c) -lt 4 ] && svol=" ${vol}%" || svol="${vol}%"
|
||||||
|
[ $(pamixer --get-mute) = true ] && icon="🔇" || icon="🔊"
|
||||||
|
[ $(pamixer --source $device --get-mute) = true ] && micon="🔇" || micon="🎙️"
|
||||||
|
echo "${icon} ${svol} (mic ${micon})"
|
||||||
|
|
|
@ -141,7 +141,6 @@ static Key keys[] = {
|
||||||
{ SHTKEY, XK_comma, tagmon, {.i = -1 } },
|
{ SHTKEY, XK_comma, tagmon, {.i = -1 } },
|
||||||
{ SHTKEY, XK_period, tagmon, {.i = +1 } },
|
{ SHTKEY, XK_period, tagmon, {.i = +1 } },
|
||||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -46 $(pidof dwmblocks)") },
|
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -46 $(pidof dwmblocks)") },
|
||||||
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 0 toggle") },
|
|
||||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 5; kill -46 $(pidof dwmblocks)") },
|
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 5; kill -46 $(pidof dwmblocks)") },
|
||||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 5; kill -46 $(pidof dwmblocks)") },
|
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 5; kill -46 $(pidof dwmblocks)") },
|
||||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("sudo xbacklight -inc 10") },
|
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("sudo xbacklight -inc 10") },
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
||||||
static const Block blocks[] = {
|
static const Block blocks[] = {
|
||||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
{" 📧 ", "sb-mail", 180, 16 },
|
{"📧 ", "sb-mail", 180, 16 },
|
||||||
{"🔊 ", "sb-volume", 10, 12 },
|
{"", "sb-volume", 0, 12 },
|
||||||
{"📶 ", "sb-network", 1, 0 },
|
{"📶 ", "sb-network", 1, 0 },
|
||||||
{"", "sb-battery", 3, 0 },
|
{"", "sb-battery", 3, 0 },
|
||||||
{"📅 ", "date '+%F %T '", 1, 0 },
|
{"📅 ", "date '+%F %T '", 1, 0 },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue