From bfbaa31c3c9b860e7873d3b82eb840e052387183 Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Sat, 22 Mar 2025 20:31:18 -0400 Subject: [PATCH] Remove unused AGS application files and scripts --- app.ts | 10 ---------- env.d.ts | 21 --------------------- scripts/git.fish | 41 ----------------------------------------- style.scss | 20 -------------------- widget/Bar.tsx | 25 ------------------------- 5 files changed, 117 deletions(-) delete mode 100644 app.ts delete mode 100644 env.d.ts delete mode 100644 scripts/git.fish delete mode 100644 style.scss delete mode 100644 widget/Bar.tsx diff --git a/app.ts b/app.ts deleted file mode 100644 index 7e8cc7c..0000000 --- a/app.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { App } from "astal/gtk4" -import style from "./style.scss" -import Bar from "./widget/Bar" - -App.start({ - css: style, - main() { - App.get_monitors().map(Bar) - }, -}) diff --git a/env.d.ts b/env.d.ts deleted file mode 100644 index 467c0a4..0000000 --- a/env.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -declare const SRC: string - -declare module "inline:*" { - const content: string - export default content -} - -declare module "*.scss" { - const content: string - export default content -} - -declare module "*.blp" { - const content: string - export default content -} - -declare module "*.css" { - const content: string - export default content -} diff --git a/scripts/git.fish b/scripts/git.fish deleted file mode 100644 index d7019ee..0000000 --- a/scripts/git.fish +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env fish - -if test (count $argv) -ne 1 - echo "Usage: $argv0 push|pull" - exit 1 -end - -set action $argv[1] -set subtree_path "ags" -set remote "RyotShell-origin" -set branch "main" - -cd (git rev-parse --show-toplevel) -switch $action - case push - set changes (git status --porcelain "$subtree_path") - if test -n "$changes" - set_color yellow; echo " Cannot push. There are uncommitted changes in $subtree_path." - exit 1 - end - git subtree push --prefix="$subtree_path" $remote $branch - case pull - git subtree pull --prefix="$subtree_path" $remote $branch - case commit - set changes (git status --porcelain "$subtree_path") - if test -z "$changes" - echo "No changes to commit in $subtree_path." - exit 0 - end - echo " Enter commit message:" - read commit_message - if test -z "$commit_message" - echo "Commit message cannot be empty." - exit 1 - end - git add "$subtree_path" - git commit -m "$commit_message" - case '*' - echo "Unknown argument. Use push or pull." - exit 1 -end \ No newline at end of file diff --git a/style.scss b/style.scss deleted file mode 100644 index 1d0d3a9..0000000 --- a/style.scss +++ /dev/null @@ -1,20 +0,0 @@ -// https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss -$fg-color: #{"@theme_fg_color"}; -$bg-color: #{"@theme_bg_color"}; - -window.Bar { - background: transparent; - color: $fg-color; - font-weight: bold; - - >centerbox { - background: $bg-color; - border-radius: 10px; - margin: 8px; - } - - button { - border-radius: 8px; - margin: 2px; - } -} diff --git a/widget/Bar.tsx b/widget/Bar.tsx deleted file mode 100644 index e3a8aca..0000000 --- a/widget/Bar.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { App, Astal, Gtk, Gdk } from "astal/gtk4"; -import { Variable } from "astal"; - -const time = Variable("").poll(1000, "date"); - -export default function Bar(gdkmonitor: Gdk.Monitor) { - const { TOP, LEFT, RIGHT } = Astal.WindowAnchor; - - return ( - - - - - - - - - ); -}