From 2384b5314eb2fb961bd57d6fb6c5c78cab31dd1c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 3 Aug 2024 11:42:27 -0400 Subject: fix beryl display the dpi from dpi.lv was completely wrong, i got this number from xrandr, also rotated them vertically and updated my polybar config here --- profiles/beryllium.nix | 49 ++++++++++++++++++------------------------------- 1 file changed, 18 insertions(+), 31 deletions(-) (limited to 'profiles') diff --git a/profiles/beryllium.nix b/profiles/beryllium.nix index 170dee2..7176dc4 100644 --- a/profiles/beryllium.nix +++ b/profiles/beryllium.nix @@ -48,7 +48,7 @@ in { primary = true; position = "0x0"; mode = "3840x2160"; - dpi = 331; + dpi = 156; rate = "60.00"; }; DP-0 = { @@ -56,7 +56,7 @@ in { primary = false; position = "3840x0"; mode = "3840x2160"; - dpi = 331; + dpi = 156; rate = "60.00"; }; in { @@ -66,40 +66,27 @@ in { inherit DP-2 DP-0; }; }; + portrait = { + inherit fingerprint; + config = { + DP-0 = DP-0 // { rotate = "left"; position = "2160x0"; }; + DP-2 = DP-2 // { rotate = "left"; }; + }; + }; }; services.random-background.enable = lib.mkForce true; services.polybar.enable = true; - services.polybar.config."bar/top".monitor = "DP-0"; + + services.polybar.config."bar/perf".monitor = "DP-0"; + services.polybar.config."bar/cpu".monitor = "DP-0"; + services.polybar.config."bar/cpu".bottom = true; + services.polybar.config."bar/org".monitor = "DP-2"; + services.polybar.script = '' - polybar top & - polybar second & + polybar perf & + polybar cpu & + polybar org & ''; - services.polybar.config."bar/second" = { - background = colors."${theme}".background; - font-0 = "FiraSans:size=${toString fontSize}"; - font-1 = "Font Awesome 5:pixelsize=11;1"; - font-2 = "MaterialIcons:size=10:antialias=false;2"; - foreground = colors."${theme}".foreground; - height = "30"; - module-margin = 1; - modules-center = "date"; - modules-left = ["ewmh" "volume-bar"]; - modules-right = [ "battery" "cpu" "mem" "temp" ]; - monitor = "DP-2"; - radius = 0; - separator = "|"; - tray-background = colors."${theme}".background; - tray-detached = false; - tray-maxsize = 16; - tray-offset-x = 0; - tray-offset-y = 0; - tray-padding = 0; - tray-position = "right"; - tray-scale = 1; - width = "100%"; - }; } - - -- cgit v1.2.3