Improved readme instructions for switching the theme globally, fixed various ts imports

This commit is contained in:
pascalyazid committed 2026-04-14 01:09:27 +02:00
1 parent 9b2e4e84ab
commit be426ef35d
8 files changed
+57 -62

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { Gtk } from "ags/gtk4"
import AstalMpris from "gi://AstalMpris?version=0.1"
import AstalMpris from "gi://AstalMpris"
import { createBinding, With, onCleanup } from "ags"
export default function Media() {
+4 -4
View File
@@ -1,7 +1,7 @@
import { Gtk } from "ags/gtk4"
import AstalNetwork from "gi://AstalNetwork?version=0.1"
import AstalBluetooth from "gi://AstalBluetooth?version=0.1"
import AstalWp from "gi://AstalWp?version=0.1"
import AstalNetwork from "gi://AstalNetwork"
import AstalBluetooth from "gi://AstalBluetooth"
import Wp from "gi://AstalWp"
import { createBinding } from "ags"
import { execAsync } from "ags/process"
@@ -69,7 +69,7 @@ function BluetoothItem() {
}
function AudioSlider({ type }: { type: "speaker" | "microphone" }) {
const wp = AstalWp.get_default()
const wp = Wp.get_default()
const audio = wp?.audio
if (!audio) return <box />
+2 -2
View File
@@ -1,7 +1,7 @@
import { Gtk } from "ags/gtk4"
import { createPoll } from "ags/time"
import AstalTray from "gi://AstalTray?version=0.1"
import AstalBattery from "gi://AstalBattery?version=0.1"
import AstalTray from "gi://AstalTray"
import AstalBattery from "gi://AstalBattery"
import { createBinding, For } from "ags"
export function Clock() {
+2 -2
View File
@@ -1,7 +1,7 @@
import { Gtk } from "ags/gtk4"
import GdkPixbuf from "gi://GdkPixbuf?version=2.0"
import Gdk from "gi://Gdk?version=4.0"
import GdkPixbuf from "gi://GdkPixbuf"
import Gdk from "gi://Gdk"
import { getWallpapers, setTheme } from "../theme"
// Global memory cache for textures, shared across all monitors!
+1 -1
View File
@@ -1,5 +1,5 @@
import { execAsync, createSubprocess } from "ags/process"
import GLib from "gi://GLib?version=2.0"
import GLib from "gi://GLib"
import { Gdk } from "ags/gtk4"
const HIS = GLib.getenv("HYPRLAND_INSTANCE_SIGNATURE")