diff --git a/home/desktop/i3.nix b/home/desktop/i3.nix index 0afdd18..3d43cfa 100644 --- a/home/desktop/i3.nix +++ b/home/desktop/i3.nix @@ -25,8 +25,14 @@ hideEdgeBorders = "both"; }; - floating = { - border = 0; + colors = { + focused = { + background = "#222222"; + border = "#333333"; + childBorder = "#222222"; + indicator = "#292d2e"; + text = "#888888"; + }; }; # mkOptionDefault hace que se ponga la config por default diff --git a/home/desktop/polybar.nix b/home/desktop/polybar.nix index b11abba..969d112 100644 --- a/home/desktop/polybar.nix +++ b/home/desktop/polybar.nix @@ -38,55 +38,9 @@ background = "\${colors.background}"; foreground = "\${colors.foreground}"; - padding-right = 0; line-size = 1; - line-color = "#f00"; - - module-margin-left = 1; - module-margin-right = 1; - - # font-0 = "fixed:pixelsize=10;1"; - font-0 = "JetBrains Mono Light:size=10;0"; - font-1 = "unifont:fontformat=truetype:size=8:antialias=false;0"; - font-2 = "siji:pixelsize=10;1"; - # font-2 = "FontAwesome5Free:style=Regular:size=10;4"; - - modules-left = "i3"; - modules-center = "xwindow"; - modules-right = "xkeyboard pulseaudio filesystem memory cpu temperature gputemperature nvmetemperature wlan eth date semanatec"; - separator = "|"; - - tray-position = "right"; - tray-padding = 2; - # tray-background = "#0063ff"; - - # wm-restack = "i3"; - - # override-redirect = true; - - # scroll-up = "i3wm-wsnext"; - # scroll-down = "i3wm-wsprev"; - - cursor-click = "pointer"; - cursor-scroll = "ns-resize"; - }; - - "bar/secondary" = { - monitor = "\${env:MONITOR:DisplayPort-1}"; - # monitor = "\${env:MONITOR:HDMI-A-0}"; - width = "100%"; - height = 30; - offset-x = "0%"; - offset-y = "0%"; - radius = 0.0; - fixed-center = false; - - background = "\${colors.background}"; - foreground = "\${colors.foreground}"; - - line-size = 1; - line-color = "#f00"; + line-color = "#f0000000"; border-size = 0; border-color = "#00000000"; @@ -105,20 +59,34 @@ modules-left = "i3"; modules-center = "xwindow"; - modules-right = "xkeyboard pulseaudio date"; + modules-right = "xkeyboard pulseaudio filesystem memory cpu temperature gputemperature nvmetemperature wlan eth date semanatec"; separator = "|"; + tray-position = "right"; + tray-padding = 2; + + # To allow other windows to be placed above the bar, or to avoid having the bar visible when in fullscreen mode, + # you need to use the following two parameters. Note that it will tell the window manager to back off so no + # area will be reserved, etc. + # # wm-restack = "i3"; - # override-redirect = true; - # scroll-up = "i3wm-wsnext"; - # scroll-down = "i3wm-wsprev"; - cursor-click = "pointer"; cursor-scroll = "ns-resize"; }; + "bar/secondary" = { + monitor = "\${env:MONITOR:DisplayPort-1}"; + # monitor = "\${env:MONITOR:HDMI-A-0}"; + "inherit" = "bar/main"; + + modules-left = "i3"; + modules-center = "xwindow"; + modules-right = "xkeyboard pulseaudio date"; + tray-position = "none"; + }; + "module/xwindow" = { type = "internal/xwindow"; label = "%title:0:30:...%"; @@ -142,8 +110,7 @@ type = "internal/fs"; interval = 10; - mount-0 = "/mnt"; - mount-5 = "/"; + mount-0 = "/"; label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %used%/%total%"; label-unmounted = "";