Compare commits

..

3 commits

3 changed files with 36 additions and 3 deletions

View file

@ -15,7 +15,28 @@ in {
};
systemd.user.services = {
"eww" = {
"eww" = let
# All dependencies required for eww and for the scripts/widgets it uses
dependencies = with pkgs; [
python3
bash
coreutils
gnugrep
gawk
netcat-openbsd
jq
util-linux
systemd
bluez
upower
wl-gammarelay-rs
gammastep
networkmanager
wireplumber
pulseaudio
hyprland
];
in {
Unit = {
Description = "ElKowar's Wacky Widgets (eww) daemon";
After = [ "graphical-session-pre.target" ];
@ -24,7 +45,8 @@ in {
Service = {
Type = "simple";
Restart = "always";
Restart = "alwayss";
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
ExecStart = pkgs.writeShellScript "eww-daemon" ''
${pkgs.eww}/bin/eww daemon --no-daemonize
'';

View file

@ -9,6 +9,7 @@ _: {
./zoxide.nix
./tealdeer.nix
./hyfetch.nix
./fastfetch.nix
./btop.nix
./bottom.nix
./bat.nix

View file

@ -125,7 +125,17 @@
wms.hyprland = {
enable = true;
monitor = [
"eDP-1, 1920x1080@60, 0x0, 1"
# Primary / laptop display
"eDP-1, 1920x1200@60, 0x1080, 1"
# HDMI-A-1 above primary
"HDMI-A-1, 1920x1080@60, 0x0, 1"
# HDMI-A-1 left to primary
#"HDMI-A-1, 1920x1080@60, 1920x1080, 1"
# Mirror the primary (laptop) monitor on externals
", preferred, auto, 1, mirror, eDP-1"
];
};