create pywal widget
This commit is contained in:
parent
17fc4737dc
commit
c1a1c5f869
1 changed files with 17 additions and 0 deletions
17
widget/Pywal.tsx
Normal file
17
widget/Pywal.tsx
Normal 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;
|
||||||
Loading…
Add table
Reference in a new issue