try to use waybar
This commit is contained in:
		| @@ -6,6 +6,7 @@ | ||||
|     pkgs.nautilus | ||||
|     pkgs.gnome-control-center | ||||
|     pkgs.brightnessctl | ||||
|     pkgs.swaync | ||||
|   ]; | ||||
|  | ||||
|  | ||||
| @@ -14,16 +15,20 @@ | ||||
|     systemd.enable = true; | ||||
|     settings = { | ||||
|       "$mod" = "SUPER"; | ||||
|       "$browser" = "firefox"; | ||||
|  | ||||
|       # Global bindings | ||||
|       bind = [ | ||||
|         "$mod, return, exec, walker" | ||||
|         "$mod+Shift, return, exec, kitty" | ||||
|         "$mod, F, exec, firefox" | ||||
|         # Launch applications | ||||
|         "$mod, space, exec, walker" | ||||
|         "$mod, return, exec, kitty" | ||||
|         "$mod, b, exec, $browser" | ||||
|         "$mod, s, exec, code" | ||||
|         "$mod, e, exec, nautilus" | ||||
|  | ||||
|  | ||||
|         "$mod+Shift, Q, killactive," # Close window | ||||
|         "$mod+Shift, T, togglefloating," # Toggle Floating | ||||
|         "$mod, f, togglefloating," # Toggle Floating | ||||
|  | ||||
|         # Move the focus | ||||
|         "$mod, left, movefocus, l" | ||||
| @@ -46,6 +51,11 @@ | ||||
|         "$mod+Shift, Print, exec, hyprshot -m window -o ~/Pictures/Screenshots" | ||||
|       ]; | ||||
|  | ||||
|       exec-once = [ | ||||
|         "${pkgs.hyprpaper}/bin/hyprpaper" | ||||
|         "${pkgs.waybar}/bin/waybar" | ||||
|       ]; | ||||
|  | ||||
|       general = { | ||||
|         resize_on_border = true; | ||||
|         gaps_in = 5; | ||||
| @@ -111,37 +121,37 @@ | ||||
|     ]; | ||||
|   }; | ||||
|  | ||||
|   imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ]; | ||||
|   # the overlay makes this available as a home manager module | ||||
|   programs.hyprpanel = { | ||||
|     enable = true; | ||||
|     # autostart after hyprland | ||||
|     hyprland.enable = true; | ||||
|     overwrite.enable = true; | ||||
|     overlay.enable = true; | ||||
|   # imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ]; | ||||
|   # # the overlay makes this available as a home manager module | ||||
|   # programs.hyprpanel = { | ||||
|   #   enable = true; | ||||
|   #   # autostart after hyprland | ||||
|   #   hyprland.enable = true; | ||||
|   #   overwrite.enable = true; | ||||
|   #   overlay.enable = true; | ||||
|      | ||||
|     theme = "monochrome"; | ||||
|   #   theme = "monochrome"; | ||||
|  | ||||
|     settings = { | ||||
|       bar = { | ||||
|         clock.format = "%H:%M"; | ||||
|         clock.showIcon = false; | ||||
|         launcher.icon = "🚀"; | ||||
|         launcher.autoDetectIcon = true; | ||||
|         workspaces.show_icons = true; | ||||
|       }; | ||||
|     }; | ||||
|   #   settings = { | ||||
|   #     bar = { | ||||
|   #       clock.format = "%H:%M"; | ||||
|   #       clock.showIcon = false; | ||||
|   #       launcher.icon = "🚀"; | ||||
|   #       launcher.autoDetectIcon = true; | ||||
|   #       workspaces.show_icons = true; | ||||
|   #     }; | ||||
|   #   }; | ||||
|  | ||||
|     layout = { | ||||
|       "bar.layouts" = { | ||||
|         "*" = { | ||||
|           left = ["workspaces"]; | ||||
|           middle = ["clock"]; | ||||
|           right = ["volume" "systray" "nm-applet" "notifications" ]; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|   #   layout = { | ||||
|   #     "bar.layouts" = { | ||||
|   #       "*" = { | ||||
|   #         left = ["workspaces"]; | ||||
|   #         middle = ["clock"]; | ||||
|   #         right = ["volume" "systray" "nm-applet" "notifications" ]; | ||||
|   #       }; | ||||
|   #     }; | ||||
|   #   }; | ||||
|   # }; | ||||
|  | ||||
|  | ||||
|   programs.walker = { | ||||
|   | ||||
							
								
								
									
										103
									
								
								modules/home-manager/hypr/waybar.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								modules/home-manager/hypr/waybar.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,103 @@ | ||||
| {inputs, pkgs, ...}:  | ||||
| { | ||||
|     # waybar requires font-awesome | ||||
|     home.packages = [ | ||||
|         pkgs.font-awesome | ||||
|     ]; | ||||
|  | ||||
|     # enable waybar | ||||
|     programs.waybar.enable = true; | ||||
|     programs.waybar.settings = { | ||||
|         mainBar = { | ||||
|             layer = "top"; | ||||
|             position = "top"; | ||||
|             height = 30; | ||||
|             # output = [ | ||||
|             #     "eDP-1" | ||||
|             #     "HDMI-A-1" | ||||
|             # ]; | ||||
|             modules-left = [ | ||||
|                 "hyprland/workspaces" | ||||
|                 # "hyprland/mode" | ||||
|                 # "wlr/taskbar" | ||||
|             ]; | ||||
|             modules-center = [ | ||||
|                 "hyprland/window" | ||||
|                 "clock" | ||||
|                 # "custom/hello-from-waybar" | ||||
|             ]; | ||||
|             modules-right = [ | ||||
|                 "mpd" | ||||
|                 "tray" | ||||
|                 "custom/notification" | ||||
|                 # "temperature" | ||||
|                 "group/expand" | ||||
|                 "bluetooth" | ||||
|                 "network" | ||||
|                 "battery" | ||||
|             ]; | ||||
|  | ||||
|             # module specific settings | ||||
|             "hyprland/workspaces" = { | ||||
|                 "format" = "{icon}"; | ||||
|                 "format-icons" = { | ||||
|                     "active" = ""; | ||||
|                     "default" = ""; | ||||
|                     "empty" = "" | ||||
|                 }; | ||||
|             }; | ||||
|             "custom/notification" = { | ||||
|                 "tooltip" = false; | ||||
|                 "format" = ""; | ||||
|                 "on-click" = "swaync-client -t -sw"; | ||||
|                 "escape" = true; | ||||
|             }; | ||||
|             "clock": { | ||||
|                 "format" = "{:%I:%M}"; | ||||
|                 "interval" = 1;    | ||||
|                 "tooltip-format" = "<tt>{calendar}</tt>"; | ||||
|                 "calendar" = { | ||||
|                     "format" = { | ||||
|                         "today" = "<span color='#fAfBfC'><b>{}</b></span>" | ||||
|                     }; | ||||
|                 }; | ||||
|             }; | ||||
|  | ||||
|             "network" = { | ||||
|                 "format-wifi" = ""; | ||||
|                 "format-ethernet" =""; | ||||
|                 "format-disconnected" = ""; | ||||
|                 "tooltip-format-disconnected" = "Error"; | ||||
|                 "tooltip-format-wifi" = "{essid} ({signalStrength}%) "; | ||||
|                 "tooltip-format-ethernet" = "{ifname} 🖧 "; | ||||
|                 "on-click" = "kitty nmtui" | ||||
|             }; | ||||
|             "bluetooth" = { | ||||
|                 "format-on" = ""; | ||||
|                 "format-off" = "BT-off"; | ||||
|                 "format-disabled" = ""; | ||||
|                 "format-connected-battery" = "{device_battery_percentage}% "; | ||||
|                 "format-alt" = "{device_alias} "; | ||||
|                 "tooltip-format" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected"; | ||||
|                 "tooltip-format-connected" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}"; | ||||
|                 "tooltip-format-enumerate-connected" = "{device_alias}\n{device_address}"; | ||||
|                 "tooltip-format-enumerate-connected-battery" = "{device_alias}\n{device_address}\n{device_battery_percentage}%"; | ||||
|                 "on-click-right" = "blueman-manager"; | ||||
|             };  | ||||
|             "battery" = { | ||||
|                 "interval" = 60; | ||||
|                 "states" = { | ||||
|                     "good" = 80; | ||||
|                     "warning" = 30; | ||||
|                     "critical" = 10 | ||||
|                 }; | ||||
|                 "format" = "{capacity}% {icon}"; | ||||
|                 "format-charging" = "{capacity}% "; | ||||
|                 "format-plugged" = "{capacity}%  "; | ||||
|                 "format-alt" = "{time} {icon}"; | ||||
|                 "format-icons" = [ "" "" "" "" "" "" ]; | ||||
|             }; | ||||
|         }; | ||||
|     } | ||||
| }; | ||||
|          | ||||
		Reference in New Issue
	
	Block a user