mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
added ways to use different branches of nixpkgs made unfree packages have to specified switched to nix master branch moved sxhkd from a seperate flake switched spotify and maim versions because both are broken on nixos-unstable right now moved afk-cmds from local to remote added flake-utils for easier devShell decleration switched my mom's laptop to stable branch
39 lines
1.3 KiB
Nix
39 lines
1.3 KiB
Nix
{master, ...}: {
|
|
pkgs,
|
|
settings,
|
|
...
|
|
}: let
|
|
mpkgs = import master {
|
|
inherit (pkgs) system;
|
|
};
|
|
in {
|
|
environment.systemPackages = [
|
|
mpkgs.maim #screenshooter
|
|
pkgs.brightnessctl #brightness control for laptop
|
|
pkgs.playerctl #music control
|
|
pkgs.xclip
|
|
pkgs.coreutils
|
|
];
|
|
|
|
services.sxhkd = {
|
|
enable = true;
|
|
keybindings = {
|
|
#media keybindings
|
|
"XF86AudioPlay" = "playerctl play-pause";
|
|
"XF86AudioPause" = "playerctl play-pause";
|
|
"XF86AudioStop" = "playerctl stop";
|
|
"XF86AudioNext" = "playerctl next";
|
|
"XF86AudioPrev" = "playerctl previous";
|
|
"XF86AudioRaiseVolume" = "amixer sset Master 40+";
|
|
"XF86AudioLowerVolume" = "amixer sset Master 40-";
|
|
"XF86AudioMute" = "amixer sset Master toggle ";
|
|
"XF86MonBrightnessUp" = "brightnessctl s 20+";
|
|
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
|
#screenshot stuff
|
|
"Print" = "maim /home/${settings.username}/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
|
"Print + shift" = "maim | xclip -selection clipboard -t image/png";
|
|
"super + Print" = "maim -s /home/${settings.username}/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
|
"super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png";
|
|
};
|
|
};
|
|
}
|