Add idle inhibitor to waybar
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
	"layer": "top",
 | 
			
		||||
	"height": 40,
 | 
			
		||||
	"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
 | 
			
		||||
	"modules-left": ["sway/workspaces", "sway/mode", "idle_inhibitor"],
 | 
			
		||||
	"modules-center": ["tray"],
 | 
			
		||||
	"modules-right": ["pulseaudio", "battery", "clock"],
 | 
			
		||||
	"sway/workspaces": {
 | 
			
		||||
@@ -19,6 +19,13 @@
 | 
			
		||||
			"10": []
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	"idle_inhibitor": {
 | 
			
		||||
		"format": "{icon}",
 | 
			
		||||
		"format-icons": {
 | 
			
		||||
			"activated": "",
 | 
			
		||||
			"deactivated": ""
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	"tray": {
 | 
			
		||||
		"icon-size": 16,
 | 
			
		||||
		"spacing": 10
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,15 @@ window#waybar {
 | 
			
		||||
	padding: 0 1em;
 | 
			
		||||
	color: #ebdbb2;
 | 
			
		||||
}
 | 
			
		||||
#idle_inhibitor {
 | 
			
		||||
	padding: 0 1em;
 | 
			
		||||
}
 | 
			
		||||
#idle_inhibitor.deactivated {
 | 
			
		||||
	color: #32302f;
 | 
			
		||||
}
 | 
			
		||||
#idle_inhibitor.activated {
 | 
			
		||||
	color: #fb4934;
 | 
			
		||||
}
 | 
			
		||||
#battery {
 | 
			
		||||
	padding: 0 1em;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user