feat: move to gruvbox

This commit is contained in:
Artur Manuel 2024-12-10 15:12:00 +00:00
commit c467ee449d
18 changed files with 442 additions and 436 deletions

View file

@ -1,26 +0,0 @@
[main]
font=monospace:size=15
use-bold=yes
icons-enabled=no
match-mode=fuzzy
anchor=center
lines=8
horizontal-pad=15
vertical-pad=15
[colors]
background=16161eff
text=c0caf5ff
match=2ac3deff
selection=343a55ff
selection-match=2ac3deff
selection-text=c0caf5ff
border=27a1b9ff
[border]
width=2
radius=0
[key-bindings]
cancel=Control+[
execute=Control+m

View file

@ -1,50 +1,49 @@
# vim:ft=kitty
# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox
# This work is licensed under the terms of the MIT license.
# For a copy, see https://opensource.org/licenses/MIT.
## name: Tokyo Night
## license: MIT
## author: Folke Lemaitre
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_night.conf
background #282828
foreground #ebdbb2
cursor #928374
background #1a1b26
foreground #c0caf5
selection_background #283457
selection_foreground #c0caf5
url_color #73daca
cursor #c0caf5
cursor_text_color #1a1b26
selection_foreground #928374
selection_background #3c3836
# Tabs
active_tab_background #7aa2f7
active_tab_foreground #16161e
inactive_tab_background #292e42
inactive_tab_foreground #545c7e
#tab_bar_background #15161e
color0 #282828
color8 #928374
# Windows
active_border_color #7aa2f7
inactive_border_color #292e42
# red
color1 #cc241d
# light red
color9 #fb4934
# normal
color0 #15161e
color1 #f7768e
color2 #9ece6a
color3 #e0af68
color4 #7aa2f7
color5 #bb9af7
color6 #7dcfff
color7 #a9b1d6
# green
color2 #98971a
# light green
color10 #b8bb26
# bright
color8 #414868
color9 #f7768e
color10 #9ece6a
color11 #e0af68
color12 #7aa2f7
color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# yellow
color3 #d79921
# light yellow
color11 #fabd2d
# extended colors
color16 #ff9e64
color17 #db4b4b
# blue
color4 #458588
# light blue
color12 #83a598
# magenta
color5 #b16286
# light magenta
color13 #d3869b
# cyan
color6 #689d6a
# lighy cyan
color14 #8ec07c
# light gray
color7 #a89984
# dark gray
color15 #928374

View file

@ -1,13 +1,14 @@
#!/bin/sh
riverctl spawn kanshi
riverctl spawn "wbg ~/.local/share/wallpapers/04.png"
riverctl spawn "wbg ~/.local/share/wallpapers/01.jpg"
riverctl spawn "waybar"
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl map normal Super+Shift Return spawn kitty
riverctl map normal Super P spawn fuzzel
riverctl map normal Super P spawn "rofi -show drun"
riverctl map normal Super Q close
riverctl map normal Super+Shift E exit
riverctl map normal Super+Shift C spawn "~/.config/river/init"
@ -80,13 +81,13 @@ done
riverctl rule-add ssd
riverctl background-color 0x00000000
riverctl border-color-focused 0x27a1b9ff
riverctl border-color-focused 0x8ec07cff
riverctl border-color-unfocused 0x00000000
riverctl keyboard-layout "us"
riverctl set-repeat 50 300
riverctl xcursor-theme "Simp1e-Tokyo-Night"
riverctl xcursor-theme "Simp1e-Gruvbox-Dark"
riverctl default-layout rivertile
rivertile -view-padding 10 -outer-padding 10 &
rivertile -view-padding 4 -outer-padding 4 &

View file

@ -0,0 +1,22 @@
@theme "~/.config/rofi/gruvbox-material.rasi"
configuration {
font: "Monospace 10";
drun {
display-name: "";
}
run {
display-name: "";
}
window {
display-name: "";
}
timeout {
delay: 10;
action: "kb-cancel";
}
}

View file

@ -0,0 +1,108 @@
/**
* Gruvbox Material Rofi theme
* Color palette copied from https://github.com/sainnhe/gruvbox-material
* https://github.com/hiimsergey/rofi-gruvbox-material
*/
* {
// Taken from "Hard" variant
background: #282828; // bg_statusline1
element: #32302f; // bg_statusline2
selection: #a89984; // grey2
text: #eee0b7; // bg4 (light mode)
red: #ea6962; // red
yellow: #d8a657; // yellow
reddark: #c14a4a; // red (light mode)
yellowdark: #b47109; // yellow (light mode)
background-color: transparent;
}
window {
height: 600;
width: 600;
border-radius: 10;
}
mainbox {
spacing: 0;
children: [inputbar, message, listview];
}
inputbar {
color: @text;
padding: 14;
background-color: @background;
}
message {
padding: 10;
background-color: @selection;
}
listview {
padding: 8;
border-radius: 0 0 10 10;
border: 2 2 2 2;
border-color: @background;
background-color: @background;
dynamic: false;
}
textbox {
text-color: @text;
}
error-message {
border: 20 20 20 20;
}
entry, prompt, case-indicator {
text-color: inherit;
}
prompt {
margin: 0 10 0 0;
}
element {
padding: 5;
vertical-align: 0.5;
border-radius: 10;
text-color: @text;
background-color: @element;
}
element.selected.normal {
background-color: @selection;
}
element.alternate.normal {
background-color: inherit;
}
element.normal.active, element.alternate.active {
background-color: @yellow;
}
element.selected.active {
background-color: @yellowdark;
}
element.normal.urgent, element.alternate.urgent {
background-color: @red;
}
element.selected.urgent {
background-color: @reddark;
}
element-text, element-icon {
size: 40;
margin: 0 10 0 0;
vertical-align: 0.5;
background-color: inherit;
text-color: @text;
}

View file

@ -0,0 +1,33 @@
{
"position": "top",
"height": 0,
"spacing": 16,
"modules-left": ["mpris"],
"modules-center": ["river/tags"],
"modules-right": ["wireplumber", "clock"],
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"interval": 1,
"title-len": 30,
"album-len": 30,
"player-icons": {
"default": "▶",
"mpv": "🎵",
},
"status-icons": {
"paused": "",
"paused": "⏸",
},
},
"clock": {
"format": " {:%H:%M}",
"tooltip-format": "{:%A, %B %d, %Y}",
},
"wireplumber": {
"format": "{icon} {volume}%",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""],
},
}

