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,65 @@ | |||
| (include "bottomBar/workspaces.yuck") | ||||
| (include "bottomBar/traveldings.yuck") | ||||
| 
 | ||||
| (defwindow bottomBar | ||||
|   :monitor 0 | ||||
|   :stacking "fg" | ||||
|   :wm-ignore true | ||||
|   :exclusive true | ||||
|   :geometry (geometry | ||||
|               :width "100%" | ||||
|               :height "33px" | ||||
|               :anchor "bottom center") | ||||
|   (bottomBar)) | ||||
| 
 | ||||
| (defwidget bottomBar [] | ||||
|   (overlay | ||||
|     :class "bottomBar" | ||||
|     (transform | ||||
|       :translate-y "1.5px" | ||||
|       (centerbox | ||||
|         (box | ||||
|           :halign "start" | ||||
|           (workspaceWidget) | ||||
|         ) | ||||
|         (box | ||||
|           :halign "center" | ||||
|           (traveldings) | ||||
|         ) | ||||
|         (box | ||||
|           :halign "end" | ||||
|           ; (label :text "${iceData.speed}km/h") | ||||
|           (iceTacho) | ||||
|         ) | ||||
|       ) | ||||
|     ) | ||||
|     (box | ||||
|       :class "lesbianFlag" | ||||
|       :height 1 | ||||
|       ( flagEl :flipped true :color "#D52D00") | ||||
|       ( flagEl :flipped true :color "#EF7627") | ||||
|       ( flagEl :flipped true :color "#FF9A56") | ||||
|       ( flagEl :flipped true :color "#FFFFFF") | ||||
|       ( flagEl :flipped true :color "#D162A4") | ||||
|       ( flagEl :flipped true :color "#B55690") | ||||
|       ( flagEl :flipped true :color "#A30262") | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (defwidget iceTacho [] | ||||
|   (box | ||||
|     :class "iceTacho" | ||||
|     :tooltip "Tz${iceTachoData.tzn} (BR ${iceTachoData.br})" | ||||
|     (circular-progress | ||||
|       :value { iceTachoData.frac * 60 + 20 } | ||||
|       :thickness 3 | ||||
|     ) | ||||
|     (label :text "${iceTachoData.speed} km/h") | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (deflisten iceTachoData | ||||
|   :initial "null" | ||||
|   { "~/.config/eww/scripts/iceTacho.nu" } | ||||
| ) | ||||
|  | @ -0,0 +1,37 @@ | |||
| (defwidget traveldings [] | ||||
|   (revealer | ||||
|     :class "traveldings" | ||||
|     :transition "crossfade" | ||||
|     :reveal { traveldings_data != "null" } | ||||
|     (traveldingsBarWidget) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (defwidget traveldingsBarWidget [] | ||||
|   (overlay | ||||
|     (box | ||||
|       :width 640 | ||||
|       (label  | ||||
|         :halign "start" | ||||
|         :text "${traveldings_data.line} -> ${strlength(traveldings_data.arrival_station) > 24 ? "${substring(traveldings_data.arrival_station, 0, 24)}…" : traveldings_data.arrival_station}${traveldings_data.arrival_platform_data_available ? " (Gl. ${traveldings_data.arrival_platform_real})" : ""}" | ||||
|       ) | ||||
|       (label  | ||||
|         :halign "end" | ||||
|         :text { traveldings_data.time_left >= 3600 ? formattime(traveldings_data.time_left, "noch %-Hh %-Mmin", "Etc/UTC") : formattime(traveldings_data.time_left, "noch %-Mmin", "Etc/UTC") } | ||||
|       ) | ||||
|     ) | ||||
|     (box | ||||
|       (progress | ||||
|         :class { traveldings_data.live ? "traveldings_live" : "traveldings_disconnected" } | ||||
|         :value {traveldings_data.progress * 100} | ||||
|         :orientation "horizontal" | ||||
|       ) | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| 
 | ||||
| (deflisten traveldings_data | ||||
|   :initial "null"  | ||||
|   "traveldings current" | ||||
| ) | ||||
|  | @ -0,0 +1,18 @@ | |||
| (defwidget workspaceWidget [] | ||||
|   (box  | ||||
|     :class "workspaces" | ||||
|     (for workspace in workspaces | ||||
|       (button | ||||
|         :style "border-bottom: 4px solid ${workspace.color}${workspace.active ? "; background-color: #3c3836" : ""}" | ||||
|         :class "${workspace.focused ? "focused" : ""}" | ||||
|         :onclick "swaymsg workspace ${workspace.name}" | ||||
|         (label :text "${workspace.idx}") | ||||
|       ) | ||||
|     ) | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (deflisten workspaces | ||||
|   :initial "[]" | ||||
|   "bar-ws-monitor" | ||||
| ) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Schrottkatze
				Schrottkatze