From 6d95f092e30737d49b650891e93de518498523a3 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 5 Mar 2025 22:25:17 +0100 Subject: neorg --- ags/widget/Bar.tsx | 92 +++++++++++++++++++++------ nvim/lua/config/keymaps.lua | 5 +- nvim/lua/config/options.lua | 2 +- nvim/lua/plugins/comment.lua | 6 ++ nvim/lua/plugins/dashboard-nvim.lua | 83 ++++++++----------------- nvim/lua/plugins/indent-blankline.lua | 1 + nvim/lua/plugins/lualine.lua | 46 +++++++------- nvim/lua/plugins/nabla.lua | 17 +++++ nvim/lua/plugins/neopywal.lua | 13 ++-- nvim/lua/plugins/neorg.lua | 113 ++++++++++++++++++---------------- nvim/lua/plugins/noice.lua | 38 ++++++------ nvim/lua/plugins/nvim-lspconfig.lua | 18 +++--- nvim/lua/plugins/nvim-parinfer.lua | 4 -- nvim/lua/plugins/nvim-treesitter.lua | 1 + nvim/lua/plugins/telescope.lua | 48 +++++++-------- nvim/lua/plugins/todo-comments.lua | 44 +++++++------ scripts/set_background | 1 + wallust/templates/foot | 2 +- wallust/templates/niri | 26 +++++--- wallust/wallust.toml | 6 +- 20 files changed, 307 insertions(+), 259 deletions(-) create mode 100644 nvim/lua/plugins/comment.lua create mode 100644 nvim/lua/plugins/nabla.lua delete mode 100644 nvim/lua/plugins/nvim-parinfer.lua diff --git a/ags/widget/Bar.tsx b/ags/widget/Bar.tsx index d994797..0e4f8bb 100644 --- a/ags/widget/Bar.tsx +++ b/ags/widget/Bar.tsx @@ -1,16 +1,18 @@ -import { App, Astal, Gtk, Gdk, Widget } from "astal/gtk3" -import { Variable } from "astal" +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 -const time = Variable("").poll(1000, "date") - function VerticalCenterBox(props: CenterBoxProps) { return } @@ -18,36 +20,86 @@ 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