Skip to content

Commit

Permalink
feat(applets): add Sound applet
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Jan 1, 2025
1 parent 19638e1 commit c5968c5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions modules/applets/by-name/audio/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, ... }:
let
inherit (lib.cosmic.options) mkNullOrOption;
in
lib.cosmic.applets.mkCosmicApplet {
name = "audio";
originalName = "Sound";
identifier = "com.system76.CosmicAppletAudio";
configurationVersion = 1;

maintainers = [ lib.maintainers.HeitorAugustoLN ];

settingsOptions = {
show_media_controls_in_top_panel = mkNullOrOption {
type = lib.types.bool;
example = true;
description = ''
Whether to show media controls in the top panel.
'';
};
};

settingsExample = {
show_media_controls_in_top_panel = true;
};
}

0 comments on commit c5968c5

Please sign in to comment.