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