From 7ced7d04de9b9f616b1a98494c702506abe894a7 Mon Sep 17 00:00:00 2001 From: Ezri Date: Sun, 18 Aug 2024 17:46:30 -0600 Subject: [PATCH] Minor updates --- .config/alacritty/alacritty.toml##class.hidpi | 2 +- .config/eww/eww.yuck##hostname.rocinante | 14 ++++++++++ .config/eww/windows.yuck | 26 +++++++++++++++++++ .config/ssh/90-internet.conf | 2 +- .config/systemd/user/eww.service | 4 +-- 5 files changed, 44 insertions(+), 4 deletions(-) diff --git a/.config/alacritty/alacritty.toml##class.hidpi b/.config/alacritty/alacritty.toml##class.hidpi index 7b9bfd1..34319e3 100644 --- a/.config/alacritty/alacritty.toml##class.hidpi +++ b/.config/alacritty/alacritty.toml##class.hidpi @@ -41,7 +41,7 @@ highlight_damage = false render_timer = false [font] -size = 12 +size = 11 [font.bold] family = "JetBrainsMono Nerd Font" diff --git a/.config/eww/eww.yuck##hostname.rocinante b/.config/eww/eww.yuck##hostname.rocinante index 6f4e171..ea6c120 100644 --- a/.config/eww/eww.yuck##hostname.rocinante +++ b/.config/eww/eww.yuck##hostname.rocinante @@ -24,3 +24,17 @@ (rocinante-builtinbar--left) (rocinante-builtinbar--center) (rocinante-builtinbar--right))) + +(defwindow externalbar + :monitor 1 + :geometry (geometry :width "100%" + :height "36px" + :anchor "top center") + :exclusive true + :focusable false + :stacking "fg" + (centerbox :orientation "h" :class "bar root ${power--state == 'critical' ? 'reservepower' : ''}" + (rocinante-externalbar--left) + (rocinante-externalbar--center) + (rocinante-externalbar--right))) + diff --git a/.config/eww/windows.yuck b/.config/eww/windows.yuck index a376712..4c655b9 100644 --- a/.config/eww/windows.yuck +++ b/.config/eww/windows.yuck @@ -36,6 +36,32 @@ (audio) (clock))) +(defwidget rocinante-externalbar--left [] + (box :orientation "h" + :halign "start" + :space-evenly false + :spacing 20 + :class "leftbox" + (system-name))) + +(defwidget rocinante-externalbar--center [] + (box :orientation "h" + :halign "center" + :space-evenly false + :spacing 20 + :class "centerbox")) + +(defwidget rocinante-externalbar--right [] + (box :orientation "h" + :halign "end" + :space-evenly false + :spacing 20 + :class "rightbox" + (vpn-network) + (network) + (system-battery :battery "BAT1") + (audio) + (clock))) ;;; ;;; ;; Bars for S.S.V. Normandy ;; diff --git a/.config/ssh/90-internet.conf b/.config/ssh/90-internet.conf index ccba5d6..c87be09 100644 --- a/.config/ssh/90-internet.conf +++ b/.config/ssh/90-internet.conf @@ -4,7 +4,7 @@ Host gitea Hostname git.ezri.dev - User gitea + User git Host github Hostname github.com diff --git a/.config/systemd/user/eww.service b/.config/systemd/user/eww.service index 36510b3..55e5b2c 100644 --- a/.config/systemd/user/eww.service +++ b/.config/systemd/user/eww.service @@ -3,8 +3,8 @@ Description=eww status bars PartOf=sway-session.target [Service] -Type=forking -ExecStart=eww daemon +Type=simple +ExecStart=eww daemon --no-daemonize ExecReload=eww reload ExecStop=eww kill ExecStopPost=sleep 1