less priority
This commit is contained in:
parent
56b32ce1dd
commit
4db1d965e6
@ -112,11 +112,6 @@ in {
|
|||||||
default = {};
|
default = {};
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
enable = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable ezpcusr's screensaver";
|
|
||||||
};
|
|
||||||
lockTime = mkOption {
|
lockTime = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 300;
|
default = 300;
|
||||||
@ -172,7 +167,7 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = lib.mkDefault true;
|
||||||
|
|
||||||
events = [
|
events = [
|
||||||
{
|
{
|
||||||
@ -374,106 +369,106 @@ in {
|
|||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
target = "sway-session.target";
|
target = lib.mkDefault "sway-session.target";
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.mainbar = {
|
settings.mainbar = {
|
||||||
position = "left";
|
position = lib.mkDefault "left";
|
||||||
height = null;
|
height = lib.mkDefault null;
|
||||||
|
|
||||||
modules-left = ["sway/workspaces" "custom/spacer" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind"];
|
modules-left = ["sway/workspaces" "custom/spacer" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind"];
|
||||||
modules-center = ["clock#1" "clock#2" "custom/spacer" "custom/media" "custom/spacer" "clock#3" "custom/spacer" "clock#4"];
|
modules-center = ["clock#1" "clock#2" "custom/spacer" "custom/media" "custom/spacer" "clock#3" "custom/spacer" "clock#4"];
|
||||||
modules-right = ["pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu"] ++ lib.optionals cfg.battery ["custom/spacer" "battery"] ++ ["custom/spacer" "tray"];
|
modules-right = ["pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu"] ++ lib.optionals cfg.battery ["custom/spacer" "battery"] ++ ["custom/spacer" "tray"];
|
||||||
|
|
||||||
"custom/spacer" = {
|
"custom/spacer" = {
|
||||||
format = "〜";
|
format = lib.mkDefault "〜";
|
||||||
rotate = 90;
|
rotate = lib.mkDefault 90;
|
||||||
tooltip = false;
|
tooltip = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/weather-temp" = {
|
"custom/weather-temp" = {
|
||||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%c+%t' || echo ERR";
|
exec = lib.mkDefault "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%c+%t' || echo ERR";
|
||||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://weather.com/weather/today/l/85625'";
|
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://weather.com/weather/today/l/85625'";
|
||||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
on-click-right = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||||
interval = 900;
|
interval = lib.mkDefault 900;
|
||||||
};
|
};
|
||||||
"custom/weather-precip" = {
|
"custom/weather-precip" = {
|
||||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌧️+%p'";
|
exec = lib.mkDefault "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌧️+%p'";
|
||||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.lightningmaps.org/'";
|
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://www.lightningmaps.org/'";
|
||||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
on-click-right = "lib.mkDefault ${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||||
interval = 900;
|
interval = lib.mkDefault 900;
|
||||||
};
|
};
|
||||||
"custom/weather-wind" = {
|
"custom/weather-wind" = {
|
||||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌬️+%w'";
|
exec = lib.mkDefault "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌬️+%w'";
|
||||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.ventusky.com/";
|
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://www.ventusky.com/";
|
||||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
on-click-right = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||||
interval = 900;
|
interval = lib.mkDefault 900;
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/media" = {
|
"custom/media" = {
|
||||||
rotate = 90;
|
rotate = lib.mkDefault 90;
|
||||||
max-length = 60;
|
max-length = lib.mkDefault 60;
|
||||||
on-click = "${pkgs.playerctl}/bin/playerctl play-pause";
|
on-click = lib.mkDefault "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
exec = "${pkgs.playerctl}/bin/playerctl metadata --format '{{ emoji(status) }} {{ artist }} - {{ title }}' --follow";
|
exec = lib.mkDefault "${pkgs.playerctl}/bin/playerctl metadata --format '{{ emoji(status) }} {{ artist }} - {{ title }}' --follow";
|
||||||
};
|
};
|
||||||
|
|
||||||
"sway/workspaces" = {
|
"sway/workspaces" = {
|
||||||
disable-scroll = true;
|
disable-scroll = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"clock#1" = {
|
"clock#1" = {
|
||||||
tooltip = false;
|
tooltip = lib.mkDefault false;
|
||||||
format = "{:%a}";
|
format = lib.mkDefault "{:%a}";
|
||||||
};
|
};
|
||||||
"clock#2" = {
|
"clock#2" = {
|
||||||
tooltip = false;
|
tooltip = lib.mkDefault false;
|
||||||
format = "{:%m-%d}";
|
format = lib.mkDefault "{:%m-%d}";
|
||||||
};
|
};
|
||||||
"clock#3" = {
|
"clock#3" = {
|
||||||
tooltip = false;
|
tooltip = lib.mkDefault false;
|
||||||
format = "{:%I:%M %p}";
|
format = lib.mkDefault "{:%I:%M %p}";
|
||||||
};
|
};
|
||||||
"clock#4" = {
|
"clock#4" = {
|
||||||
tooltip = false;
|
tooltip = lib.mkDefault false;
|
||||||
timezone = "Etc/UTC";
|
timezone = lib.mkDefault "Etc/UTC";
|
||||||
format = "{:%H:%M} UTC";
|
format = lib.mkDefault "{:%H:%M} UTC";
|
||||||
};
|
};
|
||||||
|
|
||||||
pulseaudio = {
|
pulseaudio = {
|
||||||
format = "{icon} {volume}%";
|
format = lib.mkDefault "{icon} {volume}%";
|
||||||
format-bluetooth = "{icon} {volume}%";
|
format-bluetooth = lib.mkDefault "{icon} {volume}%";
|
||||||
format-muted = "MUTE";
|
format-muted = lib.mkDefault "MUTE";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
headphone = "";
|
headphone = lib.mkDefault "";
|
||||||
default = "";
|
default = lib.mkDefault "";
|
||||||
};
|
};
|
||||||
on-click = "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
on-click = lib.mkDefault "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||||
on-click-right = "${pkgs.pavucontrol}/bin/pavucontrol";
|
on-click-right = lib.mkDefault "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||||
};
|
};
|
||||||
|
|
||||||
memory = {
|
memory = {
|
||||||
interval = 20;
|
interval = lib.mkDefault 20;
|
||||||
format = " {}%";
|
format = lib.mkDefault " {}%";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu = {
|
cpu = {
|
||||||
interval = 20;
|
interval = lib.mkDefault 20;
|
||||||
format = " {usage}%";
|
format = lib.mkDefault " {usage}%";
|
||||||
};
|
};
|
||||||
|
|
||||||
battery = {
|
battery = {
|
||||||
states = {
|
states = {
|
||||||
good = 90;
|
good = lib.mkDefault 90;
|
||||||
warning = 25;
|
warning = lib.mkDefault 25;
|
||||||
critical = 10;
|
critical = lib.mkDefault 10;
|
||||||
};
|
};
|
||||||
format = "{icon} {capacity}%";
|
format = lib.mkDefault "{icon} {capacity}%";
|
||||||
format-icons = ["" "" "" "" "" "" "" "" "" ""];
|
format-icons = ["" "" "" "" "" "" "" "" "" ""];
|
||||||
};
|
};
|
||||||
|
|
||||||
tray = {
|
tray = {
|
||||||
icon-size = 18;
|
icon-size = lib.mkDefault 18;
|
||||||
spacing = 5;
|
spacing = lib.mkDefault 5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user