diff options
| author | eric.marin <maarin.eric@gmail.com> | 2025-03-10 18:15:17 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2025-03-10 18:16:27 +0100 |
| commit | 48fc6ff3424acbb41633258bf1512b797a0ad8c1 (patch) | |
| tree | 856f2b509c7bdb6b3e06b487ae85503ffeab027d | |
| parent | f4d45b1821ffd69361d0266247535e95c8552f1b (diff) | |
| download | dotfiles-48fc6ff3424acbb41633258bf1512b797a0ad8c1.tar.gz dotfiles-48fc6ff3424acbb41633258bf1512b797a0ad8c1.zip | |
clean up
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | ags/app.ts | 28 | ||||
| -rw-r--r-- | ags/env.d.ts | 21 | ||||
| -rw-r--r-- | ags/package.json | 6 | ||||
| -rw-r--r-- | ags/style.scss | 26 | ||||
| -rw-r--r-- | ags/tsconfig.json | 14 | ||||
| -rw-r--r-- | ags/widget/Bar.tsx | 105 | ||||
| -rw-r--r-- | nvim/lua/plugins/mini-starter.lua | 11 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-lspconfig.lua | 22 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-treesitter.lua | 1 | ||||
| -rwxr-xr-x | scripts/set_background | 2 |
11 files changed, 15 insertions, 223 deletions
@@ -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 <centerbox - {...props} - vertical - halign={CENTER} - /> -} - -function VerticalBox(props: BoxProps) { - return <box - {...props} - vertical - halign={CENTER} - /> -} - -function Clock() { - const hours = Variable("").poll(360000, "date +%_H") - const minutes = Variable("").poll(60000, "date +%_M") - - return <VerticalBox - className="Clock" - onDestroy={() => { - hours.drop() - minutes.drop() - }} - > - {hours()} - {minutes()} - </VerticalBox> -} - -function Battery() { - const bat = AstalBattery.get_default() - - return <icon - className="Battery" - tooltipText={bind(bat, "percentage").as((v) => `${v * 100}%`)} - icon={bind(bat, "iconName")} - /> -} - -function Wifi() { - const wifi = AstalNetwork.get_default().get_wifi()! - - return <icon - className="Wifi" - tooltipText={bind(wifi, "ssid").as(String)} - icon={bind(wifi, "iconName")} - /> -} - -function Bluetooth() { - const bluetooth = AstalBluetooth.get_default() - - const isPowered = bind(bluetooth, "isPowered") - - return <label - className="Bluetooth" - label={isPowered.as(String)} - /> -} - -export default function Bar(gdkmonitor: Gdk.Monitor) { - return <window - name="Bar" - gdkmonitor={gdkmonitor} - exclusivity={Astal.Exclusivity.EXCLUSIVE} - anchor={TOP | LEFT | BOTTOM} - application={App}> - <VerticalCenterBox - className="Bar" - > - <VerticalBox - className="ModulesTop" - valign={START} - > - </VerticalBox> - <VerticalBox - className="ModulesMiddle" - valign={CENTER} - > - <Clock /> - </VerticalBox> - <VerticalBox - className="ModulesBottom" - valign={END} - > - <Bluetooth /> - <Wifi /> - <Battery /> - </VerticalBox> - </VerticalCenterBox> - </window > -} diff --git a/nvim/lua/plugins/mini-starter.lua b/nvim/lua/plugins/mini-starter.lua index 8f66c4d..1532c73 100644 --- a/nvim/lua/plugins/mini-starter.lua +++ b/nvim/lua/plugins/mini-starter.lua @@ -198,11 +198,12 @@ local config = function() autoopen = true, evaluate_single = false, items = { - starter.sections.recent_files(5, false, false), - { name = "Plugin Manager", action = "Lazy", section = "Actions" }, - { name = "File Browser", action = "Oil --float", section = "Actions" }, - { name = "Neorg Index", action = "Neorg index", section = "Actions" }, - starter.sections.builtin_actions, + starter.sections.recent_files(5, false, true), + { name = "Plugin Manager", action = "Lazy", section = "Actions" }, + { name = "File Browser", action = "Oil --float", section = "Actions" }, + { name = "Neorg Index", action = "Neorg index", section = "Actions" }, + { name = 'Edit new buffer', action = 'enew', section = 'Actions' }, + { name = 'Quit Neovim', action = 'qall', section = 'Actions' }, }, header = header, footer = footer, diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index 9127c75..22435e6 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -66,11 +66,6 @@ local config = function() on_attach = on_attach, capabilities = capabilities, }) - -- cmake-language-server configuration - lspconfig.cmake.setup({ - on_attach = on_attach, - capabilities = capabilities, - }) -- haskell-language-server configuration lspconfig.hls.setup({ on_attach = on_attach, @@ -81,12 +76,6 @@ local config = function() on_attach = on_attach, capabilities = capabilities, }) - -- nixd configuration - -- lspconfig.nixd.setup({ - -- on_attach = on_attach, - -- capabilities = capabilities, - -- }) - -- typescript-language-server configuration lspconfig.ts_ls.setup({ on_attach = on_attach, capabilities = capabilities, @@ -96,12 +85,11 @@ local config = function() on_attach = on_attach, capabilities = capabilities, }) - -- vacuum configuration - -- lspconfig.vacuum.setup({ - -- -- on_attach = on_attach, - -- capabilities = capabilities, - -- filetypes = { "yaml" } - -- }) + -- mesonlsp configuration + lspconfig.mesonlsp.setup({ + on_attach = on_attach, + capabilities = capabilities, + }) end return { diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua index 84aa7cb..103d5d9 100644 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ b/nvim/lua/plugins/nvim-treesitter.lua @@ -11,6 +11,7 @@ local config = function() "regex", "diff", "cmake", + "meson", "markdown_inline", "bash", "toml", diff --git a/scripts/set_background b/scripts/set_background index 8beab55..e8846fb 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -5,7 +5,7 @@ if test (count $argv) -lt 1; or not test -f $argv[1] exit 1 end -set -x SWWW_TRANSITION "simple" +set -x SWWW_TRANSITION "random" set -x SWWW_TRANSITION_FPS 60 set -U img $argv[1] |
