mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 07:52:42 +01:00 
			
		
		
		
	feat(sway/scratchpad): add some configs
Add some configs for displaying. Remove draft codes.
This commit is contained in:
		| @@ -5,7 +5,7 @@ | ||||
|     // "width": 1280, // Waybar width | ||||
|     "spacing": 4, // Gaps between modules (4px) | ||||
|     // Choose the order of the modules | ||||
|     "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], | ||||
|     "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], | ||||
|     "modules-center": ["sway/window"], | ||||
|     "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], | ||||
|     // Modules configuration | ||||
| @@ -36,6 +36,13 @@ | ||||
|     "sway/mode": { | ||||
|         "format": "<span style=\"italic\">{}</span>" | ||||
|     }, | ||||
|     "sway/scratchpad": { | ||||
|         "format": "{icon} {count}", | ||||
|         "show-empty": false, | ||||
|         "format-icons": ["", ""], | ||||
|         "tooltip": true, | ||||
|         "tooltip-format": "{app}: {title}" | ||||
|     }, | ||||
|     "mpd": { | ||||
|         "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", | ||||
|         "format-disconnected": "Disconnected ", | ||||
|   | ||||
| @@ -78,6 +78,7 @@ window#waybar.chromium { | ||||
| #tray, | ||||
| #mode, | ||||
| #idle_inhibitor, | ||||
| #scratchpad, | ||||
| #mpd { | ||||
|     padding: 0 10px; | ||||
|     color: #ffffff; | ||||
| @@ -252,3 +253,11 @@ label:focus { | ||||
| #keyboard-state > label.locked { | ||||
|     background: rgba(0, 0, 0, 0.2); | ||||
| } | ||||
|  | ||||
| #scratchpad { | ||||
|     background: rgba(0, 0, 0, 0.2); | ||||
| } | ||||
|  | ||||
| #scratchpad.empty { | ||||
| 	background-color: transparent; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 asas1asas200
					asas1asas200