autologin, tmux, mpd, mpv

This commit is contained in:
tristan 2023-04-12 16:02:21 +01:00
parent 014f391d4b
commit ad478d1e9e
4 changed files with 77 additions and 25 deletions

View file

@ -1,23 +1,13 @@
{ config, pkgs, user, ... }:
# https://nix-community.github.io/home-manager/options.html
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
# don't change
home.stateVersion = "22.05";
programs.home-manager.enable = true;
home.username = "tristan";
home.homeDirectory = "/home/tristan";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "22.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = with pkgs; [
gimp
];
@ -41,7 +31,7 @@
services.swayidle.enable = true;
services.swayidle.events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
{ event = "lock"; command = "lock"; }
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock"; }
];
programs.waybar.enable = true;
@ -60,6 +50,10 @@
format-icons.default = ["🔈" "🔉" "🔊"];
on-click = "pavucontrol";
};
mpd = {
server = "192.168.1.2";
on-click = "foot -e ncmpcpp";
};
};
};
@ -70,4 +64,30 @@
package = pkgs.materia-theme;
};
};
programs.ncmpcpp.enable = true;
programs.ncmpcpp.settings.mpd_host = "192.168.1.2";
# services.mpd-mpris.enable = true;
# services.mpd-mpris.mpd = {
# host = "192.168.1.2";
# };
programs.mpv.enable = true;
programs.mpv.bindings = {
l = "seek 5";
h = "seek -5";
e = "add chapter 1";
b = "add chapter -1";
">" = "multiply speed 1.1";
"<" = "multiply speed 1/1.1";
"." = "frame-step";
"," = "frame-back-step";
"ctrl+n" = "playlist-next";
"ctrl+p" = "playlist-prev";
k = "add volume 2";
j = "add volume -2";
m = "cycle mute";
c = "cycle sub-visibility";
};
}