user/polybar: some tweaks
This commit is contained in:
parent
1891401fcc
commit
4645bf5228
1 changed files with 52 additions and 15 deletions
|
|
@ -1,15 +1,24 @@
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
services.polybar = {
|
services.polybar =
|
||||||
|
let
|
||||||
|
colours = {
|
||||||
|
background1 = "#1a1b26";
|
||||||
|
background2 = "#9d7cd8";
|
||||||
|
accent = "#c0caf5";
|
||||||
|
foreground2 = "#1a1b26";
|
||||||
|
foreground2trans = "#cc1a1b26";
|
||||||
|
};
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
script = builtins.readFile ../../scripts/polybar.sh;
|
script = builtins.readFile ../../scripts/polybar.sh;
|
||||||
settings = {
|
settings = {
|
||||||
"bar/top" = {
|
"bar/top" = {
|
||||||
monitor = "eDP-1";
|
monitor = "eDP-1";
|
||||||
width = "100%";
|
width = "100%";
|
||||||
height = 35;
|
height = 29;
|
||||||
#background = "#64506c";
|
background = colours.background1;
|
||||||
background = "#00000000";
|
|
||||||
foreground = "#fff";
|
foreground = "#fff";
|
||||||
|
offset-y = 3;
|
||||||
|
|
||||||
spacing = 2;
|
spacing = 2;
|
||||||
padding = {
|
padding = {
|
||||||
|
|
@ -24,15 +33,16 @@
|
||||||
"NotoSans:style=SemiBold:size=11:antialias=true;2"
|
"NotoSans:style=SemiBold:size=11:antialias=true;2"
|
||||||
"NotoSans:size=11:antialias=true;2"
|
"NotoSans:size=11:antialias=true;2"
|
||||||
"MaterialIcons:size=17:antialias=true;6"
|
"MaterialIcons:size=17:antialias=true;6"
|
||||||
|
"Iosevka:style=Medium:antialias=false:size=19;4"
|
||||||
|
|
||||||
"HanaMinA:size=9.8;1"
|
"HanaMinA:size=9.8;1"
|
||||||
"HanaMinB:size=9.8;1"
|
"HanaMinB:size=9.8;1"
|
||||||
];
|
];
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
left = "workspaces";
|
left = "left workspaces right";
|
||||||
center = "title";
|
center = "title";
|
||||||
right = "datetime";
|
right = "left datetime right";
|
||||||
};
|
};
|
||||||
|
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
|
|
@ -42,6 +52,26 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"module/left" = {
|
||||||
|
type = "custom/text";
|
||||||
|
|
||||||
|
content = {
|
||||||
|
text = "%{T4}";
|
||||||
|
background = colours.background1;
|
||||||
|
foreground = colours.background2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"module/right" = {
|
||||||
|
type = "custom/text";
|
||||||
|
|
||||||
|
content = {
|
||||||
|
text = "%{T4}";
|
||||||
|
background = colours.background1;
|
||||||
|
foreground = colours.background2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"module/workspaces" = {
|
"module/workspaces" = {
|
||||||
type = "internal/bspwm";
|
type = "internal/bspwm";
|
||||||
|
|
||||||
|
|
@ -50,25 +80,32 @@
|
||||||
enable-scroll = false;
|
enable-scroll = false;
|
||||||
reverse-scroll = false;
|
reverse-scroll = false;
|
||||||
|
|
||||||
#ws-icon.default = "%{T3}"; # ef4a
|
|
||||||
label = {
|
label = {
|
||||||
monitor = "";
|
monitor = "";
|
||||||
focused = "%{T3}"; # ef4a
|
focused = {
|
||||||
|
text = "%{T3}"; # ef4a
|
||||||
|
background = colours.background2;
|
||||||
|
foreground = colours.accent;
|
||||||
|
};
|
||||||
occupied = {
|
occupied = {
|
||||||
text = "%{T3}"; # e837
|
text = "%{T3}"; # e837
|
||||||
foreground = "#80FFFFFF";
|
background = colours.background2;
|
||||||
|
foreground = colours.background1;
|
||||||
};
|
};
|
||||||
empty = {
|
empty = {
|
||||||
text = "%{T3}"; # ef4a
|
text = "%{T3}"; # ef4a
|
||||||
foreground = "#80FFFFFF";
|
background = colours.background2;
|
||||||
|
foreground = colours.background1;
|
||||||
};
|
};
|
||||||
urgent = {
|
urgent = {
|
||||||
text = "%{T3}"; # e837
|
text = "%{T3}"; # e837
|
||||||
foreground = "#EE1012";
|
background = colours.background2;
|
||||||
|
foreground = colours.background1;
|
||||||
};
|
};
|
||||||
|
|
||||||
separator = {
|
separator = {
|
||||||
text = " ";
|
text = " ";
|
||||||
|
background = colours.background2;
|
||||||
padding = "0";
|
padding = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -85,11 +122,11 @@
|
||||||
"module/datetime" = {
|
"module/datetime" = {
|
||||||
type = "internal/date";
|
type = "internal/date";
|
||||||
date = {
|
date = {
|
||||||
text = "%{T1}%%{F#fff}%H:%M%%{F-}";
|
text = "%{T1}%%{F${colours.foreground2}}%H:%M%%{F-}";
|
||||||
alt = "%{T2}%%{F#ccc}%A, %d %B %Y %{T1}%%{F#fff}%H:%M%%{F#666}:%{T2}%%{F#ccc}%S%%{F-}";
|
alt = "%{T2}%%{F${colours.foreground2trans}}%A, %d %B %Y %{T1}%%{F${colours.foreground2}}%H:%M%%{F${colours.foreground2trans}}:%{T2}%S%%{F-}";
|
||||||
};
|
};
|
||||||
format = {
|
format = {
|
||||||
padding = 4;
|
background = colours.background2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue