create pywal widget

This commit is contained in:
Benjamin Palko 2025-04-04 09:49:21 -04:00
parent 17fc4737dc
commit c1a1c5f869

17
widget/Pywal.tsx Normal file
View file

@ -0,0 +1,17 @@
import { exec } from "astal";
import { Gdk } from "astal/gtk4";
function Pywal() {
return (
<box>
<button
cssClasses={["Pywal"]}
cursor={Gdk.Cursor.new_from_name("pointer", null)}
label={""}
onClicked={() => exec("bash -c ~/dotfiles/.scripts/pywal-swww.sh")}
/>
</box>
);
}
export default Pywal;