From 48fc6ff3424acbb41633258bf1512b797a0ad8c1 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Mon, 10 Mar 2025 18:15:17 +0100 Subject: clean up --- README.md | 2 + ags/app.ts | 28 ---------- ags/env.d.ts | 21 ------- ags/package.json | 6 -- ags/style.scss | 26 --------- ags/tsconfig.json | 14 ----- ags/widget/Bar.tsx | 105 ----------------------------------- nvim/lua/plugins/mini-starter.lua | 11 ++-- nvim/lua/plugins/nvim-lspconfig.lua | 22 ++------ nvim/lua/plugins/nvim-treesitter.lua | 1 + scripts/set_background | 2 +- 11 files changed, 15 insertions(+), 223 deletions(-) delete mode 100644 ags/app.ts delete mode 100644 ags/env.d.ts delete mode 100644 ags/package.json delete mode 100644 ags/style.scss delete mode 100644 ags/tsconfig.json delete mode 100644 ags/widget/Bar.tsx diff --git a/README.md b/README.md index 999a7b3..126cb74 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,5 @@ These are current my dotfiles: - Terminal: foot - Statusbar: waybar - Editor: neovim + +The colorscheme is generated and applied using wallust diff --git a/ags/app.ts b/ags/app.ts deleted file mode 100644 index b485250..0000000 --- a/ags/app.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { App } from "astal/gtk3" -import { exec } from "astal/process" - -import Bar from "./widget/Bar" - -function updateStyle() { - App.reset_css() - exec(`sass ./style.scss /tmp/style.css`) - App.apply_css("/tmp/style.css") -} - -App.start({ - requestHandler(request, res) { - switch (request) { - case "reload": - updateStyle() - res("style reloaded") - break; - default: - res("unknown command") - break; - } - }, - main() { - updateStyle() - App.get_monitors().map(Bar) - }, -}) diff --git a/ags/env.d.ts b/ags/env.d.ts deleted file mode 100644 index 467c0a4..0000000 --- a/ags/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/ags/package.json b/ags/package.json deleted file mode 100644 index 44226f2..0000000 --- a/ags/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "astal-shell", - "dependencies": { - "astal": "/usr/share/astal/gjs" - } -} diff --git a/ags/style.scss b/ags/style.scss deleted file mode 100644 index 7ad03be..0000000 --- a/ags/style.scss +++ /dev/null @@ -1,26 +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; - } - - >box { - background: $bg-color; - border-radius: 10px; - margin: 8px; - } - - button { - border-radius: 8px; - margin: 2px; - } -} diff --git a/ags/tsconfig.json b/ags/tsconfig.json deleted file mode 100644 index 9471e35..0000000 --- a/ags/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "compilerOptions": { - "experimentalDecorators": true, - "strict": true, - "target": "ES2022", - "module": "ES2022", - "moduleResolution": "Bundler", - // "checkJs": true, - // "allowJs": true, - "jsx": "react-jsx", - "jsxImportSource": "astal/gtk3", - } -} diff --git a/ags/widget/Bar.tsx b/ags/widget/Bar.tsx deleted file mode 100644 index 0e4f8bb..0000000 --- a/ags/widget/Bar.tsx +++ /dev/null @@ -1,105 +0,0 @@ -import { App, Astal, Gtk, Gdk } from "astal/gtk3" -import { bind, Variable } from "astal" -import { BoxProps, CenterBoxProps } from "astal/gtk3/widget" -import AstalBattery from "gi://AstalBattery" -import AstalNetwork from "gi://AstalNetwork" -import AstalBluetooth from "gi://AstalBluetooth" - -const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor -const { START, CENTER, END } = Gtk.Align - -function VerticalCenterBox(props: CenterBoxProps) { - return -} - -function VerticalBox(props: BoxProps) { - return -} - -function Clock() { - const hours = Variable("").poll(360000, "date +%_H") - const minutes = Variable("").poll(60000, "date +%_M") - - return { - hours.drop() - minutes.drop() - }} - > - {hours()} - {minutes()} - -} - -function Battery() { - const bat = AstalBattery.get_default() - - return `${v * 100}%`)} - icon={bind(bat, "iconName")} - /> -} - -function Wifi() { - const wifi = AstalNetwork.get_default().get_wifi()! - - return -} - -function Bluetooth() { - const bluetooth = AstalBluetooth.get_default() - - const isPowered = bind(bluetooth, "isPowered") - - return