configure zsh and fix mpd
This commit is contained in:
parent
fb92731190
commit
cd8efd23f3
5 changed files with 45 additions and 25 deletions
|
|
@ -6,6 +6,8 @@
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.roles.mpd;
|
||||
terminal = config.programs.terminal;
|
||||
termcmd = "${terminal}/bin/${terminal.pname}";
|
||||
in {
|
||||
options.roles.mpd = {
|
||||
enable = mkEnableOption "setup mpd client";
|
||||
|
|
@ -48,6 +50,16 @@ in {
|
|||
mpd.host = cfg.host;
|
||||
};
|
||||
programs.waybar.settings.mainBar.mpd.server = cfg.host;
|
||||
programs.scripts = [
|
||||
{
|
||||
name = "ncmpcpp";
|
||||
text = ''
|
||||
${termcmd} -e ${pkgs.ncmpcpp}/bin/ncmpcpp
|
||||
'';
|
||||
hotkeys = [{key = "M";}];
|
||||
install = false;
|
||||
}
|
||||
];
|
||||
systemd.user.services = {
|
||||
snapclient = {
|
||||
Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue