diff --git a/packages/ags/custom/.gitignore b/packages/ags/custom/.gitignore deleted file mode 100644 index 298eb4d..0000000 --- a/packages/ags/custom/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -@girs/ diff --git a/packages/ags/custom/app.ts b/packages/ags/custom/app.ts deleted file mode 100644 index 8952ecf..0000000 --- a/packages/ags/custom/app.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { App } from "astal/gtk3" -import style from "./style.scss" -import Bar from "./widget/Bar" - -App.start({ - css: style, - instanceName: "js", - requestHandler(request, res) { - print(request) - res("ok") - }, - main: () => { - const monitors = App.get_monitors() - const primary = monitors.find(m => m.primary) || monitors[0] - return Bar(primary) - } -}) diff --git a/packages/ags/custom/colors.scss b/packages/ags/custom/colors.scss deleted file mode 100644 index 96044bb..0000000 --- a/packages/ags/custom/colors.scss +++ /dev/null @@ -1,3 +0,0 @@ -$background: #131318; -$foreground: #e4e1e9; -$primary: #bec2ff; diff --git a/packages/ags/custom/env.d.ts b/packages/ags/custom/env.d.ts deleted file mode 100644 index 467c0a4..0000000 --- a/packages/ags/custom/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/packages/ags/custom/package.json b/packages/ags/custom/package.json deleted file mode 100644 index 23b6342..0000000 --- a/packages/ags/custom/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "astal-shell", - "dependencies": { - "astal": "/home/biscuit/.local/share/ags" - } -} diff --git a/packages/ags/custom/style.scss b/packages/ags/custom/style.scss deleted file mode 100644 index 88d42f9..0000000 --- a/packages/ags/custom/style.scss +++ /dev/null @@ -1,143 +0,0 @@ -@use "sass:color"; -@use "./colors" as *; - -// default -// $bg: #212223; -// $fg: #f1f1f1; -// $accent: #378DF7; -// $radius: 7px; - -// Kanagawa Theme -// $bg: #1F1F28; -// $fg: #DCD7BA; -// $accent: #C0A36E; -// $radius: 7px; - -// mstcl -// $bg: #121212; -// $fg: #f1f1f1; -// $accent: #C0A36E; -// $radius: 7px; - -$bg: $background; -$fg: $foreground; -$accent: $primary; -$radius: 7px; - -window.Bar { - border: none; - box-shadow: none; - background-color: $bg; - color: $fg; - font-size: 1.1em; - font-weight: bold; - font-family: "JetBrainsMono Nerd Font"; - - label { - margin: 0 8px; - } - - .Workspaces { - button { - all: unset; - background-color: transparent; - - &:hover label { - background-color: color.adjust($fg, $alpha: -0.84); - border-color: color.adjust($accent, $alpha: -0.8); - } - - &:active label { - background-color: color.adjust($fg, $alpha: -0.8) - } - } - - label { - transition: 200ms; - padding: 0 8px; - margin: 2px; - border-radius: $radius; - border: 1pt solid transparent; - } - - .focused label { - color: $accent; - border-color: $accent; - } - } - - .SysTray { - margin-right: 8px; - - button { - padding: 0 4px; - } - } - - .Time { - .TimeHM { - font-weight: bold; - color: $accent; - } - - .TimeDate { - // color: color.adjust($fg, $lightness: -10%); - color: $fg; - opacity: 0.85; - font-weight: normal; - } - } - - - .FocusedClient { - color: color.adjust($fg, $lightness: -30%); - opacity: 0.7; - } - - .Media .Cover { - min-height: 1.2em; - min-width: 1.2em; - border-radius: $radius; - background-position: center; - background-size: contain; - } - - .Battery label { - padding-left: 0; - margin-left: 0; - } - - .AudioSlider { - * { - all: unset; - } - - icon { - margin-right: .6em; - } - - & { - margin: 0 1em; - } - - trough { - background-color: color.adjust($fg, $alpha: -0.8); - border-radius: $radius; - } - - highlight { - background-color: $accent; - min-height: .8em; - border-radius: $radius; - } - - slider { - background-color: $fg; - border-radius: $radius; - min-height: 1em; - min-width: 1em; - margin: -.2em; - } - } -} - diff --git a/packages/ags/custom/tsconfig.json b/packages/ags/custom/tsconfig.json deleted file mode 100644 index 9471e35..0000000 --- a/packages/ags/custom/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/packages/ags/custom/widget/Bar.tsx b/packages/ags/custom/widget/Bar.tsx deleted file mode 100644 index 9941dc4..0000000 --- a/packages/ags/custom/widget/Bar.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import { App } from "astal/gtk3" -import { Variable, GLib, bind } from "astal" -import { Astal, Gtk, Gdk } from "astal/gtk3" -import Hyprland from "gi://AstalHyprland" -import Mpris from "gi://AstalMpris" -import Battery from "gi://AstalBattery" -import Wp from "gi://AstalWp" -import Network from "gi://AstalNetwork" -import Tray from "gi://AstalTray" - -function SysTray() { - const tray = Tray.get_default() - - return - {bind(tray, "items").as(items => items.map(item => ( - ["dbusmenu", ag])} - menuModel={bind(item, "menuModel")}> - - - )))} - -} - -function Wifi() { - const network = Network.get_default() - const wifi = bind(network, "wifi") - - return - {wifi.as(wifi => wifi && ( - - ))} - - -} - -function AudioSlider() { - const speaker = Wp.get_default()?.audio.defaultSpeaker! - - return - - speaker.volume = value} - value={bind(speaker, "volume")} - /> - -} - -function BatteryLevel() { - const bat = Battery.get_default() - - return - - -} - -function Media() { - const mpris = Mpris.get_default() - - return - {bind(mpris, "players").as(ps => ps[0] ? ( - - - `background-image: url('${cover}');` - )} - /> - - ) : ( - -} - - -function Workspaces() { - const hypr = Hyprland.get_default(); - - return ( - - {bind(hypr, "focusedWorkspace").as((fw) => { - if (!fw) return null; - - // Determine the current chunk of 5 visible workspace buttons - const currentChunkStart = Math.floor((fw.id - 1) / 5) * 5 + 1; - const visibleIds = Array.from({ length: 5 }, (_, i) => currentChunkStart + i); - - return visibleIds.map((id) => { - // Try to get the real workspace, fall back to a dummy one if it doesn't exist - const ws = - hypr.workspaces.find((w) => w.id === id) ?? - Hyprland.Workspace.dummy(id, null); - - return ( - - ); - }); - })} - - ); -} - -function FocusedClient() { - const hypr = Hyprland.get_default(); - const focused = bind(hypr, "focusedClient"); - - return ( - - {focused.as(client => { - if (!client) return null; - - return ( - - ); -} -function Time({ format = "%H:%M|%a %b %d" }) { - const time = Variable("").poll(1000, () => - GLib.DateTime.new_now_local().format(format)! - ); - - return bind(time).as(str => { - const [hm, date] = str.split("|"); - - return ( - - - ); - }); -} - -export default function Bar(monitor: Gdk.Monitor) { - const { TOP, LEFT, RIGHT } = Astal.WindowAnchor - - return - - - - - - - - - - - - - - - -} diff --git a/packages/ags/home.nix b/packages/ags/home.nix deleted file mode 100644 index 8e4e1cf..0000000 --- a/packages/ags/home.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - inputs, - pkgs, - system, - ... -}: { - imports = [inputs.ags.homeManagerModules.default]; - - programs.ags = { - enable = true; - configDir = ./custom; - - extraPackages = let - agsPkgs = inputs.ags.packages.${system}; - in - with pkgs; [ - agsPkgs.battery - agsPkgs.hyprland - agsPkgs.mpris - agsPkgs.wireplumber - agsPkgs.notifd - agsPkgs.apps - agsPkgs.network - agsPkgs.tray - fzf - ]; - }; -} diff --git a/packages/bottles/default.nix b/packages/bottles/default.nix deleted file mode 100644 index dde84db..0000000 --- a/packages/bottles/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{pkgs, ...}: { - environment.systemPackages = with pkgs; [ - bottles - ]; -} diff --git a/packages/matugen/custom/config.toml b/packages/matugen/custom/config.toml deleted file mode 100644 index 12a558b..0000000 --- a/packages/matugen/custom/config.toml +++ /dev/null @@ -1,70 +0,0 @@ -[config] -# If set to enabled, it will check for updates when you run the matugen command, notifying you that an update is avaiable. -# WARNING: Matugen needs to be compiled with the `update-informer` feature for this to work. -version_check = false - -[config.wallpaper] -# The base command to run for applying the wallpaper, shouldn't have spaces in it. -command = "swww" - -# The arguments that will be provided to the command. -# Keywords like {{ mode }} or anything that works inside of hooks doesn't work here. -# The last argument will be the image path. -arguments = ["img", "--transition-type", "center", "--transition-fps", "120"] - -# For example, killing the wallpaper daemon. Usage is like a normal hook. -# pre_hook = "" - -[config.custom_keywords] -test = "aaaa" - -[templates.name1] -# Relative paths will be resolved from the path `config.toml` is in. -input_path = "./colors.whatever-extension" -output_path = "./a/colors-generated.whatever-extension" - -# This will use a different input path depending on what mode you use. -# input_path_modes = { dark = "./colors.whatever-extension", light = "./colors.whatever-extension" } - -# This will compare all of the colors inside the array with the color you set as `compare_to`, and returns the closest color to it. -# You can then use `{{closest_color}}` inside templates and hooks. -colors_to_compare = [ - { name = "black", color = "#000000" }, - { name = "red", color = "#ff0000" }, - { name = "maroon", color = "#800000" }, - { name = "yellow", color = "#ffff00" }, - { name = "olive", color = "#808000" }, - { name = "lime", color = "#00ff00" }, - { name = "green", color = "#008000" }, - { name = "aqua", color = "#00ffff" }, - { name = "teal", color = "#008080" }, - { name = "blue", color = "#0000ff" }, - { name = "navy", color = "#000080" }, - { name = "fuchsia", color = "#ff00ff" }, - { name = "purple", color = "#800080" }, -] -compare_to = "{{colors.primary.default.hex}}" - -# Runs before the template is exported. You can use keywords here, -pre_hook = 'echo "source color {{colors.source_color.default.hex}}, source image {{image}}, closest color {{closest_color}}"' -# Runs after the template is exported. You can use keywords here. -post_hook = 'echo "after gen"' - -# Only hex values -# https://m3.material.io/styles/color/advanced/adjust-existing-colors#1cc12e43-237b-45b9-8fe0-9a3549c1f61e -# Blend is set to true by default. -[config.custom_colors] -green = "#00ff00" -red = "#ff0000" -blue = { color = "#0000ff", blend = false } - -### --- my config -[templates.kitty] -input_path = '~/.config/nixos/pkgs/matugen/custom/templates/kitty.conf' -output_path = '~/.config/kitty/colors.conf' -post_hook = "kitty @ set-colors -a -c ~/.config/kitty/colors.conf" - -[templates.ags] -input_path = '~/.config/nixos/pkgs/matugen/custom/templates/ags.scss' -output_path = '~/.config/nixos/pkgs/ags/biscuit/colors.scss' -post_hook = "pkill gjs & ags run ~/.config/nixos/pkgs/ags/biscuit/app.ts & disown (jobs -p) &" diff --git a/packages/matugen/custom/templates/ags.scss b/packages/matugen/custom/templates/ags.scss deleted file mode 100644 index 0ad29c0..0000000 --- a/packages/matugen/custom/templates/ags.scss +++ /dev/null @@ -1,3 +0,0 @@ -$background: {{colors.surface.dark.hex}}; -$foreground: {{colors.on_surface.dark.hex}}; -$primary: {{colors.primary.dark.hex}}; diff --git a/packages/matugen/custom/templates/kitty.conf b/packages/matugen/custom/templates/kitty.conf deleted file mode 100644 index 91b8e4b..0000000 --- a/packages/matugen/custom/templates/kitty.conf +++ /dev/null @@ -1,41 +0,0 @@ -cursor {{colors.on_surface.default.hex}} -cursor_text_color {{colors.on_surface_variant.default.hex}} - -foreground {{colors.on_surface.default.hex}} -background {{colors.surface.default.hex}} -selection_foreground {{colors.on_secondary.default.hex}} -selection_background {{colors.secondary_fixed_dim.default.hex}} -url_color {{colors.primary.default.hex}} - -# black -color8 #262626 -color0 #4c4c4c - -# red -color1 #ac8a8c -color9 #c49ea0 - -# green -color2 #8aac8b -color10 #9ec49f - -# yellow -color3 #aca98a -color11 #c4c19e - -# blue -/* color4 #8f8aac */ -color4 {{colors.primary.default.hex}} -color12 #a39ec4 - -# magenta -color5 #ac8aac -color13 #c49ec4 - -# cyan -color6 #8aacab -color14 #9ec3c4 - -# white -color15 #e7e7e7 -color7 #f0f0f0 diff --git a/packages/matugen/default.nix b/packages/matugen/default.nix deleted file mode 100644 index ab30bd3..0000000 --- a/packages/matugen/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - inputs, - pkgs, - ... -}: { - imports = [inputs.matugen.nixosModules.default]; - environment.systemPackages = with pkgs; [ - inputs.matugen.packages.${system}.default - ]; -} diff --git a/packages/matugen/home.nix b/packages/matugen/home.nix deleted file mode 100644 index 2db2154..0000000 --- a/packages/matugen/home.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - pkgs, - inputs, - system, - ... -}: { - home.file.".config/matugen/config.toml" = { - source = builtins.toPath ./custom/config.toml; - }; -} diff --git a/packages/protonup/home.nix b/packages/protonup/home.nix deleted file mode 100644 index 6427da3..0000000 --- a/packages/protonup/home.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ - pkgs, - myConfig, - ... -}: { - home.packages = with pkgs; [ - protonup - ]; - - home.sessionVariables = { - STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${myConfig.essentials.Username}/.steam/root/compatibilitytools.d"; - }; -} diff --git a/packages/swww/home.nix b/packages/swww/home.nix deleted file mode 100644 index 4b1bfe2..0000000 --- a/packages/swww/home.nix +++ /dev/null @@ -1,3 +0,0 @@ -{...}: { - services.swww.enable = true; -} diff --git a/packages/udev/default.nix b/packages/udev/default.nix deleted file mode 100644 index 3d420e8..0000000 --- a/packages/udev/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - services.udev.extraRules = '' - SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0616", ATTR{power/wakeup}="enabled" - - ''; -}