🚀 add theming with base16

This commit is contained in:
Moritz Böhme 2022-04-23 17:31:50 +02:00
parent 34e2ad58ce
commit f6976cd478
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5
9 changed files with 416 additions and 153 deletions

View file

@ -14,57 +14,6 @@
"ctrl+plus" = "change_font_size all +2.0";
"ctrl+minus" = "change_font_size all -2.0";
};
extraConfig = ''
foreground #f8f8f2
background #282a36
#background #000000
selection_foreground #44475a
selection_background #f8f8f2
url_color #ffb86c
# black
color0 #21222c
color8 #6272a4
# red
color1 #ff5555
color9 #ff6e6e
# green
color2 #50fa7b
color10 #69ff94
# yellow
color3 #f1fa8c
color11 #ffffa5
# blue
color4 #bd93f9
color12 #d6acff
# magenta
color5 #ff79c6
color13 #ff92df
# cyan
color6 #8be9fd
color14 #a4ffff
# white
color7 #f8f8f2
color15 #ffffff
# Cursor colors
cursor #6272a4
cursor_text_color background
# Tab bar colors
active_tab_foreground #44475a
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
'';
font = {
name = "FiraCode Nerd Font";
size = 10;

View file

@ -7,7 +7,6 @@
enable = true;
package =
pkgs.rofi.override { plugins = with pkgs; [ rofi-calc rofi-emoji ]; };
theme = ./dracula.rasi;
extraConfig = { combi-modi = "drun,window,emoji"; };
};
home.packages = with pkgs;

View file

