import { Gtk } from "astal/gtk4"; import Power from "./modules/Power"; import Audio from "./modules/Audio/Audio"; import Bluetooth from "./modules/Bluetooth/Bluetooth"; import Brightness from "./modules/Brightness/Brightness"; import Player from "./modules/Player/Player"; import { BatteryBox } from "./modules/Battery"; import { exec } from "astal"; import Network from "./modules/Networking/Network"; const QuickActions = () => { const popover = new Gtk.Popover({ cssClasses: ["quick-actions-wrapper"] }); popover.set_child(renderQuickActions()); return popover; }; const renderQuickActions = () => { const user = exec("/bin/sh -c whoami"); const profile = exec("/bin/fish -c get-profile-picture"); const cwd = exec("pwd"); const um = Power.UserMenu(); return ( um.popup()} cssClasses={["stealthy-button"]} child={ {um} } > } > } endWidget={ } > ); }; // TODO: Expose additional functions to be usable through CLI export default { QuickActions, };