minor changes
This commit is contained in:
		
							parent
							
								
									91482ee4b8
								
							
						
					
					
						commit
						833bfad473
					
				
							
								
								
									
										4
									
								
								eww/yuck/dock/dock_window.yuck
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								eww/yuck/dock/dock_window.yuck
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  | (defwindow dock | ||||||
|  |      | ||||||
|  | 
 | ||||||
|  | ) | ||||||
| @ -1,37 +1,38 @@ | |||||||
| (defwidget osd_widg [osdtype osd_value] | (defwidget osd_widg [osdtype osd_value] | ||||||
|     (overlay |     (overlay | ||||||
|     :class  "osd_progbar_container ${osdtype}" |         :class  "osd_progbar_container ${osdtype}" | ||||||
|     :active false |         :active false | ||||||
|     :halign "fill" |  | ||||||
|     :height 50 |  | ||||||
|     :width  200 |  | ||||||
|     (box |  | ||||||
|         :class  "osd_prog_bg" |  | ||||||
|         :halign "fill" |         :halign "fill" | ||||||
|         :valign "fill" |  | ||||||
|         :height 50 |         :height 50 | ||||||
|         :width  200 |         :width  200 | ||||||
|     ) |          | ||||||
|     (box |         (box | ||||||
|         :class  "osd_prog_filled ${osd_value.status}" |             :class  "osd_prog_bg" | ||||||
|         :height 50 |             :halign "fill" | ||||||
|         :width  "${(200/100)*osd_value.level}" |             :valign "fill" | ||||||
|         :halign "start" |             :height 50 | ||||||
|         :valign "fill" |             :width  200 | ||||||
|     ) |         ) | ||||||
|     (label |         (box | ||||||
|         :class  "osd_value" |             :class  "osd_prog_filled ${osd_value.status}" | ||||||
|         :height 35 |             :height 50 | ||||||
|         :halign "end" |             :width  "${(200/100)*osd_value.level}" | ||||||
|         :valign "center" |             :halign "start" | ||||||
|         :text   "${osd_value.level}%" |             :valign "fill" | ||||||
|     ) |         ) | ||||||
|     (label |         (label | ||||||
|         :class  "osd_icon" |             :class  "osd_value" | ||||||
|         :height 35 |             :height 35 | ||||||
|         :halign "start" |             :halign "end" | ||||||
|         :valign "center" |             :valign "center" | ||||||
|         :text   "${osd_value.icon}" |             :text   "${osd_value.level}%" | ||||||
|     ) |         ) | ||||||
|  |         (label | ||||||
|  |             :class  "osd_icon" | ||||||
|  |             :height 35 | ||||||
|  |             :halign "start" | ||||||
|  |             :valign "center" | ||||||
|  |             :text   "${osd_value.icon}" | ||||||
|  |         ) | ||||||
|     ) |     ) | ||||||
| ) | ) | ||||||
| @ -2,22 +2,24 @@ | |||||||
| 
 | 
 | ||||||
| (defwindow osd [osdtype] | (defwindow osd [osdtype] | ||||||
|     :geometry |     :geometry | ||||||
|     (geometry :x      "-1%" |         (geometry | ||||||
|           :y      "4.5%" |             :x      "-1%" | ||||||
|           :width  "10%" |             :y      "4.5%" | ||||||
|           :height "4%" |             :width  "10%" | ||||||
|           :anchor "top right" |             :height "4%" | ||||||
|     ) |             :anchor "top right" | ||||||
|     :halign "end" |         ) | ||||||
|     :valign "end" |     :halign     "end" | ||||||
|  |     :valign     "end" | ||||||
|     :monitor    0 |     :monitor    0 | ||||||
|     :stacking   "fg" |     :stacking   "fg" | ||||||
|     :windowtype "dock" |     :windowtype "dock" | ||||||
|     :wm-ignore  true |     :wm-ignore  true | ||||||
| 
 | 
 | ||||||
|     (osd_widg |     (osd_widg | ||||||
|     :osdtype    "${osdtype}" |         :osdtype    "${osdtype}" | ||||||
|     :osd_value  {osdtype=="osd_vol" ? |         :osd_value  | ||||||
|  |             {osdtype=="osd_vol" ? | ||||||
|                 "${vol}" : osdtype=="osd_bri" ? |                 "${vol}" : osdtype=="osd_bri" ? | ||||||
|                         "${brit}" : "${battery}" |                         "${brit}" : "${battery}" | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user