revive ezpcusr
This commit is contained in:
parent
49bbac07cf
commit
f8e4aadcd5
@ -39,6 +39,9 @@ inputs: {
|
||||
profile = lib.mkDefault "gpu-hq";
|
||||
ytdl-format = lib.mkDefault "bestvideo+bestaudio";
|
||||
};
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
mpris
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.9 KiB |
@ -111,11 +111,6 @@ in {
|
||||
type = types.attrsOf (types.attrsOf types.str);
|
||||
};
|
||||
|
||||
waybarConfig = mkOption {
|
||||
description = "Waybar config";
|
||||
default = {};
|
||||
};
|
||||
|
||||
screensaver = mkOption {
|
||||
description = "ezpcusr screensaver";
|
||||
default = {};
|
||||
@ -195,7 +190,7 @@ in {
|
||||
'';
|
||||
|
||||
config = {
|
||||
terminal = lib.mkDefault "${pkgs.kitty}/bin/kitty";
|
||||
terminal = lib.mkDefault "${pkgs.kermit-terminal}/bin/kermit";
|
||||
|
||||
modifier = lib.mkDefault "Mod4";
|
||||
|
||||
@ -264,6 +259,8 @@ in {
|
||||
volumeUp = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
volumeDown = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
in {
|
||||
"${modifier}+q" = "kill";
|
||||
|
||||
"Print" = "exec ${scrsaveclip}";
|
||||
"Shift+Print" =
|
||||
if cfg.uploadScript != null
|
||||
@ -396,114 +393,111 @@ in {
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
|
||||
programs.waybar = {
|
||||
enable = lib.mkDefault true;
|
||||
systemd.enable = lib.mkDefault true;
|
||||
|
||||
settings = [
|
||||
({
|
||||
position = "left";
|
||||
height = null;
|
||||
settings.mainbar = {
|
||||
position = "left";
|
||||
height = null;
|
||||
|
||||
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-right = ["pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu"] ++ lib.optionals cfg.battery ["custom/spacer" "battery"] ++ ["custom/spacer" "tray"];
|
||||
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-right = ["pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu"] ++ lib.optionals cfg.battery ["custom/spacer" "battery"] ++ ["custom/spacer" "tray"];
|
||||
|
||||
modules = {
|
||||
"custom/spacer" = {
|
||||
format = "〰";
|
||||
rotate = 90;
|
||||
tooltip = false;
|
||||
};
|
||||
"custom/spacer" = {
|
||||
format = "〰";
|
||||
rotate = 90;
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"custom/weather-temp" = {
|
||||
exec = "${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-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
"custom/weather-precip" = {
|
||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌧️+%p'";
|
||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.lightningmaps.org/'";
|
||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
"custom/weather-wind" = {
|
||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌬️+%w'";
|
||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.ventusky.com/";
|
||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
"custom/weather-temp" = {
|
||||
exec = "${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-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
"custom/weather-precip" = {
|
||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌧️+%p'";
|
||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.lightningmaps.org/'";
|
||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
"custom/weather-wind" = {
|
||||
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=🌬️+%w'";
|
||||
on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://www.ventusky.com/";
|
||||
on-click-right = "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = 900;
|
||||
};
|
||||
|
||||
"custom/media" = {
|
||||
rotate = 90;
|
||||
max-length = 60;
|
||||
on-click = "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
exec = "${pkgs.playerctl}/bin/playerctl metadata --format '{{ emoji(status) }} {{ artist }} - {{ title }}' --follow";
|
||||
};
|
||||
"custom/media" = {
|
||||
rotate = 90;
|
||||
max-length = 60;
|
||||
on-click = "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
exec = "${pkgs.playerctl}/bin/playerctl metadata --format '{{ emoji(status) }} {{ artist }} - {{ title }}' --follow";
|
||||
};
|
||||
|
||||
"sway/workspaces" = {
|
||||
disable-scroll = true;
|
||||
};
|
||||
"sway/workspaces" = {
|
||||
disable-scroll = true;
|
||||
};
|
||||
|
||||
"clock#1" = {
|
||||
tooltip = false;
|
||||
format = "{:%a}";
|
||||
};
|
||||
"clock#2" = {
|
||||
tooltip = false;
|
||||
format = "{:%m-%d}";
|
||||
};
|
||||
"clock#3" = {
|
||||
tooltip = false;
|
||||
format = "{:%I:%M %p}";
|
||||
};
|
||||
"clock#4" = {
|
||||
tooltip = false;
|
||||
timezone = "Etc/UTC";
|
||||
format = "{:%H:%M} UTC";
|
||||
};
|
||||
"clock#1" = {
|
||||
tooltip = false;
|
||||
format = "{:%a}";
|
||||
};
|
||||
"clock#2" = {
|
||||
tooltip = false;
|
||||
format = "{:%m-%d}";
|
||||
};
|
||||
"clock#3" = {
|
||||
tooltip = false;
|
||||
format = "{:%I:%M %p}";
|
||||
};
|
||||
"clock#4" = {
|
||||
tooltip = false;
|
||||
timezone = "Etc/UTC";
|
||||
format = "{:%H:%M} UTC";
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
format = "{icon} {volume}%";
|
||||
format-bluetooth = "{icon} {volume}%";
|
||||
format-muted = "MUTE";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
default = "";
|
||||
};
|
||||
on-click = "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
on-click-right = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
};
|
||||
pulseaudio = {
|
||||
format = "{icon} {volume}%";
|
||||
format-bluetooth = "{icon} {volume}%";
|
||||
format-muted = "MUTE";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
default = "";
|
||||
};
|
||||
on-click = "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
on-click-right = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
};
|
||||
|
||||
memory = {
|
||||
interval = 20;
|
||||
format = " {}%";
|
||||
};
|
||||
memory = {
|
||||
interval = 20;
|
||||
format = " {}%";
|
||||
};
|
||||
|
||||
cpu = {
|
||||
interval = 20;
|
||||
format = " {usage}%";
|
||||
};
|
||||
cpu = {
|
||||
interval = 20;
|
||||
format = " {usage}%";
|
||||
};
|
||||
|
||||
battery = {
|
||||
states = {
|
||||
good = 90;
|
||||
warning = 25;
|
||||
critical = 10;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-icons = ["" "" "" "" ""];
|
||||
};
|
||||
battery = {
|
||||
states = {
|
||||
good = 90;
|
||||
warning = 25;
|
||||
critical = 10;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-icons = ["" "" "" "" ""];
|
||||
};
|
||||
|
||||
tray = {
|
||||
icon-size = 18;
|
||||
spacing = 5;
|
||||
};
|
||||
};
|
||||
}
|
||||
// cfg.waybarConfig)
|
||||
];
|
||||
tray = {
|
||||
icon-size = 18;
|
||||
spacing = 5;
|
||||
};
|
||||
};
|
||||
|
||||
style = ''
|
||||
window#waybar {
|
||||
@ -603,8 +597,6 @@ in {
|
||||
ezcolors.enable = lib.mkDefault true;
|
||||
ezfonts.enable = lib.mkDefault true;
|
||||
|
||||
programs.chromium.enable = lib.mkDefault true;
|
||||
|
||||
services.blueman-applet.enable = lib.mkDefault cfg.bluetooth;
|
||||
|
||||
services.mpris-proxy.enable = lib.mkDefault true;
|
||||
@ -615,16 +607,12 @@ in {
|
||||
mopidy-mpris
|
||||
mopidy-youtube
|
||||
mopidy-local
|
||||
(mopidy-mpd.overrideAttrs (old: {
|
||||
src = builtins.fetchGit {
|
||||
url = "git+ssh://git@github.com/mopidy/mopidy-mpd.git";
|
||||
rev = "a8c4debc139020fbb17066b66a746644a915296c";
|
||||
};
|
||||
}))
|
||||
mopidy-mpd
|
||||
];
|
||||
settings = {
|
||||
youtube = {
|
||||
enabled = lib.mkDefault true;
|
||||
allow_cache = lib.mkDefault true;
|
||||
};
|
||||
|
||||
file = {
|
||||
@ -638,8 +626,8 @@ in {
|
||||
|
||||
mpd = {
|
||||
enabled = lib.mkDefault true;
|
||||
hostname = lib.mkDefault "::";
|
||||
command_blacklist = lib.mkDefault "";
|
||||
# hostname = lib.mkDefault "::";
|
||||
# command_blacklist = lib.mkDefault "";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -659,42 +647,36 @@ in {
|
||||
platformTheme = lib.mkDefault "gtk";
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
programs.kermit = {
|
||||
enable = lib.mkDefault true;
|
||||
settings = {
|
||||
background_opacity = lib.mkDefault "0.90";
|
||||
dynamic_background_opacity = lib.mkDefault true;
|
||||
opacity = lib.mkDefault "0.90";
|
||||
key = lib.mkDefault "shift";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."neofetch/config.conf".text = let
|
||||
image = builtins.path {
|
||||
name = "nixos_circlejerk.png";
|
||||
path = ../data/nixos_circlejerk.png;
|
||||
};
|
||||
in ''
|
||||
image_source="${image}"
|
||||
image_backend="kitty"
|
||||
'';
|
||||
|
||||
xdg.enable = true;
|
||||
xdg.userDirs.enable = true;
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
xdg.configFile."mimeapps.list".force = true;
|
||||
xdg.mimeApps = let
|
||||
applications = {
|
||||
"inode/directory" = "pcmanfm-qt.desktop";
|
||||
|
||||
"text/html" = "chromium-browser.desktop";
|
||||
"x-scheme-handler/http" = "chromium-browser.desktop";
|
||||
"x-scheme-handler/https" = "chromium-browser.desktop";
|
||||
"x-scheme-handler/about" = "chromium-browser.desktop";
|
||||
"text/html" = "librewolf.desktop";
|
||||
"x-scheme-handler/http" = "librewolf.desktop";
|
||||
"x-scheme-handler/https" = "librewolf.desktop";
|
||||
"x-scheme-handler/about" = "librewolf.desktop";
|
||||
|
||||
"application/zip" = "ark.desktop";
|
||||
"application/rar" = "ark.desktop";
|
||||
"application/7z" = "ark.desktop";
|
||||
"application/*tar" = "ark.desktop";
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
associations.added = applications;
|
||||
defaultApplications = applications;
|
||||
};
|
||||
|
||||
programs.mpv.enable = lib.mkDefault true;
|
||||
@ -726,7 +708,7 @@ in {
|
||||
|
||||
programs.rofi = {
|
||||
enable = lib.mkDefault true;
|
||||
terminal = lib.mkDefault "${pkgs.kitty}/bin/kitty";
|
||||
terminal = lib.mkDefault "${pkgs.kermit-terminal}/bin/kermit";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user