adding brightness widget
This commit is contained in:
		
							parent
							
								
									7863e720c3
								
							
						
					
					
						commit
						f9139f1b85
					
				
					 1 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								eww/bright.yuck
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								eww/bright.yuck
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,32 @@
 | 
			
		|||
(defwindow brightness
 | 
			
		||||
    :geometry (geometry :x "0px"
 | 
			
		||||
                        :y "40px"
 | 
			
		||||
                        :anchor "top center")
 | 
			
		||||
    :stacking "fg"
 | 
			
		||||
    :monitor "0"
 | 
			
		||||
(brightshow))
 | 
			
		||||
 | 
			
		||||
(defwidget brightshow [] 
 | 
			
		||||
           (box
 | 
			
		||||
            :class "volume-container"
 | 
			
		||||
            :orientation "h" 
 | 
			
		||||
            :space-evenly "false"
 | 
			
		||||
            :spacing 5
 | 
			
		||||
            (button
 | 
			
		||||
             :class "volume-icon"
 | 
			
		||||
             :valign "center"
 | 
			
		||||
             :halign "center"
 | 
			
		||||
             :onclick "" "墳")
 | 
			
		||||
            (scale
 | 
			
		||||
             :class "volume-value"
 | 
			
		||||
	     :value {volume_percent}
 | 
			
		||||
             :valign "center"
 | 
			
		||||
             :halign "start"
 | 
			
		||||
	     :orientation "h"
 | 
			
		||||
	     :max 150
 | 
			
		||||
	     :min 0)
 | 
			
		||||
            (label
 | 
			
		||||
             :class "volume-label"
 | 
			
		||||
             :halign "start"
 | 
			
		||||
             :valign "center"
 | 
			
		||||
             :text "${volume_percent}%")))
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue