diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:30:59 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:31:16 +0200 | 
| commit | e8fbc3a1652f74099e52ef94190cbcca064aa859 (patch) | |
| tree | 42813ab9614dd1c0cbd6052b585828e7d2d493e7 | |
| parent | ff199960c985d93e1174797765c115adc7e63ba6 (diff) | |
added custom memory module
| -rw-r--r-- | config/hyprland/waybar/config.jsonc | 10 | ||||
| -rw-r--r-- | config/hyprland/waybar/style.css | 6 | 
2 files changed, 8 insertions, 8 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index c325c96..4760ad3 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -2,7 +2,7 @@  	"layer": "top",  	"modules-left": ["wlr/workspaces", "mpd"],  	"modules-center": ["hyprland/window"], -	"modules-right": ["network", "pulseaudio", "temperature", "cpu", "memory", "clock", "tray"], +	"modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "clock", "tray"],  	"wlr/workspaces": {  		"on-click": "activate",  	}, @@ -39,10 +39,10 @@  		"format": " {usage:2}%",  		"interval": 3,  	}, -	"memory": { -		"tooltip": false, -		"format": " {used:.2f}G", -		"interval": 3, +	"custom/memory": { +		"exec": "/home/aluc/script.sh", +		"format": "{}", +		"restart-interval": 3,  	},  	"clock": {  		"format": "{:%H:%M}", diff --git a/config/hyprland/waybar/style.css b/config/hyprland/waybar/style.css index 29b429b..4b12d00 100644 --- a/config/hyprland/waybar/style.css +++ b/config/hyprland/waybar/style.css @@ -36,7 +36,7 @@ window#waybar.PCSX2 #window {  }  #mpd, -#network, #pulseaudio, #temperature, #cpu, #memory { +#network, #pulseaudio, #temperature, #cpu, #custom-memory {  	margin-left: 8px;  	padding-left: 16px;  	padding-right: 16px; @@ -44,7 +44,7 @@ window#waybar.PCSX2 #window {  }  #workspaces, #mpd, -#network, #pulseaudio, #temperature, #cpu, #memory, #workspaces, #clock, #tray { +#network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray {  	margin-top: 4px;  	margin-bottom: 2px;  	transition: none; @@ -107,7 +107,7 @@ window#waybar.PCSX2 #window {  	background: #ebcb8b;  } -#memory { +#custom-memory {  	color: #2e3440;  	background: #a3be8c;  }  | 
