who knows

This commit is contained in:
atagen 2023-05-20 22:28:48 +10:00
parent bb2e813df8
commit aae14e214e
11 changed files with 512 additions and 218 deletions

View file

@ -1,31 +1,31 @@
$black: #2f343f;
$black_a: #1e2233;
$black: #BLACK;
$black_a: #BLCKA;
$red: #ed244e;
$red_a: #da4453;
$red: #RED;
$red_a: #RDA;
$green: #27ae60;
$green_a: #71f79f;
$green: #GREEN;
$green_a: #GRNA;
$yellow: #f67400;
$yellow_a: #fdbc4b;
$yellow: #YELLOW;
$yellow_a: #YLWA;
$blue: #2980b9;
$blue_a: #1d99f3;
$blue: #BLUE;
$blue_a: #BLUA;
$magenta: #c50ed2;
$magenta_a: #9b59b6;
$magenta: #MAGENTA;
$magenta_a: #MGNA;
$cyan: #3daee9;
$cyan_a: #5294e2;
$cyan: #CYAN;
$cyan_a: #CYNA;
$white: #a1a9b1;
$white_a: #656a73;
$white: #WHITE;
$white_a: #WHTA;
$fg: #d3dae3;
$bg: #060604;
$fg: #FG;
$bg: #BG;
$border: $red;
$border: $black;
$shadow: $black;
$base: $bg;
$bg1: $black;

View file

@ -2,15 +2,15 @@ exec-once = eww open bar
exec-once = swayidle -w timeout 300 'waylock'
exec-once = swayidle -w timeout 600 'systemctl suspend' after-resume 'eww open bar'
exec-once = ckb-next -c -b
exec-once = swaybg -i $HOME/Downloads/fantastyland-dark.png -m fill
exec-once = swaybg -i #BGIMAGE -m fill
exec-once = xrdb -l ~/.Xresources
exec-once = swayosd --max-volume 100
exec-once = keepassxc
exec-once = swaync
exec = eww reload
exec = gsettings set org.gnome.desktop.interface gtk-theme 'Sweet-Dark'
exec = gsettings set org.gnome.desktop.interface font-name 'Montreux Classic'
exec = gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
exec = gsettings set org.gnome.desktop.interface gtk-theme '#GTKTHEME'
exec = gsettings set org.gnome.desktop.interface font-name '#FONT'
exec = gsettings set org.gnome.desktop.interface icon-theme '#ICONTHEME'
input {
kb_layout=us
@ -26,10 +26,8 @@ general {
gaps_out=25
resize_on_border=true
hover_icon_on_border=true
col.active_border=0xffa1a9b1
col.inactive_border=0xff2f343f
col.group_border=0xffda4453
col.group_border_active=0xffed244e
col.active_border=0xff#ACTIVEBORDER
col.inactive_border=0xff#BORDER
}
dwindle {

View file

@ -2,19 +2,19 @@
* vim: ft=less
*/
@define-color cc-bg #060604;
@define-color cc-bg #PANELBG;
@define-color noti-border-color #2f343f;
@define-color noti-bg #060604;
@define-color noti-bg-hover #1e2233;
@define-color noti-bg-focus #2f343f;
@define-color noti-close-bg #060604;
@define-color noti-close-bg-hover #1e2233;
@define-color noti-border-color #BORDER;
@define-color noti-bg #NOTIBGNORM;
@define-color noti-bg-hover #NOTIBGHOVER;
@define-color noti-bg-focus #NOTIBGFOCUS;
@define-color noti-close-bg #NOTIBGCLOSE;
@define-color noti-close-bg-hover #NOTIBGHOVERCLOSE;
@define-color bg-selected #2f343f;
@define-color bg-selected #BGSELECTED;
* {
font-family: "Montreux Classic", sans-serif;
font-family: "FONT", sans-serif;
}
.notification-row {

View file

@ -1,36 +1,38 @@
{
"label" : "lock",
"action" : "waylock",
"text" : "Lock",
"keybind" : "l"
}
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "suspend",
"action" : "systemctl suspend",
"text" : "Suspend",
"keybind" : "s"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "d"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
[
{
"label" : "lock",
"action" : "waylock",
"text" : "Lock",
"keybind" : "l"
},
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
"text" : "Logout",
"keybind" : "e"
},
{
"label" : "suspend",
"action" : "systemctl suspend",
"text" : "Suspend",
"keybind" : "s"
},
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "d"
},
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
},
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
]

