Remove unused AGS application files and scripts
This commit is contained in:
parent
895f24d576
commit
bfbaa31c3c
5 changed files with 0 additions and 117 deletions
10
app.ts
10
app.ts
|
@ -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)
|
||||
},
|
||||
})
|
21
env.d.ts
vendored
21
env.d.ts
vendored
|
@ -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
|
||||
}
|
|
@ -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
|
20
style.scss
20
style.scss
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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 (
|
||||
<window visible cssClasses={["Bar"]} gdkmonitor={gdkmonitor} exclusivity={Astal.Exclusivity.EXCLUSIVE} anchor={TOP | LEFT | RIGHT} application={App}>
|
||||
<centerbox cssName="centerbox">
|
||||
<button onClicked="echo hello" hexpand halign={Gtk.Align.CENTER}>
|
||||
Welcome to AGS!
|
||||
</button>
|
||||
<box />
|
||||
<menubutton hexpand halign={Gtk.Align.CENTER}>
|
||||
<label label={time()} />
|
||||
<popover>
|
||||
<Gtk.Calendar />
|
||||
</popover>
|
||||
</menubutton>
|
||||
</centerbox>
|
||||
</window>
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue