try to use waybar
This commit is contained in:
parent
47ed3eb0cb
commit
729cc66bd1
@ -47,3 +47,5 @@ This will create an iso image in the result directory.
|
|||||||
- https://github.com/mwaldleben/nix-config
|
- https://github.com/mwaldleben/nix-config
|
||||||
- https://github.com/anotherhadi/nixy
|
- https://github.com/anotherhadi/nixy
|
||||||
- https://github.com/Numb-0/nix-0
|
- https://github.com/Numb-0/nix-0
|
||||||
|
- https://github.com/Frost-Phoenix/nixos-config
|
||||||
|
- https://github.com/elifouts/Dotfiles
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
pkgs.nautilus
|
pkgs.nautilus
|
||||||
pkgs.gnome-control-center
|
pkgs.gnome-control-center
|
||||||
pkgs.brightnessctl
|
pkgs.brightnessctl
|
||||||
|
pkgs.swaync
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@ -14,16 +15,20 @@
|
|||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
|
"$browser" = "firefox";
|
||||||
|
|
||||||
# Global bindings
|
# Global bindings
|
||||||
bind = [
|
bind = [
|
||||||
"$mod, return, exec, walker"
|
# Launch applications
|
||||||
"$mod+Shift, return, exec, kitty"
|
"$mod, space, exec, walker"
|
||||||
"$mod, F, exec, firefox"
|
"$mod, return, exec, kitty"
|
||||||
|
"$mod, b, exec, $browser"
|
||||||
"$mod, s, exec, code"
|
"$mod, s, exec, code"
|
||||||
"$mod, e, exec, nautilus"
|
"$mod, e, exec, nautilus"
|
||||||
|
|
||||||
|
|
||||||
"$mod+Shift, Q, killactive," # Close window
|
"$mod+Shift, Q, killactive," # Close window
|
||||||
"$mod+Shift, T, togglefloating," # Toggle Floating
|
"$mod, f, togglefloating," # Toggle Floating
|
||||||
|
|
||||||
# Move the focus
|
# Move the focus
|
||||||
"$mod, left, movefocus, l"
|
"$mod, left, movefocus, l"
|
||||||
@ -46,6 +51,11 @@
|
|||||||
"$mod+Shift, Print, exec, hyprshot -m window -o ~/Pictures/Screenshots"
|
"$mod+Shift, Print, exec, hyprshot -m window -o ~/Pictures/Screenshots"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"${pkgs.hyprpaper}/bin/hyprpaper"
|
||||||
|
"${pkgs.waybar}/bin/waybar"
|
||||||
|
];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
resize_on_border = true;
|
resize_on_border = true;
|
||||||
gaps_in = 5;
|
gaps_in = 5;
|
||||||
@ -111,37 +121,37 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
# imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
||||||
# the overlay makes this available as a home manager module
|
# # the overlay makes this available as a home manager module
|
||||||
programs.hyprpanel = {
|
# programs.hyprpanel = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
# autostart after hyprland
|
# # autostart after hyprland
|
||||||
hyprland.enable = true;
|
# hyprland.enable = true;
|
||||||
overwrite.enable = true;
|
# overwrite.enable = true;
|
||||||
overlay.enable = true;
|
# overlay.enable = true;
|
||||||
|
|
||||||
theme = "monochrome";
|
# theme = "monochrome";
|
||||||
|
|
||||||
settings = {
|
# settings = {
|
||||||
bar = {
|
# bar = {
|
||||||
clock.format = "%H:%M";
|
# clock.format = "%H:%M";
|
||||||
clock.showIcon = false;
|
# clock.showIcon = false;
|
||||||
launcher.icon = "🚀";
|
# launcher.icon = "🚀";
|
||||||
launcher.autoDetectIcon = true;
|
# launcher.autoDetectIcon = true;
|
||||||
workspaces.show_icons = true;
|
# workspaces.show_icons = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
layout = {
|
# layout = {
|
||||||
"bar.layouts" = {
|
# "bar.layouts" = {
|
||||||
"*" = {
|
# "*" = {
|
||||||
left = ["workspaces"];
|
# left = ["workspaces"];
|
||||||
middle = ["clock"];
|
# middle = ["clock"];
|
||||||
right = ["volume" "systray" "nm-applet" "notifications" ];
|
# right = ["volume" "systray" "nm-applet" "notifications" ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
|
|
||||||
programs.walker = {
|
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" = [ "" "" "" "" "" "" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user