feat: add pulsemixer
This commit is contained in:
parent
1400cc1433
commit
b19b1a8fcc
@ -16,6 +16,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
pulsemixer
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
||||||
|
|
||||||
xdg.configFile."ags".source = (pkgs.callPackage ./packages/drvs/ags.nix { colors = config.lib.stylix.colors; });
|
xdg.configFile."ags".source = (pkgs.callPackage ./packages/drvs/ags.nix { colors = config.lib.stylix.colors; });
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
import { bind } from "astal"
|
import { bind } from "astal"
|
||||||
|
import { execAsync } from "astal/process"
|
||||||
import Wp from "gi://AstalWp"
|
import Wp from "gi://AstalWp"
|
||||||
|
|
||||||
export default function Audio() {
|
export default function Audio() {
|
||||||
const speaker = Wp.get_default()?.audio.defaultSpeaker!
|
const speaker = Wp.get_default()?.audio.defaultSpeaker!
|
||||||
|
|
||||||
return <box className="AudioSlider">
|
return <button
|
||||||
|
className="AudioSlider"
|
||||||
|
onClicked={() => { execAsync("ghostty --title=pulsemixer -e pulsemixer") }}>
|
||||||
|
<box>
|
||||||
<icon icon={bind(speaker, "volumeIcon")} />
|
<icon icon={bind(speaker, "volumeIcon")} />
|
||||||
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
|
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
|
||||||
</box>
|
</box>
|
||||||
|
</button>
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,7 @@
|
|||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"float, title:(nmtui)"
|
"float, title:(nmtui)"
|
||||||
|
"float, title:(pulsemixer)"
|
||||||
"float, title:(clipse)"
|
"float, title:(clipse)"
|
||||||
"size 622 652, title:(clipse)"
|
"size 622 652, title:(clipse)"
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user