update
This commit is contained in:
		
							parent
							
								
									738e20458a
								
							
						
					
					
						commit
						5c1de7d077
					
				|  | @ -24,6 +24,7 @@ | ||||||
| $terminal = kitty -e tmux | $terminal = kitty -e tmux | ||||||
| $fileManager = pcmanfm | $fileManager = pcmanfm | ||||||
| $menu = rofi -modi drun,run -show drun | $menu = rofi -modi drun,run -show drun | ||||||
|  | $sudomenu = rofi -modi drun,run -show drun -run-command 'lxsu {cmd}' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ################# | ################# | ||||||
|  | @ -187,6 +188,7 @@ bind = $mainMod, M, exit, | ||||||
| bind = $mainMod, E, exec, $fileManager | bind = $mainMod, E, exec, $fileManager | ||||||
| bind = SUPER_SHIFT, SPACE, togglefloating, | bind = SUPER_SHIFT, SPACE, togglefloating, | ||||||
| bind = $mainMod, D, exec, $menu | bind = $mainMod, D, exec, $menu | ||||||
|  | bind = SUPER_SHIFT,  D, exec, $sudomenu | ||||||
| bind = $mainMod, P, exec, kanshi | bind = $mainMod, P, exec, kanshi | ||||||
| bind = $mainMod, S, togglesplit, # dwindle | bind = $mainMod, S, togglesplit, # dwindle | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,13 +8,14 @@ | ||||||
|         "hyprland/submap", |         "hyprland/submap", | ||||||
|     ], |     ], | ||||||
|     "modules-center": [ |     "modules-center": [ | ||||||
|         "hyprland/window" |  | ||||||
|     ], |     ], | ||||||
|     "modules-right": [ |     "modules-right": [ | ||||||
|  | 				"custom/homeassistant", | ||||||
|         "pulseaudio", |         "pulseaudio", | ||||||
|         "cpu", |         "cpu", | ||||||
|         "memory", |         "memory", | ||||||
|         "battery", |         "battery", | ||||||
|  | 				"network", | ||||||
|         "clock", |         "clock", | ||||||
|         "tray", |         "tray", | ||||||
| 				"custom/power", | 				"custom/power", | ||||||
|  | @ -71,6 +72,18 @@ | ||||||
|         "format-plugged": "{capacity}% ", |         "format-plugged": "{capacity}% ", | ||||||
|         "format-icons": ["", "", "", "", ""] |         "format-icons": ["", "", "", "", ""] | ||||||
|     }, |     }, | ||||||
|  | 		"network": { | ||||||
|  | 				"interface": "wlp0s20f3", | ||||||
|  | 				"format": "{essid} ({signalStrength}%)  ", | ||||||
|  | 				"format-wifi": "{essid} ({signalStrength}%) ", | ||||||
|  | 				"format-ethernet": "{ipaddr}/{cidr} ", | ||||||
|  | 				"format-disconnected": "", //An empty format will hide the module. | ||||||
|  | 				"tooltip-format": "{ifname} via {gwaddr} ", | ||||||
|  | 				"tooltip-format-wifi": "{essid} ({signalStrength}%) ", | ||||||
|  | 				"tooltip-format-ethernet": "{ifname} ", | ||||||
|  | 				"tooltip-format-disconnected": "Disconnected", | ||||||
|  | 				"max-length": 50 | ||||||
|  | 		}, | ||||||
|     "pulseaudio": { |     "pulseaudio": { | ||||||
|         "format": "{volume}% {icon} {format_source}", |         "format": "{volume}% {icon} {format_source}", | ||||||
|         "format-muted": " {format_source}", |         "format-muted": " {format_source}", | ||||||
|  | @ -95,5 +108,16 @@ | ||||||
| 				"suspend": "hyprlock & systemctl suspend", | 				"suspend": "hyprlock & systemctl suspend", | ||||||
| 				"hibernate": "hyprlock & systemctl hibernate" | 				"hibernate": "hyprlock & systemctl hibernate" | ||||||
| 			} | 			} | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
|  |     "custom/homeassistant": { | ||||||
|  | 			"format" : " ", | ||||||
|  | 			"tooltip": false, | ||||||
|  | 			"menu": "on-click", | ||||||
|  | 			"menu-file": "$HOME/.config/waybar/ha_menu.xml",  | ||||||
|  | 			"menu-actions": { | ||||||
|  | 				"mood-relax": "/home/lorenz/go/bin/home-assistant -m relax", | ||||||
|  | 				"mood-off": "/home/lorenz/go/bin/home-assistant -m off", | ||||||
|  | 			} | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -0,0 +1,31 @@ | ||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <interface> | ||||||
|  |   <object class="GtkMenu" id="menu"> | ||||||
|  | 
 | ||||||
|  |     <child> | ||||||
|  |       <object class="GtkMenuItem"> | ||||||
|  | 
 | ||||||
|  | 	<property name="label">Mood</property> | ||||||
|  | 	<child type="submenu"> | ||||||
|  | 	  <object class="GtkMenu"> | ||||||
|  | 
 | ||||||
|  | 	    <child> | ||||||
|  | 	      <object class="GtkMenuItem" id="mood-relax"> | ||||||
|  | 		<property name="label">Relax</property> | ||||||
|  | 	      </object> | ||||||
|  | 	    </child> | ||||||
|  | 
 | ||||||
|  | 	    <child> | ||||||
|  | 	      <object class="GtkMenuItem" id="mood-off"> | ||||||
|  | 		<property name="label">Off</property> | ||||||
|  | 	      </object> | ||||||
|  | 	    </child> | ||||||
|  | 
 | ||||||
|  | 	  </object> | ||||||
|  | 	</child> | ||||||
|  | 
 | ||||||
|  |       </object> | ||||||
|  |     </child> | ||||||
|  | 
 | ||||||
|  |   </object> | ||||||
|  | </interface> | ||||||
|  | @ -6,23 +6,28 @@ | ||||||
| 	<property name="label">Suspend</property> | 	<property name="label">Suspend</property> | ||||||
|       </object> |       </object> | ||||||
|     </child> |     </child> | ||||||
|  | 
 | ||||||
|     <child> |     <child> | ||||||
|       <object class="GtkMenuItem" id="hibernate"> |       <object class="GtkMenuItem" id="hibernate"> | ||||||
| 	<property name="label">Hibernate</property> | 	<property name="label">Hibernate</property> | ||||||
|       </object> |       </object> | ||||||
|     </child> |     </child> | ||||||
|  | 
 | ||||||
|     <child> |     <child> | ||||||
|       <object class="GtkMenuItem" id="shutdown"> |       <object class="GtkMenuItem" id="shutdown"> | ||||||
| 	<property name="label">Shutdown</property> | 	<property name="label">Shutdown</property> | ||||||
|       </object> |       </object> | ||||||
|     </child> |     </child> | ||||||
|  | 
 | ||||||
|     <child> |     <child> | ||||||
|       <object class="GtkSeparatorMenuItem" id="delimiter1"/> |       <object class="GtkSeparatorMenuItem" id="delimiter1"/> | ||||||
|     </child> |     </child> | ||||||
|  | 
 | ||||||
|     <child> |     <child> | ||||||
|       <object class="GtkMenuItem" id="reboot"> |       <object class="GtkMenuItem" id="reboot"> | ||||||
| 	<property name="label">Reboot</property> | 	<property name="label">Reboot</property> | ||||||
|       </object> |       </object> | ||||||
|     </child> |     </child> | ||||||
|  | 
 | ||||||
|   </object> |   </object> | ||||||
| </interface> | </interface> | ||||||
|  |  | ||||||
|  | @ -102,6 +102,8 @@ button:hover { | ||||||
| #wireplumber, | #wireplumber, | ||||||
| #custom-media, | #custom-media, | ||||||
| #custom-power, | #custom-power, | ||||||
|  | #custom-homeassistant, | ||||||
|  | #network, | ||||||
| #tray, | #tray, | ||||||
| #mode, | #mode, | ||||||
| #idle_inhibitor, | #idle_inhibitor, | ||||||
|  | @ -146,7 +148,12 @@ button:hover { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #custom-power { | #custom-homeassistant { | ||||||
|  |     font-size: 17px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #custom-power, | ||||||
|  | #custom-homeassistant { | ||||||
|     padding: 0px 8px 0px 12px; |     padding: 0px 8px 0px 12px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue