diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-30 21:31:58 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-30 21:31:58 +1100 |
| commit | 47db47fe9fe7a33109366614de0f1b6402814c84 (patch) | |
| tree | 9850e712fa97cf897b14e88cb5a54f5f15cf980e /src | |
| parent | sideleft: create popdown window (diff) | |
| download | caelestia-shell-47db47fe9fe7a33109366614de0f1b6402814c84.tar.gz caelestia-shell-47db47fe9fe7a33109366614de0f1b6402814c84.tar.bz2 caelestia-shell-47db47fe9fe7a33109366614de0f1b6402814c84.zip | |
imports: use typescript import paths
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/launcher.tsx | 16 | ||||
| -rw-r--r-- | src/modules/osds.tsx | 6 | ||||
| -rw-r--r-- | src/modules/popdowns/media.tsx | 6 | ||||
| -rw-r--r-- | src/modules/popdowns/sideright.tsx | 10 | ||||
| -rw-r--r-- | src/modules/popdowns/updates.tsx | 6 | ||||
| -rw-r--r-- | src/services/math.ts | 2 | ||||
| -rw-r--r-- | src/services/updates.ts | 2 | ||||
| -rw-r--r-- | src/services/weather.ts | 4 | ||||
| -rw-r--r-- | src/utils/icons.ts | 2 | ||||
| -rw-r--r-- | src/widgets/notification.tsx | 4 |
10 files changed, 29 insertions, 29 deletions
diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx index 9db219e..8949444 100644 --- a/src/modules/launcher.tsx +++ b/src/modules/launcher.tsx @@ -1,16 +1,16 @@ +import { Apps } from "@/services/apps"; +import MathService, { type HistoryItem } from "@/services/math"; +import { getAppCategoryIcon } from "@/utils/icons"; +import { launch, notify } from "@/utils/system"; +import type { Client } from "@/utils/types"; +import { MenuItem, setupCustomTooltip } from "@/utils/widgets"; +import PopupWindow from "@/widgets/popupwindow"; import { bind, execAsync, Gio, GLib, readFile, register, timeout, Variable } from "astal"; import { App, Astal, Gtk, Widget } from "astal/gtk3"; +import { launcher as config } from "config"; import fuzzysort from "fuzzysort"; import type AstalApps from "gi://AstalApps"; import AstalHyprland from "gi://AstalHyprland"; -import { launcher as config } from "../../config"; -import { Apps } from "../services/apps"; -import MathService, { type HistoryItem } from "../services/math"; -import { getAppCategoryIcon } from "../utils/icons"; -import { launch, notify } from "../utils/system"; -import type { Client } from "../utils/types"; -import { MenuItem, setupCustomTooltip } from "../utils/widgets"; -import PopupWindow from "../widgets/popupwindow"; type Mode = "apps" | "files" | "math" | "windows"; diff --git a/src/modules/osds.tsx b/src/modules/osds.tsx index a87fcc3..f95053e 100644 --- a/src/modules/osds.tsx +++ b/src/modules/osds.tsx @@ -1,13 +1,13 @@ +import Monitors, { type Monitor } from "@/services/monitors"; +import PopupWindow from "@/widgets/popupwindow"; import { execAsync, register, timeout, Variable, type Time } from "astal"; import { App, Astal, Gtk, Widget } from "astal/gtk3"; import cairo from "cairo"; +import { osds as config } from "config"; import AstalWp from "gi://AstalWp"; import Cairo from "gi://cairo"; import Pango from "gi://Pango"; import PangoCairo from "gi://PangoCairo"; -import { osds as config } from "../../config"; -import Monitors, { type Monitor } from "../services/monitors"; -import PopupWindow from "../widgets/popupwindow"; const getStyle = (context: Gtk.StyleContext, prop: string) => context.get_property(prop, Gtk.StateFlags.NORMAL); const getNumStyle = (context: Gtk.StyleContext, prop: string) => getStyle(context, prop) as number; diff --git a/src/modules/popdowns/media.tsx b/src/modules/popdowns/media.tsx index 2a50af6..3f2fca1 100644 --- a/src/modules/popdowns/media.tsx +++ b/src/modules/popdowns/media.tsx @@ -1,9 +1,9 @@ +import Players from "@/services/players"; +import { isRealPlayer } from "@/utils/mpris"; +import PopupWindow from "@/widgets/popupwindow"; import { bind, Variable } from "astal"; import { Astal, Gtk } from "astal/gtk3"; import AstalMpris from "gi://AstalMpris"; -import Players from "../../services/players"; -import { isRealPlayer } from "../../utils/mpris"; -import PopupWindow from "../../widgets/popupwindow"; const shuffleToIcon = (s: AstalMpris.Shuffle) => `caelestia-${s === AstalMpris.Shuffle.ON ? "shuffle" : "consecutive"}-symbolic`; diff --git a/src/modules/popdowns/sideright.tsx b/src/modules/popdowns/sideright.tsx index ac2845a..d5ee9d5 100644 --- a/src/modules/popdowns/sideright.tsx +++ b/src/modules/popdowns/sideright.tsx @@ -1,10 +1,10 @@ +import SWeather, { type WeatherData } from "@/services/weather"; +import { ellipsize } from "@/utils/strings"; +import { bindCurrentTime } from "@/utils/system"; +import { Calendar as WCal } from "@/utils/widgets"; +import PopupWindow from "@/widgets/popupwindow"; import { bind, timeout } from "astal"; import { Astal, Gtk, type Gdk } from "astal/gtk3"; -import SWeather, { type WeatherData } from "../../services/weather"; -import { ellipsize } from "../../utils/strings"; -import { bindCurrentTime } from "../../utils/system"; -import { Calendar as WCal } from "../../utils/widgets"; -import PopupWindow from "../../widgets/popupwindow"; const getHoursFromUpdate = (data: WeatherData, hours: number) => { const updateTime = data.location.localtime_epoch; diff --git a/src/modules/popdowns/updates.tsx b/src/modules/popdowns/updates.tsx index 7708abe..536ec08 100644 --- a/src/modules/popdowns/updates.tsx +++ b/src/modules/popdowns/updates.tsx @@ -1,8 +1,8 @@ +import Updates, { Repo as IRepo, Update as IUpdate } from "@/services/updates"; +import { MenuItem } from "@/utils/widgets"; +import PopdownWindow from "@/widgets/popdownwindow"; import { bind, execAsync, Variable } from "astal"; import { App, Astal, Gtk } from "astal/gtk3"; -import Updates, { Repo as IRepo, Update as IUpdate } from "../../services/updates"; -import { MenuItem } from "../../utils/widgets"; -import PopdownWindow from "../../widgets/popdownwindow"; const constructItem = (label: string, exec: string, quiet = true) => new MenuItem({ diff --git a/src/services/math.ts b/src/services/math.ts index 14e90e0..925bbcb 100644 --- a/src/services/math.ts +++ b/src/services/math.ts @@ -1,6 +1,6 @@ import { GLib, GObject, property, readFile, register, writeFileAsync } from "astal"; +import { math as config } from "config"; import { derivative, evaluate, rationalize, simplify } from "mathjs/number"; -import { math as config } from "../../config"; export interface HistoryItem { equation: string; diff --git a/src/services/updates.ts b/src/services/updates.ts index 91c9e21..9c4abe1 100644 --- a/src/services/updates.ts +++ b/src/services/updates.ts @@ -1,5 +1,5 @@ import { execAsync, GLib, GObject, property, readFileAsync, register, writeFileAsync } from "astal"; -import { updates as config } from "../../config"; +import { updates as config } from "config"; export interface Update { full: string; diff --git a/src/services/weather.ts b/src/services/weather.ts index e57e7c4..8474198 100644 --- a/src/services/weather.ts +++ b/src/services/weather.ts @@ -1,6 +1,6 @@ +import { notify } from "@/utils/system"; import { execAsync, GLib, GObject, interval, property, readFileAsync, register, writeFileAsync } from "astal"; -import { weather as config } from "../../config"; -import { notify } from "../utils/system"; +import { weather as config } from "config"; export interface WeatherCondition { text: string; diff --git a/src/utils/icons.ts b/src/utils/icons.ts index f12aee0..847ca0f 100644 --- a/src/utils/icons.ts +++ b/src/utils/icons.ts @@ -1,6 +1,6 @@ +import { Apps } from "@/services/apps"; import { Gio } from "astal"; import type AstalApps from "gi://AstalApps"; -import { Apps } from "../services/apps"; // Code points from https://www.github.com/lukas-w/font-logos export const osIcons: Record<string, number> = { diff --git a/src/widgets/notification.tsx b/src/widgets/notification.tsx index adac831..3def064 100644 --- a/src/widgets/notification.tsx +++ b/src/widgets/notification.tsx @@ -1,8 +1,8 @@ +import { desktopEntrySubs } from "@/utils/icons"; import { GLib, register, timeout } from "astal"; import { Astal, Gtk, Widget } from "astal/gtk3"; +import { notifpopups as config } from "config"; import AstalNotifd from "gi://AstalNotifd"; -import { notifpopups as config } from "../../config"; -import { desktopEntrySubs } from "../utils/icons"; const urgencyToString = (urgency: AstalNotifd.Urgency) => { switch (urgency) { |