rc.xml, volumettf

This commit is contained in:
Daniel Napora 2022-09-20 13:58:30 +02:00
parent 166aab96da
commit 65bf62ba75
2 changed files with 20 additions and 11 deletions

View File

@ -373,6 +373,11 @@
<command>mabox-terminal</command>
</action>
</keybind>
<keybind key="W-grave">
<action name="Execute">
<command>skippy-xd-fix</command>
</action>
</keybind>
<keybind key="W-w">
<action name="Execute">
<command>exo-open --launch WebBrowser</command>
@ -1092,7 +1097,11 @@
</then>
</action>
</mousebind>
<mousebind action="Press" button="W-Right">
<action name="Execute">
<command>colorizer-ob -s</command>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind action="Press" button="Left">
@ -1299,9 +1308,9 @@
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Left" action="Press">
<!--<mousebind button="Left" action="Press">
<action name="ToggleShowDesktop"/>
</mousebind>
</mousebind>-->
<mousebind action="Press" button="Middle">
<action name="Execute">
<command>jgdesktops -s</command>

View File

@ -6,20 +6,20 @@ vol=$(LANG=C pactl list sinks | awk '/Volume:/ {printf "%s ",$5}' | cut -f1 -d '
if [[ $muted = "no" ]]; then
if [[ $vol -ge 80 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 70 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 60 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "奔<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 50 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "奔<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 30 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "奔<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 10 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "<sup><span size='xx-small'> $vol%</span></sup>"
elif [[ $vol -ge 0 ]]; then
echo "<sup><span size='xx-small'> $vol%</span></sup>"
echo "<sup><span size='xx-small'> $vol%</span></sup>"
fi
else
echo "<sub><span size='xx-small'> $vol%</span></sub>"
echo "婢<sup><span size='xx-small'> $vol%</span></sup>"
fi