@ -1,58 +1,13 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = {
programs.zathura = {
enable = true;
options = {
#
# Startup Options
#
recolor = true;
adjust-open = "width";
#
# Dracula Theme
#
completion-bg = "#282a36";
completion-fg = "#ff79c6";
completion-group-bg = "#282a36";
completion-group-fg = "#6272a4";
completion-highlight-bg = "#44475a";
completion-highlight-fg = "#f8f8f2";
notification-error-bg = "#ff5555";
notification-error-fg = "#f8f8f2";
notification-warning-bg = "#ffb86c";
notification-warning-fg = "#44475a";
notification-bg = "#282a36";
notification-fg = "#f8f8f2";
index-bg = "#282a36";
index-fg = "#f8f8f2";
index-active-bg = "#44475a";
index-active-fg = "#f8f8f2";
default-bg = "#44475a";
default-fg = "#bd93f9";
inputbar-bg = "#282a36";
inputbar-fg = "#8be9fd";
statusbar-bg = "#282a36";
statusbar-fg = "#f8f8f2";
render-loading = true;
render-loading-fg = "#282a36";
render-loading-bg = "#f8f8f2";
#
# Recolor settings
#
recolor-lightcolor = "#282a36";
recolor-darkcolor = "#f8f8f2";
font = "Jetbrains Mono 9";
};
home-manager.users.moritz.programs.zathura = {
enable = true;
options = {
recolor = true;
adjust-open = "width";
font = "Jetbrains Mono 9";
selection-clipboard = "clipboard";
};
};
}

View file

@ -34,7 +34,7 @@ in {
"feh" = { state = "floating"; };
"Vampire_Survivors" = { state = "fullscreen"; };
};
settings = {
settings = with config.scheme.withHashtag; {
border_width = 2;
window_gap = 5;
borderless_monocle = true;
@ -42,9 +42,9 @@ in {
focus_follows_pointer = true;
# Dracula theme #
focused_border_color = "#bd93f9";
normal_border_color = "#44475a";
active_border_color = "#6272a4";
focused_border_color = base0D;
normal_border_color = base03;
active_border_color = base03;
};
startupPrograms = [
"${pkgs.systemd}/bin/systemctl --user start polybar.service"

View file

@ -12,22 +12,7 @@ in {
MONITOR=$m polybar --reload bottom &
done
'';
config = let
colors = {
background = "#282a36";
current-line = "#44475a";
foreground = "#f8f8f2";
comment = "#6272a4";
cyan = "#8be9fd";
green = "#50fa7b";
orange = "#ffb86c";
pink = "#ff79c6";
purple = "#bd93f9";
red = "#ff5555";
yellow = "#f1fa8c";
};
in {
config = with config.scheme.withHashtag; {
"global/wm" = { margin-top = 5; };
"bar/bottom" = {
# position
@ -35,18 +20,18 @@ in {
bottom = true;
width = "100%:-20";
heigth = 25;
background = colors.background;
foreground = colors.foreground;
background = base00;
foreground = base05;
radius = 10;
offset-x = 10;
offset-y = 5;
padding = 1;
line-size = 3;
line-color = colors.pink;
line-color = base06;
module-margin = 1;
separator = "%{F${colors.comment}}%{F-}";
separator = "%{F${base03}}%{F-}";
font-0 = "FiraCode Nerd Font:size=10;0";
@ -69,10 +54,10 @@ in {
time-format = "%H:%M";
format-charging =
"%{F${colors.green}}<animation-charging>%{F-} <label-charging>";
"%{F${base0B}}<animation-charging>%{F-} <label-charging>";
format-discharging =
"%{F${colors.red}}<animation-discharging>%{F-} <label-discharging>";
format-full = "%{F${colors.green}} %{F-} <label-full>";
"%{F${base08}}<animation-discharging>%{F-} <label-discharging>";
format-full = "%{F${base08}} %{F-} <label-full>";
label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining";
@ -96,23 +81,23 @@ in {
type = "internal/bspwm";
label-focused = "";
label-focused-foreground = colors.purple;
label-focused-foreground = base0E;
label-focused-padding = 1;
label-occupied = "";
label-occupied-foreground = colors.comment;
label-occupied-foreground = base03;
label-occupied-padding = 1;
label-urgent = "";
label-urgent-foreground = colors.red;
label-urgent-foreground = base08;
label-urgent-padding = 1;
label-empty = "";
label-empty-foreground = colors.comment;
label-empty-foreground = base03;
label-empty-padding = 1;
label-separator = " ";
label-separator-foreground = colors.cyan;
label-separator-foreground = base0C;
label-separator-padding = 1;
pin-workspaces = true;
@ -123,11 +108,11 @@ in {
format = "<ramp-load><label>";
ramp-load-0 = " ";
ramp-load-0-foreground = colors.green;
ramp-load-0-foreground = base0B;
ramp-load-1 = " ";
ramp-load-1-foreground = colors.orange;
ramp-load-1-foreground = base0A;
ramp-load-2 = " ";
ramp-load-2-foreground = colors.red;
ramp-load-2-foreground = base08;
label = "%percentage:2%%";
};
@ -140,7 +125,7 @@ in {
label = "%time%";
format-prefix = " ";
format-prefix-foreground = colors.cyan;
format-prefix-foreground = base0C;
};
"module/date" = {
type = "internal/date";
@ -151,7 +136,7 @@ in {
label = "%date%";
format-prefix = " ";
format-prefix-foreground = colors.orange;
format-prefix-foreground = base0A;
};
"module/memory" = {
@ -160,11 +145,11 @@ in {
format = "<ramp-used><label>";
ramp-used-0 = " ";
ramp-used-0-foreground = colors.green;
ramp-used-0-foreground = base0B;
ramp-used-1 = " ";
ramp-used-1-foreground = colors.orange;
ramp-used-1-foreground = base0A;
ramp-used-2 = " ";
ramp-used-2-foreground = colors.red;
ramp-used-2-foreground = base08;
ramp-used-3 = " ";
label = "%gb_used%";
@ -173,20 +158,20 @@ in {
type = "internal/pulseaudio";
format-volume = "<ramp-volume> <label-volume>";
format-underline = colors.orange;
format-underline = base0A;
label-volume = "%percentage%%";
label-muted = "%{F${colors.red}} %{F-}muted";
label-muted = "%{F${base08}} %{F-}muted";
ramp-volume-0 = "";
ramp-volume-0-foreground = colors.green;
ramp-volume-0-foreground = base0B;
ramp-volume-1 = "";
ramp-volume-1-foreground = colors.green;
ramp-volume-1-foreground = base0B;
ramp-volume-2 = "奔";
ramp-volume-2-foreground = colors.green;
ramp-volume-2-foreground = base0B;
ramp-volume-3 = "";
ramp-volume-3-foreground = colors.orange;
ramp-volume-3-foreground = base0A;
ramp-volume-4 = "";
ramp-volume-4-foreground = colors.red;
ramp-volume-4-foreground = base08;
click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
};
@ -197,7 +182,7 @@ in {
interval = 3;
format-connected = "<label-connected>";
label-connected =
"%{F${colors.purple}}%{F-} %upspeed% %{F${colors.pink}}%{F-} %downspeed%";
"%{F${base0E}}%{F-} %upspeed% %{F${base06}}%{F-} %downspeed%";
};
};
};