mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add audio media
This commit is contained in:
parent
bec17bcb0f
commit
0cc9a3c8b6
2 changed files with 36 additions and 34 deletions
|
|
@ -1,33 +1,30 @@
|
||||||
{ pkgs, lib, config, options, ... }: {
|
{ pkgs, lib, config, osConfig, ... }: {
|
||||||
options.mods.i3.enable = lib.mkEnableOption "enables i3";
|
options.mods.i3.enable = lib.mkEnableOption "enables i3";
|
||||||
|
|
||||||
config = lib.mkIf config.mods.i3.enable {
|
config = lib.mkIf config.mods.i3.enable {
|
||||||
programs.rofi.enable = true;
|
programs.rofi.enable = true;
|
||||||
|
|
||||||
programs.i3status = {
|
programs.i3status-rust = {
|
||||||
enable = true;
|
enable = true;
|
||||||
general.interval = 1;
|
bars.default = {
|
||||||
modules = {
|
settings.theme.overrides = with config.lib.stylix.colors.withHashtag; {
|
||||||
"volume master" = {
|
idle_bg = base00;
|
||||||
position = 1;
|
idle_fg = base05;
|
||||||
settings = {
|
separator = "";
|
||||||
format = "🔊 %volume";
|
|
||||||
format_muted = "🔇 %volume";
|
|
||||||
device = "default";
|
|
||||||
mixer = "Master";
|
|
||||||
mixer_idx = 0;
|
|
||||||
};
|
};
|
||||||
};
|
icons = "awesome5";
|
||||||
"tztime local".settings = {
|
blocks = [{
|
||||||
format = "🗓 %Y-%m-%d %a %H:%M:%S ";
|
block = "sound";
|
||||||
};
|
format = " $icon $volume ";
|
||||||
ipv6.enable = false;
|
click = [{
|
||||||
"wireless _first_".enable = false;
|
button = "left";
|
||||||
"ethernet _first_".enable = false;
|
cmd = "pavucontrol";
|
||||||
"battery all".enable = false;
|
}];
|
||||||
"disk /".enable = false;
|
} {
|
||||||
load.enable = false;
|
block = "time";
|
||||||
memory.enable = false;
|
format = "$icon $timestamp.datetime(f:'%Y-%m-%d %a %H:%M:%S') ";
|
||||||
|
interval = 1;
|
||||||
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,22 +66,30 @@
|
||||||
moveKeys = ["h" "j" "k" "l"];
|
moveKeys = ["h" "j" "k" "l"];
|
||||||
moveDirs = ["left" "down" "up" "right"];
|
moveDirs = ["left" "down" "up" "right"];
|
||||||
|
|
||||||
workspKeys = genSpaces (x: x);
|
workspKeys = genSpaces (x: lib.mod (x+1) wsAmount);
|
||||||
|
|
||||||
in lib.mkOptionDefault (
|
in lib.mkOptionDefault (
|
||||||
(zipBinds "+" "focus" moveKeys moveDirs) //
|
(zipBinds "+" "focus" moveKeys moveDirs) //
|
||||||
(zipBinds "+Shift+" "move" moveKeys moveDirs) //
|
(zipBinds "+Shift+" "move" moveKeys moveDirs) //
|
||||||
(zipBinds "+" "workspace number" workspKeys workspaces) //
|
(zipBinds "+" "workspace number" workspKeys workspaces) //
|
||||||
(zipBinds "+Shift+" "move container to workspace number"
|
(zipBinds "+Shift+" "move container to workspace number"
|
||||||
workspKeys workspaces)
|
workspKeys workspaces) //
|
||||||
|
{
|
||||||
|
"XF86AudioRaiseVolume" =
|
||||||
|
"exec --no-startup-id pactl set-sink-volume 0 +2%";
|
||||||
|
"XF86AudioLowerVolume" =
|
||||||
|
"exec --no-startup-id pactl set-sink-volume 0 -2%";
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
bars = let
|
bars = let
|
||||||
|
status_conf =
|
||||||
|
"${config.xdg.configHome}/i3status-rust/config-default.toml";
|
||||||
stylix_bar = {
|
stylix_bar = {
|
||||||
mode = "dock";
|
mode = "dock";
|
||||||
hiddenState = "hide";
|
hiddenState = "hide";
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
statusCommand = "${lib.getExe pkgs.i3status}";
|
statusCommand = "${lib.getExe pkgs.i3status-rust} ${status_conf}";
|
||||||
command = "${pkgs.i3}/bin/i3bar";
|
command = "${pkgs.i3}/bin/i3bar";
|
||||||
workspaceButtons = true;
|
workspaceButtons = true;
|
||||||
workspaceNumbers = true;
|
workspaceNumbers = true;
|
||||||
|
|
@ -93,10 +98,6 @@
|
||||||
in [
|
in [
|
||||||
stylix_bar
|
stylix_bar
|
||||||
];
|
];
|
||||||
# bars = [
|
|
||||||
# options.xsession.windowManager.i3.config.default
|
|
||||||
# config.lib.stylix.i3.bar
|
|
||||||
# ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,11 @@
|
||||||
lib.mkEnableOption "enables entertainment programs";
|
lib.mkEnableOption "enables entertainment programs";
|
||||||
|
|
||||||
config = lib.mkIf config.mods.desktop.media.enable {
|
config = lib.mkIf config.mods.desktop.media.enable {
|
||||||
# home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# # Movies/TV
|
# Audio
|
||||||
# mpv
|
pulseaudio
|
||||||
# ];
|
pavucontrol
|
||||||
|
];
|
||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue