diff --git a/bar/bar1.conf b/bar/bar1.conf index bd3f377..90bd47d 100644 --- a/bar/bar1.conf +++ b/bar/bar1.conf @@ -1,6 +1,3 @@ -interval=1 -color=#E9F1FF - [bandwidth_eth0] command=/home/simon/.i3/bar/src/bandwidth.php eth0 format=json @@ -68,6 +65,26 @@ format=json interval=1 min_width=button=1 +[app_Y] +command=/home/simon/.i3/bar/src/app.php Y "xdg-open https://www.youtube.com/feed/subscriptions" '#f00' 0 +format=json +interval=100 + +[app_F] +command=/home/simon/.i3/bar/src/app.php F "xdg-open https://www.facebook.com/" '#598df3' 0 +format=json +interval=100 + +[app_C] +command=/home/simon/.i3/bar/src/app.php C "xdg-open https://choualbox.com/new" '#eeb819' 0 +format=json +interval=100 + +[app_R] +command=/home/simon/.i3/bar/src/app.php R "xdg-open https://redmine.like-inn-developpement.com/client" '#ff4e51' +format=json +interval=100 + [volume] command=/home/simon/.i3/bar/src/volume.php format=json diff --git a/bar/src/app.php b/bar/src/app.php new file mode 100755 index 0000000..6a43085 --- /dev/null +++ b/bar/src/app.php @@ -0,0 +1,30 @@ +#!/usr/bin/php + $fullText, + 'short_text' => $shortText, + 'color' => $color, + 'separator' => $separator, + 'separator_block_width' => $separator ? 20 : 0, + ] +); diff --git a/bar/src/bandwidth.php b/bar/src/bandwidth.php index 752c357..01190db 100755 --- a/bar/src/bandwidth.php +++ b/bar/src/bandwidth.php @@ -30,6 +30,6 @@ echo block( 'bandwidth_'.$iface, [ 'full_text' => $fullText, - 'color' => color('info'), + 'color' => '#ffffff', ] );