mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 14:15:36 +00:00
start prettying polybar
This commit is contained in:
parent
f65255c7c1
commit
d32757924f
@ -40,32 +40,32 @@
|
|||||||
];
|
];
|
||||||
colors = {
|
colors = {
|
||||||
primary = {
|
primary = {
|
||||||
background = "0x1d2021";
|
background = "#282828";
|
||||||
foreground = "0xd5c4a1";
|
foreground = "#d5c4a1";
|
||||||
};
|
};
|
||||||
cursor = {
|
cursor = {
|
||||||
text = "0x1d2021";
|
text = "#1d2021";
|
||||||
cursor = "0xd5c4a1";
|
cursor = "#d5c4a1";
|
||||||
};
|
};
|
||||||
normal = {
|
normal = {
|
||||||
black = "0x1d2021";
|
black = "#1d2021";
|
||||||
red = "0xfb4934";
|
red = "#fb4934";
|
||||||
green = "0xb8bb26";
|
green = "#b8bb26";
|
||||||
yellow = "0xfabd2f";
|
yellow = "#fabd2f";
|
||||||
blue = "0x83a598";
|
blue = "#83a598";
|
||||||
magenta = "0xd3869b";
|
magenta = "#d3869b";
|
||||||
cyan = "0x8ec07c";
|
cyan = "#8ec07c";
|
||||||
white = "0xd5c4a1";
|
white = "#d5c4a1";
|
||||||
};
|
};
|
||||||
bright = {
|
bright = {
|
||||||
black = "0x665c54";
|
black = "#665c54";
|
||||||
red = "0xfe8019";
|
red = "#fe8019";
|
||||||
green = "0x3c3836";
|
green = "#3c3836";
|
||||||
yellow = "0x504945";
|
yellow = "#504945";
|
||||||
blue = "0xbdae93";
|
blue = "#bdae93";
|
||||||
magenta = "0xebdbb2";
|
magenta = "#ebdbb2";
|
||||||
cyan = "0xd65d0e";
|
cyan = "#d65d0e";
|
||||||
white = "0xfbf1c7";
|
white = "#fbf1c7";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
draw_bold_text_with_bright_colors = false;
|
draw_bold_text_with_bright_colors = false;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
fonts.fonts = with pkgs;
|
fonts.fonts = with pkgs;
|
||||||
[
|
[
|
||||||
gui.font.package # Used for Vim and Terminal
|
pkgs."${gui.font.package}" # Used for Vim and Terminal
|
||||||
# siji # More icons for Polybar
|
# siji # More icons for Polybar
|
||||||
];
|
];
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ gui.font.name ];
|
fonts.fontconfig.defaultFonts.monospace = [ gui.font.name ];
|
||||||
|
@ -14,16 +14,26 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
config = let
|
config = let
|
||||||
modifier = "Mod4"; # Super key
|
modifier = "Mod4"; # Super key
|
||||||
ws1 = "1:";
|
ws1 = "I";
|
||||||
ws2 = "2:";
|
ws2 = "II";
|
||||||
ws3 = "3:";
|
ws3 = "III";
|
||||||
ws4 = "4:";
|
ws4 = "IV";
|
||||||
ws5 = "5:";
|
ws5 = "V";
|
||||||
ws6 = "6:";
|
ws6 = "VI";
|
||||||
ws7 = "7:";
|
ws7 = "VII";
|
||||||
ws8 = "8:";
|
ws8 = "VIII";
|
||||||
ws9 = "9:";
|
ws9 = "IX";
|
||||||
ws10 = "10:";
|
ws10 = "X";
|
||||||
|
# ws1 = "1:";
|
||||||
|
# ws2 = "2:";
|
||||||
|
# ws3 = "3:";
|
||||||
|
# ws4 = "4:";
|
||||||
|
# ws5 = "5:";
|
||||||
|
# ws6 = "6:";
|
||||||
|
# ws7 = "7:";
|
||||||
|
# ws8 = "8:";
|
||||||
|
# ws9 = "9:";
|
||||||
|
# ws10 = "10:";
|
||||||
in {
|
in {
|
||||||
modifier = modifier;
|
modifier = modifier;
|
||||||
assigns = {
|
assigns = {
|
||||||
@ -191,7 +201,7 @@
|
|||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{
|
{
|
||||||
command = "feh --bg-scale $HOME/Downloads/basic-wallpaper.webp";
|
command = "feh --bg-scale $HOME/Downloads/nord-desert.png";
|
||||||
always = true;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
|
@ -2,22 +2,22 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.services.xserver.enable {
|
config = lib.mkIf config.services.xserver.enable {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs;
|
|
||||||
[
|
|
||||||
polybarFull # Includes PulseAudio
|
|
||||||
];
|
|
||||||
|
|
||||||
# Used for icons
|
# Used for icons
|
||||||
fonts.fonts = with pkgs; [ font-awesome ];
|
fonts.fonts = with pkgs; [ jetbrains-mono font-awesome ];
|
||||||
|
|
||||||
home-manager.users.${identity.user} = {
|
home-manager.users.${identity.user} = {
|
||||||
|
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.polybar.override {
|
||||||
|
i3GapsSupport = true;
|
||||||
|
pulseSupport = true;
|
||||||
|
githubSupport = true;
|
||||||
|
};
|
||||||
script = "polybar &";
|
script = "polybar &";
|
||||||
config = let
|
config = let
|
||||||
colors = {
|
colors = {
|
||||||
background = "#282A2E";
|
background = "#282828";
|
||||||
background-alt = "#373B41";
|
background-alt = "#373B41";
|
||||||
foreground = "#C5C8C6";
|
foreground = "#C5C8C6";
|
||||||
primary = "#F0C674";
|
primary = "#F0C674";
|
||||||
@ -27,35 +27,41 @@
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
"bar/main" = {
|
"bar/main" = {
|
||||||
|
bottom = false;
|
||||||
width = "100%";
|
width = "100%";
|
||||||
height = "24pt";
|
height = "22pt";
|
||||||
radius = 6;
|
radius = 0;
|
||||||
|
# offset-y = "5%";
|
||||||
# dpi = 96;
|
# dpi = 96;
|
||||||
background = colors.background;
|
background = colors.background;
|
||||||
foreground = colors.foreground;
|
foreground = colors.foreground;
|
||||||
line-size = "3pt";
|
line-size = "3pt";
|
||||||
border-size = "4pt";
|
border-top-size = 0;
|
||||||
border-color = "#00000000";
|
border-right-size = 0;
|
||||||
padding-left = 0;
|
border-left-size = 0;
|
||||||
padding-right = 1;
|
border-bottom-size = "4pt";
|
||||||
|
border-color = "#1d2021";
|
||||||
|
padding-left = 2;
|
||||||
|
padding-right = 2;
|
||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
separator = "|";
|
# separator = "|";
|
||||||
separator-foreground = colors.disabled;
|
# separator-foreground = colors.disabled;
|
||||||
font-0 = "monospace;2";
|
font-0 = "JetBrainsMono:size=10;2";
|
||||||
font-1 = "Font Awesome 5 Free";
|
# font-0 = "monospace;2";
|
||||||
font-2 = "Font Awesome 5 Free Solid";
|
font-1 = "Font Awesome 5 Free:size=10";
|
||||||
font-3 = "Font Awesome 5 Brands";
|
font-2 = "Font Awesome 5 Free Solid:size=10";
|
||||||
modules-left = "xworkspaces xwindow";
|
font-3 = "Font Awesome 5 Brands:size=10";
|
||||||
modules-right =
|
modules-left = "xworkspaces";
|
||||||
"filesystem pulseaudio xkeyboard memory cpu wlan eth date";
|
modules-center = "xwindow";
|
||||||
|
modules-right = "pulseaudio date";
|
||||||
cursor-click = "pointer";
|
cursor-click = "pointer";
|
||||||
cursor-scroll = "ns-resize";
|
cursor-scroll = "ns-resize";
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
# tray-position = right
|
tray-position = "right";
|
||||||
# wm-restack = generic
|
# wm-restack = "generic";
|
||||||
# wm-restack = bspwm
|
# wm-restack = "bspwm";
|
||||||
# wm-restack = i3
|
# wm-restack = "i3";
|
||||||
# override-redirect = true
|
# override-redirect = true;
|
||||||
};
|
};
|
||||||
"module/xworkspaces" = {
|
"module/xworkspaces" = {
|
||||||
type = "internal/xworkspaces";
|
type = "internal/xworkspaces";
|
||||||
@ -88,10 +94,13 @@
|
|||||||
type = "internal/pulseaudio";
|
type = "internal/pulseaudio";
|
||||||
format-volume-prefix = "VOL ";
|
format-volume-prefix = "VOL ";
|
||||||
format-volume-prefix-foreground = colors.primary;
|
format-volume-prefix-foreground = colors.primary;
|
||||||
format-volume = "<label-volume>";
|
format-volume = "<ramp-volume> <label-volume>";
|
||||||
label-volume = "%percentage%%";
|
label-volume = "%percentage%%";
|
||||||
label-muted = "muted";
|
label-muted = "";
|
||||||
label-muted-foreground = colors.disabled;
|
label-muted-foreground = colors.disabled;
|
||||||
|
ramp-volume-0 = "";
|
||||||
|
ramp-volume-1 = "";
|
||||||
|
ramp-volume-2 = "";
|
||||||
};
|
};
|
||||||
# "module/xkeyboard" = {
|
# "module/xkeyboard" = {
|
||||||
# type = "internal/xkeyboard";
|
# type = "internal/xkeyboard";
|
||||||
@ -137,14 +146,14 @@
|
|||||||
"module/date" = {
|
"module/date" = {
|
||||||
type = "internal/date";
|
type = "internal/date";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
date = "%H:%M";
|
date = "%H:%M:%S";
|
||||||
date-alt = "%Y-%m-%d %H:%M:%S";
|
date-alt = "%Y-%m-%d %H:%M:%S";
|
||||||
label = "%date%";
|
label = " %date%";
|
||||||
label-foreground = colors.primary;
|
label-foreground = colors.primary;
|
||||||
};
|
};
|
||||||
"settings" = {
|
"settings" = {
|
||||||
screenchange-reload = true;
|
screenchange-reload = true;
|
||||||
pseudo-transparency = true;
|
pseudo-transparency = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user