From 2d3bdb626c1b784b22a11a97caa23b6d9ef6d1a1 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Thu, 19 Nov 2020 19:07:07 -0300 Subject: [PATCH] add caffeinated --- dotfiles/waybar/config | 4 +--- dotfiles/waybar/style.css | 11 +++++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dotfiles/waybar/config b/dotfiles/waybar/config index 1d4c347..2327fb8 100644 --- a/dotfiles/waybar/config +++ b/dotfiles/waybar/config @@ -153,12 +153,10 @@ }, "custom/caffeine":{ "format":"{} ", - "exec":"pidof caffeinated &>/dev/null &&echo 零||echo 鈴", + "exec":"pidof caffeinated &>/dev/null &&echo  ||echo 鈴", "on-click":"pidof caffeinated &&pkill caffeinated||caffeinated -d ", "interval": 1 }, - - } // vim:ft=json diff --git a/dotfiles/waybar/style.css b/dotfiles/waybar/style.css index 6cb1567..335d347 100644 --- a/dotfiles/waybar/style.css +++ b/dotfiles/waybar/style.css @@ -78,7 +78,8 @@ window#waybar.empty { #custom-updates, #custom-weather, #custom-torrentD, -#custom-torrentS +#custom-torrentS, +#custom-caffeine { margin: 0 7px; color: {{@@ color.txt @@}}; @@ -95,7 +96,8 @@ window#waybar.empty { font-size: {{@@ font.size.big @@}}px; } #network, -#pulseaudio +#pulseaudio, +#custom-caffeine { margin-top:-1px; font-size:16px; @@ -118,3 +120,8 @@ window#waybar.empty { font-size: 0; border: none; } + +#tray { + padding: 0; + margin: 0; +}