View file

@ -2,11 +2,11 @@
background-image: none;
}
window {
background-color: #181b28;
background-color: #WINBG;
}
button {
color: #FFFFFF;
background-color: #181b28;
color: #BTNCOL;
background-color: #BTNBG;
border-style: solid;
border-width: 2px;
background-repeat: no-repeat;
@ -15,7 +15,7 @@ button {
}
button:focus, button:active, button:hover {
background-color: #27ae60;
background-color: #BTNFOCUSBG;
outline-style: none;
}

View file

@ -4,31 +4,15 @@
lib,
config,
pkgs,
nur,
...
}: let
wlogout_style_base = dots/wlogout/style.css;
wlogout_style = pkgs.runCommandLocal "wlogout_style_base" {wlogpath = lib.strings.escape ["/"] "${pkgs.wlogout}";} ''
cp ${wlogout_style_base} $out
sed -i "s/\/usr\/share\/wlogout/$wlogpath\/share\/wlogout/g" $out
sed -i "s/\/etc\/wlogout/$wlogpath\/etc\/wlogout/g" $out
'';
}:
in {
imports = [
inputs.hyprland.homeManagerModules.default
./programs/eww/default.nix
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.unstable-pkgs
];
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
home.stateVersion = "22.11";
home.packages = with pkgs; [
@ -63,7 +47,7 @@ in {
fuzzel
kdeconnect
syncthing
# syncthing
keepassxc
git-credential-keepassxc
@ -76,6 +60,8 @@ in {
libsForQt5.qtstyleplugin-kvantum
gtk-engine-murrine
material-icons
material-design-icons
];
services.syncthing = {
@ -91,12 +77,63 @@ in {
hidpi = false;
};
recommendedEnvironment = true;
extraConfig = builtins.readFile dots/hyprland/hyprland.conf;
extraConfig = with pkgs.rice; builtins.replaceStrings
["#BGIMAGE"
"#GTKTHEME"
"#FONT"
"#ICONTHEME"
"#ACTIVEBORDER"
"#BORDER"]
["${bg.image}"
gtk.name
fonts.sansSerif.name
icons.name
palette.util.fg
palette.util.bg]
(builtins.readFile dots/hyprland/hyprland.conf);
};
programs.eww-hyprland = {
enable = true;
colors = builtins.readFile dots/eww/colors.scss;
colors = with pkgs.rice.palette;
(builtins.replaceStrings
["BLACK"
"BLCKA"
"RED"
"RDA"
"GREEN"
"GRNA"
"YELLOW"
"YLWA"
"BLUE"
"BLUA"
"MAGENTA"
"MGNA"
"CYAN"
"CYNA"
"WHITE"
"WHTA"
"FG"
"BG" ]
[normal.black
bright.black
normal.red
bright.red
normal.green
bright.green
normal.yellow
bright.yellow
normal.blue
bright.blue
normal.magenta
bright.magenta
normal.cyan
bright.cyan
normal.white
bright.white
util.fg
util.bg] (builtins.readFile dots/eww/colors.scss));
};
systemd.user.startServices = "sd-switch";
@ -113,8 +150,6 @@ in {
};
};
xresources.extraConfig = builtins.readFile ./dots/Xresources;
xdg.enable = true;
xdg.configFile =
builtins.mapAttrs (name: value: {
@ -122,12 +157,26 @@ in {
text = builtins.readFile value;
})
{
"wlogout/layout" = dots/wlogout/layout;
"wlogout/style.css" = wlogout_style;
"swaync/config.json" = dots/swaync/config.json;
"swaync/configSchema.json" = dots/swaync/configSchema.json;
"swaync/style.css" = dots/swaync/style.css;
"fuzzel/fuzzel.ini" = dots/fuzzel/fuzzel.ini;
"swaync/style.css" = with rice.palette; builtins.replaceStrings
["PANELBG"
"BORDER"
"NOTIBGNORM"
"NOTIBGHOVER"
"NOTIBGFOCUS"
"NOTIBGCLOSE"
"NOTIBGHOVERCLOSE"
"BGSELECTED"]
[util.bg
normal.black
util.bg
bright.black
bright.black
normal.black
bright.black
bright.black]
(builtins.readFile dots/swaync/style.css);
};
xdg.systemDirs.data = [
@ -136,19 +185,59 @@ in {
];
home.sessionVariables = {
GTK_THEME = "Sweet-Dark";
GTK_THEME = rice.gtk.name;
};
programs.wlogout = {
enable = true;
layout = builtins.fromJSON (builtins.readFile dots/wlogout/layout);
style = with rice.palette; builtins.replaceStrings
["/usr/share/wlogout"
"/etc/wlogout"
"WINBG"
"BTNCOL"
"BTNBG"
"BTNFOCUSBG"]
["${pkgs.wlogout}/share/wlogout"
"${pkgs.wlogout}/etc/wlogout"
util.bg
util.fg
util.bg_sel
normal.yellow]
(builtins.readFile dots/wlogout/style.css);
};
programs.fuzzel = with pkgs.rice; {
enable = true;
settings = {
main = {
dpi-aware = "no";
font = with fonts.sansSerif; lib.strings.concatStrings [name ":size=" size];
icon-theme = icons.name;
terminal = "kitty";
};
dmenu = {
exit-immediately-if-empty = "yes";
};
border = with borders; {
width = thickness;
radius = rounding;
};
colors = {
background = lib.strings.concatStrings [pkgs.rice.palette.util.bg "FF"];
text = lib.strings.concatStrings [pkgs.rice.palette.util.fg "FF"];
selection = lib.strings.concatStrings [pkgs.rice.palette.util.bg_sel "FF"];
selection-text = lib.strings.concatStrings [pkgs.rice.palette.util.fg_sel "FF"];
selection-match = lib.strings.concatStrings [pkgs.rice.palette.util.cursor_text "FF"];
match = lib.strings.concatStrings [pkgs.rice.palette.util "FF"];
border = lib.strings.concatStrings [pkgs.rice.palette.util.bg_sel "FF"];
};
};
};
gtk = {
enable = true;
theme = {
package = pkgs.sweet;
name = "Sweet-Dark";
};
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
};
theme = rice.gtk;
iconTheme = rice.icons;
};
programs.direnv = {
@ -166,7 +255,7 @@ in {
settings = {
"browser.startup.homepage" = "about:blank";
};
extensions = with config.nur.repos.rycee.firefox-addons; [
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
vimium-c
darkreader
localcdn
@ -181,39 +270,40 @@ in {
enable = true;
# package = inputs.helix.packages.${pkgs.hostPlatform.system}.default;
settings = {
theme = "gruvbox_dark_hard";
theme = "gruvbox_dark";
editor.lsp.display-messages = true;
};
};
programs.kitty = {
programs.kitty = with rice; {
enable = true;
font = {
name = "Ellograph CF";
size = 10;
font = with fonts; {
name = monospace.name;
size = monospace.size;
};
settings = {
foreground = "#d3dae3";
background = "#060604";
cursor = "#d3dae3";
selection_foreground = "#fdbc4b";
selection_background = "#1e2233";
color0 = "#2f343f";
color1 = "#ed244e";
color2 = "#27ae60";
color3 = "#f67400";
color4 = "#2980b9";
color5 = "#c50ed2";
color6 = "#3daee9";
color7 = "#a1a9b1";
color8 = "#1e2233";
color9 = "#da4453";
color10 = "#71f79f";
color11 = "#fdbc4b";
color12 = "#1d99f3";
color13 = "#9b59b6";
color14 = "#5294e2";
color15 = "#656a73";
settings = with palette; {
foreground = util.fg;
background = util.bg;
cursor = util.cursor;
cursor_text = util.cursor_text;
selection_foreground = util.fg_sel;
selection_background = util.bg_sel;
color0 = normal.black;
color1 = normal.red;
color2 = normal.green;
color3 = normal.yellow;
color4 = normal.blue;
color5 = normal.magenta;
color6 = normal.cyan;
color7 = normal.white;
color8 = bright.black;
color9 = bright.red;
color10 = bright.green;
color11 = bright.yellow;
color12 = bright.blue;
color13 = bright.magenta;
color14 = bright.cyan;
color15 = bright.white;
};
};
@ -229,6 +319,14 @@ in {
programs.fzf = {
enable = true;
enableZshIntegration = true;
colors = with rice.palette; {
fg = util.fg;
bg = util.bg;
hl = util.cursor_text;
"fg+" = util.fg_sel;
"bg+" = util.bg_sel;
"hl+" = bright.green;
};
};
programs.zsh = {

View file

@ -13,7 +13,7 @@
* {
all: unset;
font-family: "Montreux Classic", "Jost *", Roboto, sans-serif;
font-family: "Inria Sans", Roboto, sans-serif;
transition: 200ms ease;
}