Oops. thats a big commit
This commit is contained in:
parent
dfcb53a44e
commit
c5ed13b511
25 changed files with 393 additions and 303 deletions
|
@ -14,7 +14,13 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.wayland.windowManager.hyprland.settings.exec-once = [ "${lib.getExe cfg.package}" ];
|
||||
# runtime requirements for modules
|
||||
user.packages = with pkgs; [
|
||||
# mpris
|
||||
playerctl
|
||||
];
|
||||
|
||||
modules.desktop.execOnStart = [ "${lib.getExe cfg.package}" ];
|
||||
hm.programs.waybar = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
|
@ -54,11 +60,11 @@ in {
|
|||
modules = [
|
||||
"pulseaudio"
|
||||
"backlight"
|
||||
#"network"
|
||||
"cpu"
|
||||
"memory"
|
||||
"power-profiles-daemon"
|
||||
"battery"
|
||||
"custom/weather"
|
||||
"privacy"
|
||||
];
|
||||
};
|
||||
|
@ -70,18 +76,18 @@ in {
|
|||
};
|
||||
"custom/power" = let
|
||||
powerSelect = pkgs.writeScript "power-menu" ''
|
||||
cmd=$(echo 'shutdown|reboot|lock|exit Hyprland' | ${lib.getExe pkgs.rofi-wayland} -dmenu -sep '|' -i -p 'what to do ?' -theme-str 'window { height: 132px; }')
|
||||
cmd=$(echo '⏻ shutdown|↻ reboot| lock|⎋ exit desktop environment' | ${lib.getExe pkgs.rofi-wayland} -dmenu -sep '|' -i -p 'what to do ?' -theme-str 'window { height: 132px; }')
|
||||
case "$cmd" in
|
||||
shutdown)
|
||||
shutdown now
|
||||
"⏻ shutdown")
|
||||
poweroff
|
||||
;;
|
||||
reboot)
|
||||
"↻ reboot")
|
||||
reboot
|
||||
;;
|
||||
lock)
|
||||
${lib.getExe config.modules.desktop.hyprlock.package}
|
||||
" lock")
|
||||
${pkgs.systemd}/bin/loginctl lock-session
|
||||
;;
|
||||
"exit Hyprland")
|
||||
"⎋ exit desktop environment")
|
||||
${config.modules.desktop.hyprland.package}/bin/hyprctl dispatch exit
|
||||
;;
|
||||
esac
|
||||
|
@ -139,17 +145,6 @@ in {
|
|||
};
|
||||
separate-outputs = true;
|
||||
};
|
||||
#network = {
|
||||
# format = "";
|
||||
# format-ethernet = "";
|
||||
# format-wifi = " {signalStrength}%";
|
||||
# format-disconnected = "";
|
||||
# tooltip-format = "{ifname} via {gwaddr}";
|
||||
# tooltip-format-wifi = "connected to {essid}";
|
||||
# tooltip-format-ethernet = "{ifname}";
|
||||
# tooltip-format-disconnected = "Disconnected";
|
||||
# on-click = "${pkgs.networkmanagerapplet}/bin/nm-connection-editor";
|
||||
#};
|
||||
pulseaudio = {
|
||||
format = "{icon} {volume}%";
|
||||
format-bluetooth = "{icon} {volume}%";
|
||||
|
@ -215,16 +210,15 @@ in {
|
|||
];
|
||||
};
|
||||
mpris = {
|
||||
format = "♫ {dynamic}";
|
||||
format = "{status_icon} {dynamic}";
|
||||
format-paused = "{status_icon} {dynamic}";
|
||||
dynamic-order = [ "title" ];
|
||||
tooltip-format = "{player}: {dynamic}";
|
||||
interval = 1;
|
||||
status-icons = {
|
||||
playing = "▶";
|
||||
paused = "⏸";
|
||||
playing = "⏸";
|
||||
paused = "▶";
|
||||
};
|
||||
player = "firefox";
|
||||
};
|
||||
clock = {
|
||||
format = "{:%H:%M}";
|
||||
|
@ -252,6 +246,18 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
tray = {
|
||||
icon-size = 16;
|
||||
spacing = 4;
|
||||
};
|
||||
"custom/weather" = {
|
||||
format = "{}°";
|
||||
tooltip = true;
|
||||
interval = 3600;
|
||||
# doxxing live stream
|
||||
exec = "${lib.getExe pkgs.wttrbar} --location 'Corvallis, Oregon, United States' --hide-conditions --fahrenheit --mph";
|
||||
return-type = "json";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue