diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-18 21:03:10 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-18 21:03:10 +0200 | 
| commit | 444b6fb072835dac17c6f0b18abdb4b730dd2171 (patch) | |
| tree | 64a6ebe1e9b2e23e17c04d207dd539357c7bacd1 | |
| parent | 260921f2fe0ad63081b9c5b63df5a572c49916c6 (diff) | |
added battery module
| -rw-r--r-- | config/hyprland/waybar/config.jsonc | 5 | ||||
| -rw-r--r-- | config/hyprland/waybar/style.css | 9 | 
2 files changed, 11 insertions, 3 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 948e1b8..c304ed7 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -1,6 +1,6 @@  {  	"layer": "top", -	"modules-left": ["wlr/workspaces", "mpd"], +	"modules-left": ["battery", "wlr/workspaces", "mpd"],  	"modules-center": ["hyprland/window"],  	"modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "clock", "tray"],  	"wlr/workspaces": { @@ -17,6 +17,9 @@          },  		"on-click": "mpc toggle",  	}, +	"battery": { +		"interval": 10, +	},  	"hyprland/window": {  		"format": "{}",  		"separate-outputs": true, diff --git a/config/hyprland/waybar/style.css b/config/hyprland/waybar/style.css index 4b12d00..efd0e81 100644 --- a/config/hyprland/waybar/style.css +++ b/config/hyprland/waybar/style.css @@ -35,7 +35,7 @@ window#waybar.PCSX2 #window {  	background: #e6e6e6;  } -#mpd, +#mpd, #battery,  #network, #pulseaudio, #temperature, #cpu, #custom-memory {  	margin-left: 8px;  	padding-left: 16px; @@ -43,13 +43,18 @@ window#waybar.PCSX2 #window {  	border-radius: 26px;  } -#workspaces, #mpd, +#workspaces, #mpd, #battery,  #network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray {  	margin-top: 4px;  	margin-bottom: 2px;  	transition: none;  } +#battery { +	color: #b48ead; +	background: #4c566a; +} +  #workspaces {  	margin-left: 12px;  	border-radius: 26px;  | 
