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; +}