From 39cc656c6ad94189d14971d23213b2694308c942 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sun, 15 Mar 2026 19:50:15 +0000 Subject: [PATCH] added ironbar and not much else --- .config/hypr/rules.conf | 16 ++++----- .config/ironbar/config.corn | 34 +++++++++++++++++++ .config/ironbar/style.css | 65 +++++++++++++++++++++++++++++++++++++ .nixos | 2 +- 4 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 .config/ironbar/config.corn create mode 100644 .config/ironbar/style.css diff --git a/.config/hypr/rules.conf b/.config/hypr/rules.conf index 30354d79..aad82ed5 100644 --- a/.config/hypr/rules.conf +++ b/.config/hypr/rules.conf @@ -92,7 +92,6 @@ windowrule { size = 420 220 float = on opaque = on - xray = on animation = popin 50% match:class = ^(otter)$ } @@ -121,13 +120,7 @@ layerrule { blur = on ignore_alpha = 0 match:namespace = notifications -} - -layerrule { - name = layerrule-2 - blur = on - ignore_alpha = 0 - match:namespace = swaync-notification-window + match:namespace = swaync-notification-window } layerrule { @@ -136,6 +129,13 @@ layerrule { match:namespace = logout_dialog } +layerrule { + name = layerrule-3 + blur = on + ignore_alpha = 0 + match:namespace = ironbar +} + layerrule { name = layerrule-4 ignore_alpha = 0 diff --git a/.config/ironbar/config.corn b/.config/ironbar/config.corn new file mode 100644 index 00000000..6d137ecf --- /dev/null +++ b/.config/ironbar/config.corn @@ -0,0 +1,34 @@ +let { + $workspaces = { type = "workspaces" name = "workspaces" hidden = [ "special:music" ] } + + $focused = { type = "focused" icon_size = 10 } + + $battery = { type = "battery" show_if = "ls /sys/class/power_supply/ | grep --quiet '^BAT'" } + $sys_info = { type = "sys_info" format = ["{cpu_percent}% " "{memory_percent}% "] interval.cpu = 1 } + $tray = { type = "tray" } + $clock = { type = "clock" format = "%T" name = "clock" } + + $marginlr = 500 + + $margin = { + top = 2 + left = $marginlr + right = $marginlr + } + + $bar = { + position = "top" + height = 15 + margin = $margin + + start = [ $sys_info ] + center = [ $workspaces ] + end = [ $clock ] + } +} in { + monitors = { + DP-1 = $bar + DP-2 = $bar + HDMI-A-1 = $bar + } +} diff --git a/.config/ironbar/style.css b/.config/ironbar/style.css new file mode 100644 index 00000000..1a81b529 --- /dev/null +++ b/.config/ironbar/style.css @@ -0,0 +1,65 @@ +@import url('https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css'); + +.background { + background-color: rgba(var(--ctp-mocha-base-rgb) / 0.4); + padding: 2px; + border-radius: 10px; +} + +#workspaces { + padding: 0.5px 0; + margin: 0; + border-radius: 5px; +} + +#workspaces button { + background-color: rgba(var(--ctp-mocha-surface2-rgb) / 0.2); + border-radius: 3px; + color: var(--ctp-mocha-subtext1); + padding: 0; + margin: 0px 1px; +} + +#workspaces .item .icon { + padding: 0; + margin: 0; +} + +#workspaces button:first-child { + border-radius: 5px 3px 3px 5px; +} + +#workspaces button:last-child { + border-radius: 3px 5px 5px 3px; +} + +#workspaces button:only-child { + border-radius: 4px; +} + +#workspaces button:hover { + background-color: rgba(var(--ctp-mocha-lavender-rgb) / 0.2); + color: var(--ctp-mocha-base); +} + +#workspaces .item.focused { + background-color: var(--ctp-mocha-mauve); + color: var(--ctp-mocha-mantle); +} + +#clock { + margin: 0; + padding: 0 5px; + border-radius: 10px; + background-color: rgba(var(--ctp-mocha-surface2-rgb) / 0.4); + color: var(--ctp-mocha-red); +} + +.sysinfo { + color: var(--ctp-mocha-sapphire); + background-color: rgba(var(--ctp-mocha-surface2-rgb) / 0.4); + padding: 0 15px; + border-radius: 10px; + margin: 0; +} + diff --git a/.nixos b/.nixos index 94f0e793..3be9cbe6 160000 --- a/.nixos +++ b/.nixos @@ -1 +1 @@ -Subproject commit 94f0e793d7835d4871f8616f25ed0752a80ed88b +Subproject commit 3be9cbe622257f65b0a6573b9080784e3c3d9774