dev #19
					 3 changed files with 20 additions and 9 deletions
				
			
		|  | @ -19,15 +19,24 @@ while getopts ":g" option; do | ||||||
|             if [ "${current_state}" == "${STOPPED_MSG}" ]; then |             if [ "${current_state}" == "${STOPPED_MSG}" ]; then | ||||||
|                 state='disconnected' |                 state='disconnected' | ||||||
|                 tooltip='Connect tailnet' |                 tooltip='Connect tailnet' | ||||||
|  | 
 | ||||||
|  |                 printf '{"alt": "%s", "tooltip": "%s", "class": "%s" }' \ | ||||||
|  |                     "${state}" "${tooltip}" "${state}" | ||||||
|             else |             else | ||||||
|                 state='connected' |                 state='connected' | ||||||
|                 tooltip="${status:='Disconnect tailnet'}" |                 tooltip="${status:='Disconnect tailnet'}" | ||||||
|  | 
 | ||||||
|  |                 printf '{"alt": "%s", "tooltip": "<tt>%q</tt>", "class": "%s" }' \ | ||||||
|  |                     "${state}" "${tooltip}" "${state}" | ||||||
|             fi |             fi | ||||||
| 
 | 
 | ||||||
|             printf '{"alt": "%s", "tooltip": "%q", "class": "%s" }' \ |  | ||||||
|                 "${state}" "${tooltip}" "${state}" |  | ||||||
|             exit 0 |             exit 0 | ||||||
|             ;; |             ;; | ||||||
|  | 
 | ||||||
|  |         *) | ||||||
|  |             echo 'Invalid option' | ||||||
|  |             exit 1 | ||||||
|  |             ;; | ||||||
|     esac |     esac | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -122,7 +122,8 @@ | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/toggle-light-dark": { |     "custom/toggle-light-dark": { | ||||||
|         "exec": "sleep 1 && bash ~/projects/sisyphus/scripts/toggle-light-dark.sh -g", |         "exec": "bash ~/projects/sisyphus/scripts/toggle-light-dark.sh -g", | ||||||
|  |         "interval": 60, | ||||||
|         "return-type": "json", |         "return-type": "json", | ||||||
|         "on-click": "bash ~/projects/sisyphus/scripts/toggle-light-dark.sh", |         "on-click": "bash ~/projects/sisyphus/scripts/toggle-light-dark.sh", | ||||||
|         "format": "{icon}", |         "format": "{icon}", | ||||||
|  | @ -134,19 +135,21 @@ | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/toggle-notifications": { |     "custom/toggle-notifications": { | ||||||
|         "exec": "sleep 6 && bash ~/projects/sisyphus/scripts/toggle-notifications.sh -g", |         "exec": "bash ~/projects/sisyphus/scripts/toggle-notifications.sh -g", | ||||||
|  |         "interval": 60, | ||||||
|         "return-type": "json", |         "return-type": "json", | ||||||
|         "on-click": "bash ~/projects/sisyphus/scripts/toggle-notifications.sh", |         "on-click": "bash ~/projects/sisyphus/scripts/toggle-notifications.sh", | ||||||
|         "format": "NOTIS {icon}", |         "format": "{icon}", | ||||||
|         "format-icons": { |         "format-icons": { | ||||||
|             "normal": "NRML", |             "normal": "\uf0f3", /*  */ | ||||||
|             "paused": "PAISED" |             "paused": "\uf1f6"  /*  */ | ||||||
|         }, |         }, | ||||||
|         "tooltip": true |         "tooltip": true | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     "custom/toggle-tailscale": { |     "custom/toggle-tailscale": { | ||||||
|         "exec": "sleep 2 && bash ~/projects/sisyphus/scripts/toggle-tailscale.sh -g", |         "exec": "bash ~/projects/sisyphus/scripts/toggle-tailscale.sh -g", | ||||||
|  |         "interval": 60, | ||||||
|         "return-type": "json", |         "return-type": "json", | ||||||
|         "on-click": "bash ~/projects/sisyphus/scripts/toggle-tailscale.sh", |         "on-click": "bash ~/projects/sisyphus/scripts/toggle-tailscale.sh", | ||||||
|         "format": "{icon}", |         "format": "{icon}", | ||||||
|  |  | ||||||
|  | @ -62,7 +62,6 @@ window#waybar { | ||||||
|     opacity: 0.6; |     opacity: 0.6; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| #mpris.Feishin { | #mpris.Feishin { | ||||||
|     background: linear-gradient(45deg, rgba(170,92,195,1) 100%, rgba(0,164,220,1) 0%); |     background: linear-gradient(45deg, rgba(170,92,195,1) 100%, rgba(0,164,220,1) 0%); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue