mirror of
				https://forge.katzen.cafe/schrottkatze/nix-configs.git
				synced 2025-10-31 01:27:57 +01:00 
			
		
		
		
	Switch to niri - Episode 2: The (first?) purge
This commit is contained in:
		
					parent
					
						
							
								f28ec1ae8f
							
						
					
				
			
			
				commit
				
					
						c2ebb8d760
					
				
			
		
					 54 changed files with 192 additions and 83206 deletions
				
			
		|  | @ -0,0 +1,27 @@ | |||
| (deflisten bat0  | ||||
|   :initial "<span foreground=\"#cc241d\">BAT0 ERR</span>" | ||||
|   { "~/.config/eww/scripts/bat.nu BAT0"} | ||||
| ) | ||||
| (deflisten bat1 | ||||
|   :initial "<span foreground=\"#cc241d\">BAT1 ERR</span>" | ||||
|   { "~/.config/eww/scripts/bat.nu BAT1"} | ||||
| ) | ||||
| 
 | ||||
| (defwidget cpu []  | ||||
|   (box | ||||
|     :class "cpuIndicator" | ||||
|     (label | ||||
|       :markup "<span foreground=\"#d65d0e\"></span> ${strlength(round(EWW_CPU.avg, 0)) == 1 ? " ${round(EWW_CPU.avg, 0)}" : round(EWW_CPU.avg, 0)}<span foreground=\"#7c6f64\">%</span>" | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (defwidget mem [] | ||||
|   (box  | ||||
|     :class "memIndicator" | ||||
|     (label | ||||
|       :markup "<span foreground=\"#d65d0e\"> </span> ${round(EWW_RAM.used_mem_perc, 0)}<span foreground=\"#7c6f64\">%</span>" | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
|  | @ -0,0 +1,10 @@ | |||
| (defwidget time [] | ||||
|   (label  | ||||
|     :markup {  | ||||
|       formattime( | ||||
|         EWW_TIME,  | ||||
|         "<span foreground=\"#d65d0e\"></span> %Y<span foreground=\"#7c6f64\">-</span>%m<span foreground=\"#7c6f64\">-</span>%d <span foreground=\"#d65d0e\"></span> %H<span foreground=\"#7c6f64\">:</span>%M<span foreground=\"#7c6f64\">:</span>%S " | ||||
|       )  | ||||
|     } | ||||
|   ) | ||||
| ) | ||||
|  | @ -0,0 +1,58 @@ | |||
| (include "topBar/time.yuck") | ||||
| (include "topBar/sysinfo.yuck") | ||||
| (include "util.yuck") | ||||
| 
 | ||||
| (defwindow topBar | ||||
|   :monitor 0  | ||||
|   :stacking "fg" | ||||
|   :wm-ignore true | ||||
|   :exclusive true | ||||
|   :geometry (geometry | ||||
|               :width "100%" | ||||
|               :height "33px" | ||||
|               :anchor "top center") | ||||
|   (topBar)) | ||||
| 
 | ||||
| (defwidget topBar [] | ||||
|   (overlay | ||||
|     :class "topBar" | ||||
|     (transform | ||||
|       :translate-y "-1.5px" | ||||
|       (centerbox | ||||
|         (box | ||||
|           :halign "start" | ||||
|           :spacing 12 | ||||
|           :space-evenly false | ||||
|           (label :text " ") | ||||
|           (cpu) | ||||
|           (sep) | ||||
|           (mem) | ||||
|           (sep) | ||||
|           (label :markup bat0) | ||||
|           (sep) | ||||
|           (label :markup bat1) | ||||
|         ) | ||||
|         (box | ||||
|           :halign "center" | ||||
|           (systray | ||||
|             :icon-size 18 | ||||
|             :spacing 3 | ||||
|           ) | ||||
|         ) | ||||
|         (box | ||||
|           :halign "end" | ||||
|           (time) | ||||
|         ) | ||||
|       ) | ||||
|     ) | ||||
|     (box | ||||
|       :class "transFlag" | ||||
|       :height 1 | ||||
|       ( flagEl :flipped false :color "#5BCEFA") | ||||
|       ( flagEl :flipped false :color "#F5A9B8") | ||||
|       ( flagEl :flipped false :color "#FFFFFF") | ||||
|       ( flagEl :flipped false :color "#F5A9B8") | ||||
|       ( flagEl :flipped false :color "#5BCEFA") | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Schrottkatze
				Schrottkatze