i3/desktop: Split out

This commit is contained in:
Geoffrey Frogeye 2024-01-12 23:52:53 +01:00
parent 2ad4bee0f9
commit d994dfb9fb
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
11 changed files with 161 additions and 94 deletions

View file

@ -0,0 +1,27 @@
{ pkgs, lib, config, ... }:
{
config = lib.mkIf config.frogeye.desktop.xorg {
home.packages = with pkgs; [
ashuffle
mpc-cli
vimpc
];
services.mpd = {
enable = true;
network = {
listenAddress = "0.0.0.0"; # So it can be controlled from home
# TODO ... and whoever is the Wi-Fi network I'm using, which, not great
startWhenNeeded = true;
};
extraConfig = ''
restore_paused "yes"
'';
};
xsession.windowManager.i3.config.keybindings =
{
"XF86AudioPrev" = "exec ${pkgs.mpc-cli}/bin/mpc prev";
"XF86AudioPlay" = "exec ${pkgs.mpc-cli}/bin/mpc toggle";
"XF86AudioNext" = "exec ${pkgs.mpc-cli}/bin/mpc next";
};
};
}