diff --git a/README.md b/README.md index dcf9bc9..90248ad 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,78 @@ -# antergos-pkgs +# antergos-packages Custom package repository for Antergos NeXT ISO builds. ## Packages -| Package | Description | Source | -|---------|-------------|--------| -| `calamares` | Universal installer framework (Qt6) | [upstream](https://codeberg.org/calamares/calamares) | -| `calamares-branding-antergos-next` | Antergos Calamares branding + offline/online installer split + launcher | local | -| `antergos-next-keyring` | GPG keyring for the repo | local | -| `antergos-next-mirrorlist` | Mirror list for `[antergos-pkgs]` | local | -| `antergos-next-desktop-settings` | Plasma/GTK theme, dconf defaults | local | -| `antergos-wallpapers` | Antergos desktop wallpapers | local | -| `antergos-grub-theme` | Antergos GRUB theme | local | -| `antergos-welcome` | Welcome screen + support tool | local | -| `antergos-live` | Live session configuration | local | -| `antergos-release` | Antergos NeXT release file | local | -| `antergos-next-memes` | Welcome audio memes | local | -| `yay` | AUR helper | [AUR](https://aur.archlinux.org/packages/yay) | -| `downgrade` | Pacman package downgrade tool | [AUR](https://aur.archlinux.org/packages/downgrade) | +| Package | Description | +|---------|-------------| +| `calamares` | Universal installer framework (Qt6) — [upstream](https://codeberg.org/calamares/calamares) | +| `calamares-branding-antergos-next` | Antergos Calamares branding + netinstall-based installer + launcher | +| `calamares-branding-antergos-next-minimal` | Themed CMake module for first-run branding (no slideshow) | +| `antergos-next-keyring` | GPG keyring for the `[antergos-pkgs]` repo | +| `antergos-next-mirrorlist` | Mirror list for `[antergos-pkgs]` | +| `antergos-release` | Antergos NeXT `/etc/os-release` | +| `antergos-lsb-release` | LSB release info | +| `antergos-next-desktop-settings` | Plasma/GTK theme, dconf/plasma-settings defaults | +| `antergos-plasma-theme` | Plasma desktop theme | +| `antergos-xfce-theme` | XFCE desktop theme | +| `antergos-layan-theme` | Layan theme variant | +| `antergos-wallpapers` | Desktop wallpapers | +| `antergos-grub-theme` | GRUB theme | +| `antergos-welcome` | Welcome screen + support tool | +| `antergos-live` | Live session configuration | +| `antergos-i3-config` | Dark Antergos i3 configuration | +| `antergos-sway-config` | Dark Antergos Sway configuration | +| `antergos-hyprland-config` | Dark Antergos Hyprland configuration (Lua) | +| `pixie-sddm-git` | SDDM theme (pixie) | +| `tela-circle-icon-theme-git` | Tela Circle icon theme | +| `kwin-zones` | KWin tiling zones | +| `oh-my-posh-bin` | Prompt theme engine | +| `pacseek` | Pacman TUI browser | +| `yay` | AUR helper — [AUR](https://aur.archlinux.org/packages/yay) | +| `downgrade` | Pacman package downgrade tool — [AUR](https://aur.archlinux.org/packages/downgrade) | ## Usage -Add to `/etc/pacman.conf`: +Add to `/etc/pacman.conf` (before `[system]` to take priority): -``` +```ini [antergos-pkgs] SigLevel = Optional TrustAll -Server = https://antergos-next.github.io/antergos-packages/$repo/os/$arch +Server = https://antergos-next.github.io/antergos-packages/ ``` Then: -``` +```sh pacman -Sy pacman -S calamares calamares-branding-antergos-next antergos-wallpapers ``` ## Calamares installer -The `calamares-branding-antergos-next` package provides: +`calamares-branding-antergos-next` is the main branding component with: -- **Offline install** — unpacks KDE Plasma squashfs from the ISO (no internet needed) -- **Online install** — netinstall with init system selection (OpenRC, Dinit, S6, Runit) -- **Launcher** (`calamares-next`) — mode picker (online/offline) before launching Calamares -- **Packagechooser** — init system selection during online install +- **Packagechooser + netinstall** — DE selector (KDE, GNOME, XFCE, i3, Sway, Hyprland, Budgie, Cinnamon, MATE) and DM selector (SDDM, LightDM, GDM, Ly, greetd), with basestrap-based package groups +- **Launcher** (`calamares-next`) — launches Calamares with online settings +- **Animated space slideshow** — rocket, stars, comet, moon with smooth 700ms transitions -## Branches +A `calamares-branding-antergos-next-minimal` variant is also provided for the first-run welcome screen (no slideshow, CMake-themable). -- `master` — package definitions, CI builds + deploys to gh-pages -- Calamares packages shipped from upstream (with custom branding) +## How it works -## Index +On each push to `master` (or weekly Monday), GitHub Actions: -The repository index at [antergos-next.github.io/antergos-packages](https://antergos-next.github.io/antergos-packages/) is auto-generated via `generate-index.py` — parses PKGBUILD metadata and built packages to produce a sortable, searchable package browser. +1. Builds all packages from `packages.yaml` inside an Artix Linux container +2. Creates a pacman repo database (`repo-add`) +3. Generates a browsable package index (`generate-index.py`) +4. Deploys to [gh-pages](https://antergos-next.github.io/antergos-packages/) + +The repo serves as both a pacman repository and a web-based package browser. + +## Contributing + +See [CONTRIBUTING.md](https://github.com/Antergos-NeXT/antergos-packages/blob/master/CONTRIBUTING.md). ## License diff --git a/packages.yaml b/packages.yaml index ddb6fab..2aa6693 100644 --- a/packages.yaml +++ b/packages.yaml @@ -21,4 +21,7 @@ packages: - tela-circle-icon-theme-git - kwin-zones - oh-my-posh-bin - - pacseek \ No newline at end of file + - pacseek + - antergos-i3-config + - antergos-sway-config + - antergos-hyprland-config \ No newline at end of file diff --git a/packages/antergos-hyprland-config/PKGBUILD b/packages/antergos-hyprland-config/PKGBUILD new file mode 100644 index 0000000..39ea437 --- /dev/null +++ b/packages/antergos-hyprland-config/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Celestia Ludenberg + +pkgname=antergos-hyprland-config +pkgver=1.0 +pkgrel=1 +pkgdesc='Antergos NeXT Hyprland configuration — dark theme with waybar, rofi, dunst' +arch=('any') +url="https://github.com/Antergos-NeXT/antergos-packages" +license=('GPL3') +depends=( + 'hyprland' + 'waybar' + 'rofi' + 'dunst' + 'swww' + 'kitty' + 'ttf-jetbrains-mono-nerd' + 'papirus-icon-theme' +) +optdepends=( + 'hyprlock: screen locker' + 'hypridle: idle management' + 'hyprpaper: wallpaper daemon' + 'grim: screenshot tool' + 'slurp: region selection' + 'pavucontrol: audio settings' + 'brightnessctl: brightness control' +) +source=( + "hypr/hyprland.lua" + "hypr/hyprpaper.conf" + "waybar/config.jsonc" + "waybar/style.css" + "rofi/config.rasi" + "rofi/theme.rasi" + "dunst/dunstrc" +) +sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') + +package() { + local _skel="$pkgdir/etc/skel/.config" + + install -dm755 "$_skel/hypr" + install -dm755 "$_skel/waybar" + install -dm755 "$_skel/rofi" + install -dm755 "$_skel/dunst" + + cp -a "hypr/hyprland.lua" "$_skel/hypr/" + cp -a "hypr/hyprpaper.conf" "$_skel/hypr/" + cp -a "waybar/config.jsonc" "$_skel/waybar/" + cp -a "waybar/style.css" "$_skel/waybar/" + cp -a "rofi/config.rasi" "$_skel/rofi/" + cp -a "rofi/theme.rasi" "$_skel/rofi/" + cp -a "dunst/dunstrc" "$_skel/dunst/" +} diff --git a/packages/antergos-hyprland-config/dunst/dunstrc b/packages/antergos-hyprland-config/dunst/dunstrc new file mode 100644 index 0000000..7485a35 --- /dev/null +++ b/packages/antergos-hyprland-config/dunst/dunstrc @@ -0,0 +1,35 @@ +[global] + font = JetBrains Mono Nerd Font 10 + follow = mouse + width = 350 + height = 120 + offset = 10x48 + padding = 12 + horizontal_padding = 12 + frame_width = 2 + frame_color = "#4A9EFF" + separator_color = frame + sort = yes + idle_threshold = 120 + markup = full + alignment = left + word_wrap = yes + show_indicators = yes + icon_path = /usr/share/icons/Papirus/16x16/status/ + corner_radius = 8 + timeout = 5 + +[urgency_low] + background = "#20252B" + foreground = "#E3E2E6" + frame_color = "#676E7D" + +[urgency_normal] + background = "#20252B" + foreground = "#E3E2E6" + frame_color = "#4A9EFF" + +[urgency_critical] + background = "#20252B" + foreground = "#FF5555" + frame_color = "#FF5555" diff --git a/packages/antergos-hyprland-config/hypr/hyprland.lua b/packages/antergos-hyprland-config/hypr/hyprland.lua new file mode 100644 index 0000000..132a1d9 --- /dev/null +++ b/packages/antergos-hyprland-config/hypr/hyprland.lua @@ -0,0 +1,157 @@ +-- Hyprland config — Antergos NeXT dark theme +-- See https://wiki.hypr.land/Configuring/Start/ + +-- Monitor +hl.monitor({ + output = "", + mode = "preferred", + position = "auto", + scale = "auto", +}) + +-- Autostart +hl.on("hyprland.start", function() + hl.exec_cmd("waybar") + hl.exec_cmd("dunst") + hl.exec_cmd("swww init") + hl.exec_cmd("nm-applet") + hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") +end) + +-- Env +hl.env("XCURSOR_SIZE", "24") +hl.env("XDG_CURRENT_DESKTOP", "Hyprland") + +-- General config +hl.config({ + input = { + kb_layout = "us", + follow_mouse = 1, + touchpad = { + natural_scroll = false, + }, + sensitivity = 0, + }, + general = { + gaps_in = 5, + gaps_out = 10, + border_size = 2, + col = { + active_border = "rgba(4a9effff)", + inactive_border = "rgba(32373eff)", + nogroup_border = "rgba(32373eff)", + }, + layout = "dwindle", + no_border_on_floating = false, + }, + decoration = { + rounding = 10, + active_opacity = 1.0, + inactive_opacity = 1.0, + shadow = { + enabled = true, + range = 4, + render_power = 3, + color = "rgba(1a1e24ee)", + }, + blur = { + enabled = true, + size = 3, + passes = 1, + }, + }, + animations = { + enabled = true, + }, + dwindle = { + pseudotile = true, + preserve_split = true, + }, + master = { + mfact = 0.55, + new_status = "slave", + }, + gestures = { + workspace_swipe = true, + }, +}) + +-- Curves +hl.curve("myBezier", { type = "bezier", points = { {0.05, 0.9}, {0.1, 1.05} } }) + +-- Animations +hl.animation({ leaf = "windows", enabled = true, speed = 7, bezier = "myBezier" }) +hl.animation({ leaf = "windowsOut", enabled = true, speed = 7, bezier = "default" }) +hl.animation({ leaf = "fade", enabled = true, speed = 7, bezier = "default" }) +hl.animation({ leaf = "workspaces", enabled = true, speed = 6, bezier = "default" }) +hl.animation({ leaf = "border", enabled = true, speed = 10, bezier = "default" }) + +-- Window rules +hl.windowrule("float", "class:(pavucontrol)") +hl.windowrule("float", "class:(blueman-manager)") +hl.windowrule("float", "class:(qt5ct)") +hl.windowrule("float", "class:(qt6ct)") +hl.windowrule("float", "class:(imv)") +hl.windowrule("float", "class:(mpv)") +hl.windowrule("float", "title:(File Operation Progress)") +hl.windowrule("float", "title:(Picture-in-Picture)") +hl.windowrule("opacity 0.95 0.95", "class:(kitty)") + +-- Keybinds +local mainMod = "SUPER" + +-- Terminal +hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd("kitty")) +-- Kill active +hl.bind(mainMod .. " + Q", hl.dsp.window.close()) +-- Exit +hl.bind(mainMod .. " + M", hl.dsp.exit()) +-- Launcher +hl.bind(mainMod .. " + E", hl.dsp.exec_cmd("rofi -show drun")) +hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("rofi -show run")) +-- Window ops +hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" })) +hl.bind(mainMod .. " + P", hl.dsp.window.pseudo()) +hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) +hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen()) + +-- Focus movement (vim keys: h left, j down, k up, l right) +hl.bind(mainMod .. " + H", hl.dsp.focus({ direction = "l" })) +hl.bind(mainMod .. " + J", hl.dsp.focus({ direction = "d" })) +hl.bind(mainMod .. " + K", hl.dsp.focus({ direction = "u" })) +hl.bind(mainMod .. " + L", hl.dsp.focus({ direction = "r" })) + +-- Move window +hl.bind(mainMod .. " + SHIFT + H", hl.dsp.window.move({ direction = "l" })) +hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "d" })) +hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "u" })) +hl.bind(mainMod .. " + SHIFT + L", hl.dsp.window.move({ direction = "r" })) + +-- Workspaces +for i = 1, 10 do + local key = i % 10 + hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i })) + hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i })) +end + +-- Mouse binds (drag / resize) +hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true }) +hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true }) + +-- Media keys +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true }) +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true }) +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, repeating = true }) +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, repeating = true }) +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl set +5%"), { locked = true, repeating = true }) +hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("brightnessctl set 5%-"), { locked = true, repeating = true }) + +-- Screenshots +hl.bind("Print", hl.dsp.exec_cmd("grim -g \"$(slurp)\"")) +hl.bind("SHIFT + Print", hl.dsp.exec_cmd("grim")) + +-- Clipboard screenshot +hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd("grim -g \"$(slurp)\" - | wl-copy")) + +-- Reload config +hl.bind(mainMod .. " + SHIFT + C", hl.dsp.exec_cmd("hyprctl reload")) diff --git a/packages/antergos-hyprland-config/hypr/hyprpaper.conf b/packages/antergos-hyprland-config/hypr/hyprpaper.conf new file mode 100644 index 0000000..2ee7bdf --- /dev/null +++ b/packages/antergos-hyprland-config/hypr/hyprpaper.conf @@ -0,0 +1,2 @@ +preload = /usr/share/backgrounds/antergos/antergos-wallpaper.png +wallpaper = ,/usr/share/backgrounds/antergos/antergos-wallpaper.png diff --git a/packages/antergos-hyprland-config/rofi/config.rasi b/packages/antergos-hyprland-config/rofi/config.rasi new file mode 100644 index 0000000..66ab30a --- /dev/null +++ b/packages/antergos-hyprland-config/rofi/config.rasi @@ -0,0 +1,16 @@ +configuration { + modi: [drun,run,window]; + font: "JetBrains Mono 12"; + show-icons: true; + icon-theme: "Papirus"; + terminal: "kitty"; + location: 0; + sidebar-mode: true; + matching: "fuzzy"; + sorting-method: "fzf"; + display-drun: " Apps "; + display-run: " Run "; + display-window: " Windows "; +} + +@theme "~/.config/rofi/theme.rasi" diff --git a/packages/antergos-hyprland-config/rofi/theme.rasi b/packages/antergos-hyprland-config/rofi/theme.rasi new file mode 100644 index 0000000..04dfa54 --- /dev/null +++ b/packages/antergos-hyprland-config/rofi/theme.rasi @@ -0,0 +1,73 @@ +* { + background: #20252B; + background-alt: #2A3038; + foreground: #E3E2E6; + blue: #4A9EFF; + urgent: #FF5555; + + font: "JetBrains Mono 12"; + + bg: @background; + fg: @foreground; + ac: @blue; + urgent-bg: @urgent; +} + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 2px; + border-color: @ac; + border-radius: 10; + width: 600; +} + +mainbox { + background-color: @bg; + children: [inputbar, listview]; +} + +inputbar { + background-color: @bg; + text-color: @fg; + padding: 8; + spacing: 8; + children: [prompt, entry]; +} + +prompt { + text-color: @ac; +} + +entry { + text-color: @fg; +} + +listview { + background-color: @bg; + padding: 8; + lines: 8; + columns: 2; + spacing: 4; +} + +element { + background-color: @bg; + text-color: @fg; + padding: 6; + border-radius: 6; +} + +element selected { + background-color: @background-alt; + text-color: @ac; +} + +element-icon { + size: 24; +} + +element-text { + text-color: inherit; +} diff --git a/packages/antergos-hyprland-config/waybar/config.jsonc b/packages/antergos-hyprland-config/waybar/config.jsonc new file mode 100644 index 0000000..f235ce7 --- /dev/null +++ b/packages/antergos-hyprland-config/waybar/config.jsonc @@ -0,0 +1,76 @@ +{ + "layer": "top", + "position": "top", + "spacing": 12, + "modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"], + "modules-center": ["clock"], + "modules-right": ["cpu", "memory", "pulseaudio", "network", "battery", "tray"], + + "custom/launcher": { + "format": "", + "on-click": "rofi -show drun", + "tooltip": false + }, + + "hyprland/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "format": "{icon}", + "format-icons": { + "1": "1", "2": "2", "3": "3", "4": "4", + "5": "5", "6": "6", "7": "7", "8": "8", + "9": "9", "10": "0" + } + }, + + "hyprland/window": { + "format": "{}", + "max-length": 80 + }, + + "clock": { + "format": "{:%H:%M}", + "format-alt": "{:%a %b %d}", + "tooltip-format": "{:%Y-%m-%d}", + "interval": 30 + }, + + "cpu": { + "interval": 5, + "format": " {usage}%", + "states": { "warning": 70, "critical": 90 } + }, + + "memory": { + "interval": 5, + "format": " {percentage}%", + "states": { "warning": 70, "critical": 90 } + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": " muted", + "format-icons": { "default": ["", "", ""] }, + "on-click": "pavucontrol", + "scroll-step": 5 + }, + + "network": { + "format-wifi": " {essid}", + "format-ethernet": " eth", + "format-disconnected": " Off", + "interval": 5 + }, + + "battery": { + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-icons": ["", "", "", "", ""], + "states": { "warning": 30, "critical": 15 } + }, + + "tray": { + "icon-size": 16, + "spacing": 8 + } +} diff --git a/packages/antergos-hyprland-config/waybar/style.css b/packages/antergos-hyprland-config/waybar/style.css new file mode 100644 index 0000000..cdc98b7 --- /dev/null +++ b/packages/antergos-hyprland-config/waybar/style.css @@ -0,0 +1,99 @@ +@define-color bg #20252B; +@define-color bg-alt #2A3038; +@define-color fg #E3E2E6; +@define-color blue #4A9EFF; +@define-color cyan #00D4FF; +@define-color green #50FA7B; +@define-color orange #FFB86C; +@define-color red #FF5555; + +* { + border: none; + border-radius: 0; + min-height: 0; + margin: 2px; + padding: 0; + font-family: "JetBrains Mono Nerd Font", sans-serif; + font-size: 13px; +} + +#waybar { + background: rgba(32, 37, 43, 0.85); + color: @fg; + padding: 4px 8px; +} + +#custom-launcher { + font-size: 18px; + padding: 0 10px; + color: @blue; +} + +#workspaces { + margin: 0 4px; +} + +#workspaces button { + border-radius: 8px; + padding: 2px 8px; + margin: 2px; + background: transparent; + color: @fg; +} + +#workspaces button.active { + background: @blue; + color: @bg; + font-weight: bold; +} + +#workspaces button.urgent { + background: @red; + color: @fg; +} + +#clock, +#cpu, +#memory, +#pulseaudio, +#network, +#battery, +#tray { + padding: 0 10px; + margin: 2px 2px; + border-radius: 6px; + background: @bg-alt; +} + +#clock { + color: @blue; + font-weight: bold; +} + +#cpu { color: @cyan; } +#cpu.warning { color: @orange; } +#cpu.critical { color: @red; } + +#memory { color: @green; } +#memory.warning { color: @orange; } +#memory.critical { color: @red; } + +#pulseaudio { color: @fg; } +#pulseaudio.muted { color: @orange; } + +#network { color: @cyan; } +#network.disconnected { color: @red; } + +#battery { color: @fg; } +#battery.warning { color: @orange; } +#battery.critical { color: @red; } +#battery.charging { color: @green; } + +#tray { + background: transparent; +} + +#window { + padding: 0 8px; + color: @fg; +} diff --git a/packages/antergos-i3-config/PKGBUILD b/packages/antergos-i3-config/PKGBUILD new file mode 100644 index 0000000..b1e0186 --- /dev/null +++ b/packages/antergos-i3-config/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Celestia Ludenberg + +pkgname=antergos-i3-config +pkgver=1.0 +pkgrel=1 +pkgdesc='Antergos NeXT i3 WM configuration — Dracula dark theme with polybar, rofi, picom' +arch=('any') +url="https://github.com/Antergos-NeXT/antergos-packages" +license=('GPL3') +depends=( + 'i3-wm' + 'polybar' + 'rofi' + 'picom' + 'dunst' + 'feh' + 'sxhkd' + 'ttf-firacode-nerd' + 'papirus-icon-theme' +) +optdepends=( + 'kitty: default terminal emulator' + 'flameshot: screenshot tool' + 'brightnessctl: brightness control' + 'pavucontrol: audio settings GUI' +) +source=( + "i3/config" + "polybar/config.ini" + "polybar/launch.sh" + "rofi/config.rasi" + "rofi/theme.rasi" + "picom/picom.conf" + "dunst/dunstrc" + "sxhkd/sxhkdrc" +) +sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') + +package() { + local _skel="$pkgdir/etc/skel/.config" + + install -dm755 "$_skel/i3" + install -dm755 "$_skel/polybar" + install -dm755 "$_skel/rofi" + install -dm755 "$_skel/picom" + install -dm755 "$_skel/dunst" + install -dm755 "$_skel/sxhkd" + + cp -a "i3/config" "$_skel/i3/" + cp -a "polybar/config.ini" "$_skel/polybar/" + install -m755 "polybar/launch.sh" "$_skel/polybar/" + cp -a "rofi/config.rasi" "$_skel/rofi/" + cp -a "rofi/theme.rasi" "$_skel/rofi/" + cp -a "picom/picom.conf" "$_skel/picom/" + cp -a "dunst/dunstrc" "$_skel/dunst/" + cp -a "sxhkd/sxhkdrc" "$_skel/sxhkd/" +} diff --git a/packages/antergos-i3-config/dunst/dunstrc b/packages/antergos-i3-config/dunst/dunstrc new file mode 100644 index 0000000..6460a83 --- /dev/null +++ b/packages/antergos-i3-config/dunst/dunstrc @@ -0,0 +1,35 @@ +[global] + font = FiraCode Nerd Font 10 + follow = mouse + width = 350 + height = 120 + offset = 10x48 + padding = 12 + horizontal_padding = 12 + frame_width = 2 + frame_color = "#4A9EFF" + separator_color = frame + sort = yes + idle_threshold = 120 + markup = full + alignment = left + word_wrap = yes + show_indicators = yes + icon_path = /usr/share/icons/Papirus/16x16/status/ + corner_radius = 8 + timeout = 5 + +[urgency_low] + background = "#20252B" + foreground = "#E3E2E6" + frame_color = "#676E7D" + +[urgency_normal] + background = "#20252B" + foreground = "#E3E2E6" + frame_color = "#4A9EFF" + +[urgency_critical] + background = "#20252B" + foreground = "#FF5555" + frame_color = "#FF5555" diff --git a/packages/antergos-i3-config/i3/config b/packages/antergos-i3-config/i3/config new file mode 100644 index 0000000..b9062b3 --- /dev/null +++ b/packages/antergos-i3-config/i3/config @@ -0,0 +1,141 @@ +# i3 config file (v4) +# Antergos NeXT i3 configuration — Dark theme with #4A9EFF blue accent +# See https://i3wm.org/docs/userguide.html + +set $mod Mod4 +font pango:FiraCode Nerd Font 10 +floating_modifier $mod + +set $bg #20252B +set $bg-alt #2A3038 +set $fg #E3E2E6 +set $blue #4A9EFF +set $cyan #00D4FF +set $green #50FA7B +set $orange #FFB86C +set $red #FF5555 +set $purple #BD93F9 + +client.focused $blue $bg-alt $fg $cyan +client.unfocused $bg-alt $bg $fg $bg-alt +client.focused_inactive $bg-alt $bg-alt $fg $bg-alt +client.urgent $red $red $fg $orange + +default_border pixel 2 +default_floating_border pixel 2 +hide_edge_borders smart +focus_follows_mouse yes + +gaps inner 6 +gaps outer 4 +smart_gaps on +smart_borders on + +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +bindsym $mod+Return exec kitty +bindsym $mod+q kill +bindsym $mod+d exec rofi -show drun +bindsym $mod+Shift+d exec rofi -show run +bindsym $mod+space exec rofi -show window + +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +bindsym $mod+b split h +bindsym $mod+v split v +bindsym $mod+e layout toggle split +bindsym $mod+f fullscreen toggle +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+Shift+space floating toggle +bindsym $mod+a focus parent +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +bindsym $mod+Shift+c reload +bindsym $mod+Shift+r restart +bindsym $mod+Shift+e exec i3-nagbar -t warning -m 'Exit i3?' -B 'Yes' 'i3-msg exit' + +mode "resize" { + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +for_window [class="Pavucontrol"] floating enable +for_window [class="Blueman-manager"] floating enable +for_window [class="Lxappearance"] floating enable +for_window [window_role="pop-up"] floating enable +for_window [window_role="task_dialog"] floating enable + +exec_always --no-startup-id feh --bg-scale /usr/share/backgrounds/antergos/antergos-wallpaper.png +exec_always --no-startup-id ~/.config/polybar/launch.sh +exec_always --no-startup-id picom --config ~/.config/picom/picom.conf -b +exec --no-startup-id dunst +exec --no-startup-id nm-applet +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 + +bar { + i3bar_command i3bar + status_command i3status + position bottom + strip_workspace_numbers yes + colors { + background #20252B + statusline #E3E2E6 + separator #4A9EFF + focused_workspace #20252B #4A9EFF #FFFFFF + active_workspace #2A3038 #2A3038 #E3E2E6 + inactive_workspace #20252B #20252B #676E7D + urgent_workspace #FF5555 #FF5555 #FFFFFF + } +} + +bindsym $mod+m bar mode toggle diff --git a/packages/antergos-i3-config/picom/picom.conf b/packages/antergos-i3-config/picom/picom.conf new file mode 100644 index 0000000..df27f18 --- /dev/null +++ b/packages/antergos-i3-config/picom/picom.conf @@ -0,0 +1,65 @@ +corner-radius = 8; +round-borders = 1; + +rounded-corners-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "class_g = 'i3bar'", + "class_g = 'Rofi'" +]; + +shadow = true; +shadow-radius = 12; +shadow-opacity = 0.5; +shadow-offset-x = -8; +shadow-offset-y = -8; +shadow-color = "#000000"; + +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Polybar'", + "class_g = 'Rofi'", + "window_type = 'dock'", + "window_type = 'desktop'" +]; + +fading = true; +fade-in-step = 0.06; +fade-out-step = 0.06; +fade-delta = 8; + +active-opacity = 1.0; +inactive-opacity = 0.92; +frame-opacity = 0.9; +inactive-opacity-override = false; + +opacity-rule = [ + "100:window_type = 'dock'", + "100:class_g = 'Rofi'", + "95:class_g = 'kitty'", + "95:class_g = 'Alacritty'" +]; + +blur-method = "dual_kawase"; +blur-strength = 4; +blur-background = true; +blur-background-frame = false; +blur-kern = "3x3box"; + +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "class_g = 'Polybar'" +]; + +backend = "glx"; +glx-no-stencil = true; +glx-no-rebind-pixmap = true; +use-damage = true; +vsync = true; + +wintypes = { + dock = { shadow = false; fade = false; opacity = 1.0; blur-background = false; }; + tooltip = { shadow = false; fade = true; opacity = 0.95; }; + notification = { shadow = false; fade = true; opacity = 1.0; }; +}; diff --git a/packages/antergos-i3-config/polybar/config.ini b/packages/antergos-i3-config/polybar/config.ini new file mode 100644 index 0000000..16d40d3 --- /dev/null +++ b/packages/antergos-i3-config/polybar/config.ini @@ -0,0 +1,119 @@ +[colors] +background = #20252B +background-alt = #2A3038 +foreground = #E3E2E6 +primary = #4A9EFF +secondary = #00D4FF +warning = #FFB86C +alert = #FF5555 +disabled = #676E7D + +[bar/main] +width = 100% +height = 24pt +radius = 6 +bottom = false +background = ${colors.background} +foreground = ${colors.foreground} +line-size = 2pt +border-size = 0pt +padding-left = 1 +padding-right = 1 +module-margin = 1 +separator = | +separator-foreground = ${colors.disabled} +font-0 = "FiraCode Nerd Font:size=10;2" +font-1 = "Noto Color Emoji:size=12;2" +modules-left = i3 +modules-center = date +modules-right = filesystem memory cpu pulseaudio network battery + +[module/i3] +type = internal/i3 +pin-workspaces = true +strip-wsnumbers = true +index-sort = true +enable-click = true +enable-scroll = true +label-focused = %index% +label-focused-background = ${colors.primary} +label-focused-foreground = #20252B +label-focused-padding = 2 +label-unfocused = %index% +label-visible = %index% +label-visible-background = ${colors.background-alt} +label-visible-padding = 2 +label-urgent = %index% +label-urgent-foreground = ${colors.alert} +label-separator = " " + +[module/date] +type = internal/date +interval = 5 +date = %H:%M +date-alt = %a %Y-%m-%d +label = %date% +label-foreground = ${colors.primary} + +[module/filesystem] +type = internal/fs +interval = 30 +mount-0 = / +warn-percentage = 90 +label-mounted = DSK %percentage_used%% +label-mounted-foreground = ${colors.foreground} +label-warn = DSK %percentage_used%%! +label-warn-foreground = ${colors.alert} + +[module/memory] +type = internal/memory +interval = 3 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage%% + +[module/pulseaudio] +type = internal/pulseaudio +use-ui-max = true +label-muted-foreground = ${colors.disabled} +label-muted = MUTED +format-volume = +ramp-volume-0 = VOL +ramp-volume-1 = VOL +ramp-volume-2 = VOL +click-right = pavucontrol & + +[module/network] +type = internal/network +interface-type = wireless +interval = 3.0 +format-connected = +label-connected = WIFI +label-connected-foreground = ${colors.foreground} +format-disconnected = +label-disconnected = OFF +label-disconnected-foreground = ${colors.disabled} + +[module/battery] +type = internal/battery +battery = BAT0 +adapter = ADP1 +full-at = 85 +poll-interval = 30 +format-charging = CHR %percentage%% +format-charging-foreground = ${colors.secondary} +format-discharging = BAT %percentage%% +label-full = FULL +format-low = LOW %percentage%% +label-low-foreground = ${colors.alert} +low-at = 15 + +[settings] +screenchange-reload = true diff --git a/packages/antergos-i3-config/polybar/launch.sh b/packages/antergos-i3-config/polybar/launch.sh new file mode 100755 index 0000000..9d9ca9a --- /dev/null +++ b/packages/antergos-i3-config/polybar/launch.sh @@ -0,0 +1,4 @@ +#!/bin/bash +killall -q polybar +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done +polybar main & diff --git a/packages/antergos-i3-config/rofi/config.rasi b/packages/antergos-i3-config/rofi/config.rasi new file mode 100644 index 0000000..66ab30a --- /dev/null +++ b/packages/antergos-i3-config/rofi/config.rasi @@ -0,0 +1,16 @@ +configuration { + modi: [drun,run,window]; + font: "JetBrains Mono 12"; + show-icons: true; + icon-theme: "Papirus"; + terminal: "kitty"; + location: 0; + sidebar-mode: true; + matching: "fuzzy"; + sorting-method: "fzf"; + display-drun: " Apps "; + display-run: " Run "; + display-window: " Windows "; +} + +@theme "~/.config/rofi/theme.rasi" diff --git a/packages/antergos-i3-config/rofi/theme.rasi b/packages/antergos-i3-config/rofi/theme.rasi new file mode 100644 index 0000000..04dfa54 --- /dev/null +++ b/packages/antergos-i3-config/rofi/theme.rasi @@ -0,0 +1,73 @@ +* { + background: #20252B; + background-alt: #2A3038; + foreground: #E3E2E6; + blue: #4A9EFF; + urgent: #FF5555; + + font: "JetBrains Mono 12"; + + bg: @background; + fg: @foreground; + ac: @blue; + urgent-bg: @urgent; +} + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 2px; + border-color: @ac; + border-radius: 10; + width: 600; +} + +mainbox { + background-color: @bg; + children: [inputbar, listview]; +} + +inputbar { + background-color: @bg; + text-color: @fg; + padding: 8; + spacing: 8; + children: [prompt, entry]; +} + +prompt { + text-color: @ac; +} + +entry { + text-color: @fg; +} + +listview { + background-color: @bg; + padding: 8; + lines: 8; + columns: 2; + spacing: 4; +} + +element { + background-color: @bg; + text-color: @fg; + padding: 6; + border-radius: 6; +} + +element selected { + background-color: @background-alt; + text-color: @ac; +} + +element-icon { + size: 24; +} + +element-text { + text-color: inherit; +} diff --git a/packages/antergos-i3-config/sxhkd/sxhkdrc b/packages/antergos-i3-config/sxhkd/sxhkdrc new file mode 100644 index 0000000..2cf2e06 --- /dev/null +++ b/packages/antergos-i3-config/sxhkd/sxhkdrc @@ -0,0 +1,22 @@ +# Reload sxhkd +super + Escape + pkill -USR1 -x sxhkd + +# Volume +XF86Audio{RaiseVolume,LowerVolume,Mute} + amixer set Master {5%+,5%-,toggle} + +# Brightness +XF86MonBrightness{Up,Down} + brightnessctl set {+10%,10%-} + +# Screenshot +Print + flameshot gui + +super + Print + flameshot full -p ~/Pictures + +# File manager +ctrl + alt + h + thunar diff --git a/packages/antergos-next-desktop-settings/antergos-next-dconf b/packages/antergos-next-desktop-settings/antergos-next-dconf index 6fe3a70..fde4872 100644 --- a/packages/antergos-next-desktop-settings/antergos-next-dconf +++ b/packages/antergos-next-desktop-settings/antergos-next-dconf @@ -6,11 +6,11 @@ font-name='Noto Sans, 10' color-scheme='prefer-dark' [org/gnome/desktop/background] -picture-uri='file:///usr/share/backgrounds/antergos-next/default.jpg' -picture-uri-dark='file:///usr/share/backgrounds/antergos-next/default.jpg' +picture-uri='file:///usr/share/backgrounds/antergos/antergos-wallpaper.png' +picture-uri-dark='file:///usr/share/backgrounds/antergos/antergos-wallpaper.png' [org/gnome/desktop/screensaver] -picture-uri='file:///usr/share/backgrounds/antergos-next/default.jpg' +picture-uri='file:///usr/share/backgrounds/antergos/antergos-wallpaper.png' [org/cinnamon/desktop/interface] gtk-theme='Breeze-Dark' diff --git a/packages/antergos-sway-config/PKGBUILD b/packages/antergos-sway-config/PKGBUILD new file mode 100644 index 0000000..5a4f22f --- /dev/null +++ b/packages/antergos-sway-config/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Celestia Ludenberg + +pkgname=antergos-sway-config +pkgver=1.0 +pkgrel=1 +pkgdesc='Antergos NeXT Sway WM configuration — dark theme with waybar, wofi, mako' +arch=('any') +url="https://github.com/Antergos-NeXT/antergos-packages" +license=('GPL3') +depends=( + 'sway' + 'waybar' + 'wofi' + 'mako' + 'swaybg' + 'grim' + 'slurp' + 'ttf-jetbrains-mono-nerd' + 'papirus-icon-theme' +) +optdepends=( + 'foot: default terminal emulator' + 'pavucontrol: audio settings GUI' + 'brightnessctl: brightness control' + 'swaylock: screen locker' + 'playerctl: media player controls' +) +source=( + "sway/config" + "sway/config.d/99-autostart" + "waybar/config.jsonc" + "waybar/style.css" + "wofi/config" + "wofi/style.css" + "mako/config" +) +sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') + +package() { + local _skel="$pkgdir/etc/skel/.config" + + install -dm755 "$_skel/sway/config.d" + install -dm755 "$_skel/waybar" + install -dm755 "$_skel/wofi" + install -dm755 "$_skel/mako" + + cp -a "sway/config" "$_skel/sway/" + cp -a "sway/config.d/99-autostart" "$_skel/sway/config.d/" + cp -a "waybar/config.jsonc" "$_skel/waybar/" + cp -a "waybar/style.css" "$_skel/waybar/" + cp -a "wofi/config" "$_skel/wofi/" + cp -a "wofi/style.css" "$_skel/wofi/" + cp -a "mako/config" "$_skel/mako/" +} diff --git a/packages/antergos-sway-config/mako/config b/packages/antergos-sway-config/mako/config new file mode 100644 index 0000000..e4629f7 --- /dev/null +++ b/packages/antergos-sway-config/mako/config @@ -0,0 +1,21 @@ +font=JetBrains Mono Nerd Font 10 +background-color=#20252B +text-color=#E3E2E6 +border-color=#4A9EFF +width=350 +height=120 +margin=15 +padding=12 +border-size=2 +border-radius=8 +default-timeout=5000 +icon-path=/usr/share/icons/Papirus/16x16/status +anchor=top-right +max-visible=5 + +[urgency=low] +border-color=#676E7D + +[urgency=high] +border-color=#FF5555 +text-color=#FF5555 diff --git a/packages/antergos-sway-config/sway/config b/packages/antergos-sway-config/sway/config new file mode 100644 index 0000000..a96eb0b --- /dev/null +++ b/packages/antergos-sway-config/sway/config @@ -0,0 +1,129 @@ +# Sway config — Antergos NeXT dark theme +# See man 5 sway for reference + +set $mod Mod4 +set $left h +set $down j +set $up k +set $right l +set $term foot + +font pango:JetBrains Mono Nerd Font 10 + +floating_modifier $mod normal + +# Colors +# border background text indicator child_border +client.focused #4A9EFF #2A3038 #E3E2E6 #00D4FF +client.unfocused #2A3038 #20252B #676E7D #20252B +client.focused_inactive #2A3038 #2A3038 #E3E2E6 #2A3038 +client.urgent #FF5555 #20252B #E3E2E6 #FF5555 + +default_border pixel 2 +hide_edge_borders smart +focus_follows_mouse yes + +gaps inner 4 +gaps outer 2 +smart_gaps on +smart_borders on + +# Workspaces +workspace 1 output * +workspace 2 output * +workspace 3 output * +workspace 4 output * +workspace 5 output * +workspace 6 output * +workspace 7 output * +workspace 8 output * +workspace 9 output * +workspace 10 output * + +# Keybindings +bindsym $mod+Return exec $term +bindsym $mod+Shift+q kill +bindsym $mod+d exec wofi --show drun +bindsym $mod+space exec wofi --show run + +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right + +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + +bindsym $mod+b splith +bindsym $mod+v splitv +bindsym $mod+f fullscreen +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split +bindsym $mod+Shift+space floating toggle +bindsym $mod+space focus mode_toggle +bindsym $mod+a focus parent +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 + +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 10 + +bindsym $mod+Shift+c reload +bindsym $mod+Shift+r restart +bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit sway?' -B 'Yes' 'swaymsg exit' + +# Media keys +bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle +bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5% +bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym Print exec grim -g "$(slurp)" +bindsym Shift+Print exec grim + +# Floating windows +for_window [app_id="pavucontrol"] floating enable +for_window [app_id="blueman-manager"] floating enable +for_window [app_id="qt5ct"] floating enable +for_window [app_id="qt6ct"] floating enable + +# Resize mode +mode "resize" { + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + bindsym Return mode default + bindsym Escape mode default +} +bindsym $mod+r mode "resize" + +include /etc/sway/config.d/* +include ~/.config/sway/config.d/* diff --git a/packages/antergos-sway-config/sway/config.d/99-autostart b/packages/antergos-sway-config/sway/config.d/99-autostart new file mode 100644 index 0000000..f023796 --- /dev/null +++ b/packages/antergos-sway-config/sway/config.d/99-autostart @@ -0,0 +1,7 @@ +# Autostart applications for Sway +exec swaybg -i /usr/share/backgrounds/antergos/antergos-wallpaper.png -m fill +exec waybar +exec mako +exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec nm-applet +exec foot --server diff --git a/packages/antergos-sway-config/waybar/config.jsonc b/packages/antergos-sway-config/waybar/config.jsonc new file mode 100644 index 0000000..ed78c43 --- /dev/null +++ b/packages/antergos-sway-config/waybar/config.jsonc @@ -0,0 +1,70 @@ +{ + "layer": "top", + "position": "top", + "spacing": 12, + "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], + "modules-center": ["clock"], + "modules-right": ["cpu", "memory", "pulseaudio", "network", "battery", "tray"], + + "sway/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "format": "{icon}", + "format-icons": { + "1": "1", "2": "2", "3": "3", "4": "4", + "5": "5", "6": "6", "7": "7", "8": "8", + "9": "9", "10": "0" + } + }, + + "sway/window": { + "format": "{}", + "max-length": 80 + }, + + "clock": { + "format": "{:%H:%M}", + "format-alt": "{:%a %b %d}", + "tooltip-format": "{:%Y-%m-%d}", + "interval": 30 + }, + + "cpu": { + "interval": 5, + "format": " {usage}%", + "states": { "warning": 70, "critical": 90 } + }, + + "memory": { + "interval": 5, + "format": " {percentage}%", + "states": { "warning": 70, "critical": 90 } + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": " muted", + "format-icons": { "default": ["", "", ""] }, + "on-click": "pavucontrol", + "scroll-step": 5 + }, + + "network": { + "format-wifi": " {essid}", + "format-ethernet": " eth", + "format-disconnected": " Off", + "interval": 5 + }, + + "battery": { + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-icons": ["", "", "", "", ""], + "states": { "warning": 30, "critical": 15 } + }, + + "tray": { + "icon-size": 16, + "spacing": 8 + } +} diff --git a/packages/antergos-sway-config/waybar/style.css b/packages/antergos-sway-config/waybar/style.css new file mode 100644 index 0000000..7e00d68 --- /dev/null +++ b/packages/antergos-sway-config/waybar/style.css @@ -0,0 +1,88 @@ +@define-color bg #20252B; +@define-color bg-alt #2A3038; +@define-color fg #E3E2E6; +@define-color blue #4A9EFF; +@define-color cyan #00D4FF; +@define-color green #50FA7B; +@define-color orange #FFB86C; +@define-color red #FF5555; + +* { + border: none; + border-radius: 0; + min-height: 0; + margin: 2px; + padding: 0; + font-family: "JetBrains Mono Nerd Font", sans-serif; + font-size: 13px; +} + +#waybar { + background: rgba(32, 37, 43, 0.85); + color: @fg; + padding: 4px 8px; +} + +#workspaces { + margin: 0 4px; +} + +#workspaces button { + border-radius: 8px; + padding: 2px 8px; + margin: 2px; + background: transparent; + color: @fg; +} + +#workspaces button.focused { + background: @blue; + color: @bg; + font-weight: bold; +} + +#workspaces button.urgent { + background: @red; + color: @fg; +} + +#clock, +#cpu, +#memory, +#pulseaudio, +#network, +#battery, +#tray { + padding: 0 10px; + margin: 2px 2px; + border-radius: 6px; + background: @bg-alt; +} + +#clock { + color: @blue; + font-weight: bold; +} + +#cpu { color: @cyan; } +#cpu.warning { color: @orange; } +#cpu.critical { color: @red; } + +#memory { color: @green; } +#memory.warning { color: @orange; } +#memory.critical { color: @red; } + +#pulseaudio { color: @fg; } +#pulseaudio.muted { color: @orange; } + +#network { color: @cyan; } +#network.disconnected { color: @red; } + +#battery { color: @fg; } +#battery.warning { color: @orange; } +#battery.critical { color: @red; } +#battery.charging { color: @green; } + +#tray { + background: transparent; +} diff --git a/packages/antergos-sway-config/wofi/config b/packages/antergos-sway-config/wofi/config new file mode 100644 index 0000000..07f48d3 --- /dev/null +++ b/packages/antergos-sway-config/wofi/config @@ -0,0 +1,18 @@ +drun-use-generic=true +insensitive=true +allow_markup=true +allow_images=true +show_all=true +term=foot +width=25% +lines=8 +columns=1 +spacing=6 +location=center +xoffset=0 +yoffset=0 +halign=fill +orientation=vertical +filtering=true +sorting=default +hide_scroll=true diff --git a/packages/antergos-sway-config/wofi/style.css b/packages/antergos-sway-config/wofi/style.css new file mode 100644 index 0000000..1e65a2c --- /dev/null +++ b/packages/antergos-sway-config/wofi/style.css @@ -0,0 +1,53 @@ +* { + font-family: "JetBrains Mono Nerd Font"; + font-size: 13px; +} + +window { + background-color: #20252B; + border: 2px solid #4A9EFF; + border-radius: 10px; +} + +#input { + background-color: #2A3038; + color: #E3E2E6; + border: none; + border-radius: 6px; + padding: 8px; + margin: 8px; +} + +#inner-box { + background-color: #20252B; + padding: 4px; +} + +#outer-box { + background-color: #20252B; + padding: 8px; +} + +#scroll { + background-color: #20252B; +} + +#entry { + background-color: #20252B; + color: #E3E2E6; + padding: 6px; + border-radius: 6px; +} + +#entry:selected { + background-color: #4A9EFF; + color: #20252B; +} + +#text { + margin: 0 8px; +} + +#img { + margin-right: 8px; +}