View file

@ -0,0 +1,36 @@
* {
all: unset;
font-size: 18px;
color: #ebdbb2;
}
window#waybar {
background: #282828;
}
tooltip {
background: #3c3836;
}
.modules-left,
.modules-right {
background: #3c3836;
padding: 0px 12px;
}
.modules-center {
background: #3c3836;
}
#tags button {
padding: 8px 16px;
transition: 0.2s;
}
#tags button:hover {
padding: 8px 28px;
}
#tags button.focused {
background: #504945;
}

View file

@ -1,19 +1,19 @@
{pkgs, ...}: {
alqueva.fonts = {
names = {
sansSerif = ["Source Sans Pro"];
monospace = ["Commit Mono"];
serif = ["Source Serif Pro"];
sansSerif = ["Inter"];
monospace = ["Maple Mono"];
serif = ["ETBembo"];
emoji = ["OpenMoji Color"];
};
packages = {
sansSerif = [pkgs.source-sans-pro];
monospace = [pkgs.commit-mono];
serif = [pkgs.source-serif-pro];
sansSerif = [pkgs.inter];
monospace = [pkgs.maple-mono];
serif = [pkgs.source-serif-pro pkgs.etBook];
emoji = [pkgs.openmoji-color];
extra = [
pkgs.source-han-sans
(pkgs.nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
pkgs.nerd-fonts.symbols-only
];
};
enable = true;

View file

@ -2,7 +2,16 @@
pkgs,
lib,
...
}: {
}: let
themes = {
gtk-theme = pkgs.gruvbox-material-gtk-theme;
kvantum-theme = pkgs.gruvbox-kvantum.override {
variant = "Gruvbox-Dark-Green";
};
icon-theme = pkgs.gruvbox-plus-icons;
cursor-theme = pkgs.simp1e-cursors;
};
in {
programs.dconf = {
profiles.user.databases = [
{
@ -10,9 +19,9 @@
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
cursor-size = lib.gvariant.mkUint32 24;
cursor-theme = "Simp1e-Tokyo-Night";
icon-theme = "Tela-circle-purple-dark";
gtk-theme = "Tokyonight-Dark";
cursor-theme = "Simp1e-Gruvbox-Dark";
icon-theme = "Gruvbox-Plus-Dark";
gtk-theme = "Gruvbox-Material-Dark";
};
};
}
@ -22,20 +31,14 @@
qt = {
enable = true;
platformTheme = "qt5ct";
style = "kvantum";
};
environment.systemPackages = builtins.attrValues {
gtk-theme = pkgs.tokyonight-gtk-theme;
icon-theme = pkgs.tela-circle-icon-theme.override {
colorVariants = ["purple"];
circularFolder = true;
};
cursor-theme = pkgs.simp1e-cursors;
};
environment.systemPackages = builtins.attrValues themes;
systemd.user.tmpfiles.rules = [
"L+ %h/.config/gtk-4.0/gtk.css - - - - ${pkgs.tokyonight-gtk-theme}/share/themes/Tokyonight-Dark/gtk-4.0/gtk.css"
"L+ %h/.config/gtk-4.0/gtk-dark.css - - - - ${pkgs.tokyonight-gtk-theme}/share/themes/Tokyonight-Dark/gtk-4.0/gtk-dark.css"
"L+ %h/.config/gtk-4.0/gtk.css - - - - ${themes.gtk-theme}/share/themes/Gruvbox-Material-Dark/gtk-4.0/gtk.css"
"L+ %h/.config/gtk-4.0/assets - - - - ${themes.gtk-theme}/share/themes/Gruvbox-Material-Dark/gtk-4.0/assets"
"L+ %h/.config/Kvantum/Gruvbox-Dark-Green - - - - ${themes.kvantum-theme}/share/Kvantum/Gruvbox-Dark-Green/"
];
}

View file

@ -7,10 +7,11 @@
tmpfiles = {
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
".config/kanshi/" = ./configs/kanshi;
".config/fuzzel/" = ./configs/fuzzel;
".config/rofi/" = ./configs/rofi;
".config/river/" = ./configs/river;
".config/kitty/" = ./configs/kitty;
".local/share/wallpapers" = "${inputs.wallpkgs.packages.${pkgs.system}.tokyo_night}/share/wallpapers/tokyo_night";
".config/waybar/" = ./configs/waybar;
".local/share/wallpapers" = "${inputs.wallpkgs.packages.${pkgs.system}.gruvbox}/share/wallpapers/gruvbox";
};
packages = builtins.attrValues {
inherit
@ -24,6 +25,8 @@
nicotine-plus
nautilus
librewolf
playerctl
geary
;
};
groups = [