dev #19
					 2 changed files with 19 additions and 6 deletions
				
			
		|  | @ -30,9 +30,9 @@ | ||||||
|     "name": "keep", |     "name": "keep", | ||||||
|     "position": "top", |     "position": "top", | ||||||
|     "height": 25, |     "height": 25, | ||||||
|     "modules-left": ["sway/mode", "keyboard-state"], |     "modules-left": ["sway/mode"], | ||||||
|     "modules-center": ["clock"], |     "modules-center": ["clock"], | ||||||
|     "modules-right": ["privacy"], |     "modules-right": ["privacy", "keyboard-state"], | ||||||
| 
 | 
 | ||||||
|     "include": [ |     "include": [ | ||||||
|         // Import modules (!) |         // Import modules (!) | ||||||
|  |  | ||||||
|  | @ -48,18 +48,31 @@ | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/light-dark-toggle": { |     "custom/light-dark-toggle": { | ||||||
|  |         "exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g", | ||||||
|  |         "exec-on-event": true, | ||||||
|         "on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh", |         "on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh", | ||||||
|         "tooltip-format": "Toggle between light and dark mode", |         // "format": "\uf042 ", | ||||||
|         "format": "\uf042 ", |         "format": "{icon}", | ||||||
|  |         "format-icons": [ | ||||||
|  |             "\uf185", | ||||||
|  |             "\uf111" | ||||||
|  |         ], | ||||||
|  |         "tooltip": true, | ||||||
|  |         "tooltip-format": "Toggle between light and dark mode" | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
|  |     "custom/keyboard-switch": { | ||||||
|  |         "format": "\uf11c", | ||||||
|  |         "on-click": "swaymsg input type:keyboard xkb_switch_layout next", | ||||||
|  |         "tooltip-format": "Toggle keyboard layouts", | ||||||
|         "tooltip": true |         "tooltip": true | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/night-light-toggle": { |     "custom/night-light-toggle": { | ||||||
|         "on-click": "bash ${SCRIPT_DIR}/sunset.sh", |         "on-click": "bash ${SCRIPT_DIR}/sunset.sh", | ||||||
|         "tooltip-format": "Toggle night-light on or off", |  | ||||||
|         "format": "\uf0eb ", |         "format": "\uf0eb ", | ||||||
|         "tooltip": true, |         "tooltip": true, | ||||||
|         "tooltip-format": "Toggle night-light on or off", |         "tooltip-format": "Toggle night-light on or off" | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/scratchpad-indicator": { |     "custom/scratchpad-indicator": { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue