zenix: cosmic add audio control hotkeys

This commit is contained in:
tristan 2024-11-24 22:18:55 +00:00
parent 34fa25d463
commit c4bd5f1cf8
3 changed files with 22 additions and 3 deletions

View file

@ -5,6 +5,8 @@
... ...
}: let }: let
inherit (config.lib.cosmic) Actions mapBinds; inherit (config.lib.cosmic) Actions mapBinds;
SpawnTerminal = name: pkg:
Actions.Spawn (pkgs.writeShellScriptBin name "${lib.getExe pkgs.alacritty} -e ${lib.getExe pkg}");
in { in {
programs.cosmic = { programs.cosmic = {
enable = true; enable = true;
@ -42,8 +44,14 @@ in {
# System # System
Super. "d" = Actions.Spawn config.programs.menu.drunCommand; Super. "d" = Actions.Spawn config.programs.menu.drunCommand;
Super. "Return" = Actions.Spawn pkgs.alacritty; Super. "Return" = Actions.Spawn pkgs.alacritty;
Super. "e" = SpawnTerminal "aerc" config.programs.aerc.package;
Super. "o" = Actions.System "HomeFolder"; Super. "o" = Actions.System "HomeFolder";
Super.Shift. "s" = Actions.System "Screenshot"; Super.Shift. "s" = Actions.System "Screenshot";
"XF86AudioRaiseVolume" = Actions.System "VolumeRaise";
"XF86AudioLowerVolume" = Actions.System "VolumeLower";
"XF86AudioPlay" = Actions.System "PlayPause";
"XF86AudioNext" = Actions.System "PlayNext";
"XF86AudioPrev" = Actions.System "PlayPrev";
}; };
background = { background = {
displays = { displays = {

View file

@ -1,7 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [
# ./kodi.nix
];
roles.email = { roles.email = {
enable = true; enable = true;
email = "tristan@tristans.cloud"; email = "tristan@tristans.cloud";

14
nixos/programs/kodi.nix Normal file
View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
services.xserver.desktopManager.kodi = {
enable = true;
package =
pkgs.kodi.withPackages
(exts:
with exts; [
jellyfin
steam-launcher
joystick
youtube
]);
};
}