feat: declarative vesktop theming
This commit is contained in:
parent
29e3219338
commit
50ab2b94b2
6 changed files with 10 additions and 137 deletions
|
@ -1,22 +0,0 @@
|
|||
@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";
|
||||
}
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
/**
|
||||
* 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;
|
||||
}
|
3
hosts/python/configs/vesktop/quickCss.css
Normal file
3
hosts/python/configs/vesktop/quickCss.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
:root {
|
||||
--font: "Monospace";
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
"format": "{player_icon} {dynamic}",
|
||||
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
||||
"interval": 1,
|
||||
"dynamic-length": 52,
|
||||
"dynamic-len": 52,
|
||||
"player-icons": {
|
||||
"default": "▶",
|
||||
"mpv": "🎵",
|
||||
|
|
|
@ -10,14 +10,12 @@
|
|||
sizeVariants = ["compact"];
|
||||
themeVariants = ["all"];
|
||||
};
|
||||
kvantum-theme = pkgs.gruvbox-kvantum.override {
|
||||
variant = "Gruvbox-Dark-Green";
|
||||
};
|
||||
icon-theme = pkgs.colloid-icon-theme;
|
||||
cursor-theme = pkgs.simp1e-cursors;
|
||||
};
|
||||
in {
|
||||
programs.dconf = {
|
||||
enable = true;
|
||||
profiles.user.databases = [
|
||||
{
|
||||
settings = {
|
||||
|
@ -31,7 +29,6 @@ in {
|
|||
};
|
||||
}
|
||||
];
|
||||
enable = true;
|
||||
};
|
||||
|
||||
qt = {
|
||||
|
@ -45,6 +42,5 @@ in {
|
|||
"L+ %h/.config/gtk-4.0/gtk.css - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/gtk.css"
|
||||
"L+ %h/.config/gtk-4.0/gtk-dark.css - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/gtk-dark.css"
|
||||
"L+ %h/.config/gtk-4.0/assets - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/assets"
|
||||
"L+ %h/.config/Kvantum/Gruvbox-Dark-Green - - - - ${themes.kvantum-theme}/share/Kvantum/Gruvbox-Dark-Green/"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -9,8 +9,12 @@
|
|||
tmpfiles = {
|
||||
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
|
||||
".config/qutebrowser/oxocarbon.py" = ./configs/qutebrowser/oxocarbon.py;
|
||||
".config/vesktop/themes/system24.theme.css" = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/refact0r/system24/refs/heads/main/theme/system24.theme.css";
|
||||
hash = "sha256-WJYNWeo1DdgOh7cFne6QSEHQagqapFznqWfeoCsqM+8=";
|
||||
};
|
||||
".config/vesktop/settings/quickCss.css" = ./configs/vesktop/quickCss.css;
|
||||
".config/kanshi/" = ./configs/kanshi;
|
||||
".config/rofi/" = ./configs/rofi;
|
||||
".config/river/" = ./configs/river;
|
||||
".config/kitty/" = ./configs/kitty;
|
||||
".config/waybar/" = ./configs/waybar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue