Compare commits

..

7 commits

3 changed files with 28 additions and 52 deletions

View file

@ -37,6 +37,7 @@ in
}; };
startup = mkOption { startup = mkOption {
description = "Commands that should be executed at startup."; description = "Commands that should be executed at startup.";
default = [ ];
type = types.listOf ( type = types.listOf (
types.submodule { types.submodule {
options = { options = {
@ -92,14 +93,6 @@ in
config = { config = {
modifier = mod; modifier = mod;
assigns = {
"1" = [ { app_id = "firefox"; } ];
"2" = [ { app_id = "foot"; } ];
"3" = [
{ class = "Code"; }
{ app_id = "emacs"; }
];
};
bars = [ ]; bars = [ ];
# Dracula theme # Dracula theme

View file

@ -9,7 +9,11 @@ let
cfg = config.eboskma.programs.waybar; cfg = config.eboskma.programs.waybar;
in in
{ {
options.eboskma.programs.waybar.enable = mkEnableOption "Enable waybar"; options.eboskma.programs.waybar = {
enable = mkEnableOption "Enable waybar";
sway = mkEnableOption "sway";
river = mkEnableOption "river";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.waybar = { programs.waybar = {
@ -22,18 +26,18 @@ in
position = "top"; position = "top";
height = 32; height = 32;
modules-left = [ modules-left =
"wlr/workspaces" [ ]
++ lib.optionals cfg.river [
"river/tags" "river/tags"
"river/mode" "river/mode"
]
++ lib.optionals cfg.sway [
"sway/workspaces" "sway/workspaces"
"sway/mode" "sway/mode"
"custom/now_playing" ]
]; ++ [ "custom/now_playing" ];
modules-center = [ modules-center = (lib.optional cfg.sway "sway/window") ++ (lib.optional cfg.river "river/window");
"sway/window"
"river/window"
];
modules-right = [ modules-right = [
"network" "network"
"memory" "memory"

View file

@ -10,26 +10,6 @@ let
cfg = config.eboskma.users.erwin; cfg = config.eboskma.users.erwin;
homeCfg = config.home-manager.users.erwin; homeCfg = config.home-manager.users.erwin;
bt = config.eboskma.bluetooth; bt = config.eboskma.bluetooth;
ewwDaemon =
let
path = lib.makeBinPath (
with pkgs;
[
ha-now-playing
jaq
pamedia
bash
helvum
pavucontrol
]
);
in
pkgs.writeShellScript "eww-daemon" ''
export PATH=${path}:''${PATH}
${homeCfg.eboskma.programs.eww.package}/bin/eww $@
'';
in in
{ {
config = mkIf cfg.home { config = mkIf cfg.home {
@ -56,9 +36,6 @@ in
emacs = { emacs = {
enable = true; enable = true;
package = pkgs.emacs-unstable-pgtk; package = pkgs.emacs-unstable-pgtk;
# .override {
# treeSitterPlugins = builtins.attrValues (filterAttrs (_: isDerivation) pkgs.tree-sitter-grammars);
# }
daemon = true; daemon = true;
}; };
electron = { electron = {
@ -141,13 +118,10 @@ in
"1133:49291:Logitech_G502_HERO_SE" = { "1133:49291:Logitech_G502_HERO_SE" = {
natural_scroll = "enabled"; natural_scroll = "enabled";
}; };
"1390:268:ELECOM_TrackBall_Mouse_HUGE_TrackBall" = {
natural_scroll = "enabled";
};
}; };
startup = [
{
command = "${ewwDaemon} --restart open bar-home";
always = true;
}
];
}; };
swaynotificationcenter.enable = true; swaynotificationcenter.enable = true;
tea = { tea = {
@ -166,7 +140,10 @@ in
}; };
}; };
tmux.enable = true; tmux.enable = true;
waybar.enable = true; waybar = {
enable = true;
sway = true;
};
zathura.enable = true; zathura.enable = true;
zellij = { zellij = {
enable = true; enable = true;
@ -200,6 +177,7 @@ in
easyeffects easyeffects
element-desktop element-desktop
fd fd
freecad
ffmpeg_5-full ffmpeg_5-full
helvum helvum
imagemagick imagemagick
@ -248,6 +226,7 @@ in
# winetricks # winetricks
wl-clipboard wl-clipboard
zeal zeal
zed-editor
] ]
++ (with gst_all_1; [ ++ (with gst_all_1; [
gstreamer gstreamer
@ -261,7 +240,7 @@ in
]); ]);
pointerCursor = { pointerCursor = {
name = "Catppuccin-Mocha-Dark-Cursors"; name = "catppuccin-mocha-dark-cursors";
package = pkgs.catppuccin-cursors.mochaDark; package = pkgs.catppuccin-cursors.mochaDark;
gtk.enable = true; gtk.enable = true;
x11.enable = true; x11.enable = true;