]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/lxde/files/config_files/openbox/lxde-rc.xml
New configuration as of 2019-08-21
[perso/Immae/Config/Ansible.git] / roles / lxde / files / config_files / openbox / lxde-rc.xml
index 5003f1599dcf444fb76cd488cfec4234f93dd0f0..db5393ed20d0ee04574562de163ec91dd97dbd28 100644 (file)
         </keybind>
         <keybind key='XF86AudioRaiseVolume'>
             <action name='Execute'>
-                <command>bash -c &quot;pamixer --allow-boost -u -i 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] &amp;&amp; echo normal || echo critical`; dunstify -r $(($(cat $v))) -p Volume --hints=int:value:$vol -i &apos; &apos; -a Openbox-volume -t 1000 -u $color &gt; $v&quot;</command>
+                <command>bash -c &quot;pamixer --allow-boost -u -i 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] &amp;&amp; echo normal || echo critical`; dunstify -r $(($(head -n1 $v))) -p Volume --hints=int:value:$vol -i &apos; &apos; -a Openbox-volume -t 1000 -u $color &gt; $v&quot;</command>
             </action>
         </keybind>
         <keybind key='XF86AudioLowerVolume'>
             <action name='Execute'>
-                <command>bash -c &quot;pamixer --allow-boost -u -d 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] &amp;&amp; echo normal || echo critical`; dunstify -r $(($(cat $v))) -p Volume --hints=int:value:$vol -i &apos; &apos; -a Openbox-volume -t 1000 -u $color &gt; $v&quot;</command>
+                <command>bash -c &quot;pamixer --allow-boost -u -d 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] &amp;&amp; echo normal || echo critical`; dunstify -r $(($(head -n1 $v))) -p Volume --hints=int:value:$vol -i &apos; &apos; -a Openbox-volume -t 1000 -u $color &gt; $v&quot;</command>
             </action>
         </keybind>
         <keybind key='XF86AudioMute'>
     </menu>
     <!-- show the manage desktops section in the client-list-(combined-)menu -->
     <applications/>
-</openbox_config>
\ No newline at end of file
+</openbox_config>