Skip to content

Commit

Permalink
feat: rice
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Nov 18, 2024
1 parent 8920f50 commit 6dcb9d8
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 108 deletions.
6 changes: 0 additions & 6 deletions hosts/pandora/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
(modulesPath + "/installer/scan/not-detected.nix")
];

homix.".config/kanshi/config".text = ''
profile {
output eDP-1 enable scale 1.5
}
'';

hardware.asahi = {
enable = true;
extractPeripheralFirmware = true;
Expand Down
2 changes: 1 addition & 1 deletion system/wayland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
lidSwitch = "suspend";
lidSwitchExternalPower = "hibernate";
extraConfig = ''
HandlePowerKey=suspend
HandlePowerKey=poweroff
HibernateDelaySec=600
SuspendState=mem
'';
Expand Down
3 changes: 3 additions & 0 deletions theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
base0B = "3e8fb0";
base08 = "eb6f92";
base0F = "56526e";

accent = "ea9a97";
wallpaper = ./wall.jpg;
}
Binary file added theme/wall.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions user/anyrun/config.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Config(
// x: Fraction(0.5),
y: Fraction(0.2),
hide_icons: true,
ignore_exclusive_zones: false,
layer: Overlay,
hide_plugin_info: true,
close_on_click: true,
show_results_immediately: true,
max_entries: None,

plugins: [
"libapplications.so",
"libsymbols.so",
"libshell.so",
"libstdin.so",
"librink.so"
],
)
23 changes: 23 additions & 0 deletions user/anyrun/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
pkgs,
theme,
...
}: let
anyrun-configs = pkgs.symlinkJoin {
name = "anyrun-configs";
paths = [
(pkgs.writeTextDir "/etc/anyrun/style.css" (import ./style.nix theme))
(pkgs.writeTextDir "/etc/anyrun/config.ron" (builtins.readFile ./config.ron))
];
};
in
pkgs.symlinkJoin {
name = "anyrun-wrapped";
paths = [
pkgs.anyrun
];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/anyrun --add-flags "--config-dir=${anyrun-configs}/etc/anyrun"
'';
}
79 changes: 79 additions & 0 deletions user/anyrun/style.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
theme: let
inherit (theme) accent;
in ''
window {
background: transparent; /* rgba(0, 0, 0, 0.8);*/
}
#match,
#entry,
#plugin,
#main {
background: transparent;
}
#match.activatable {
padding: 12px 14px;
border-radius: 12px;
color: white;
margin-top: 4px;
border: 2px solid transparent;
transition: all 0.3s ease;
}
#match.activatable:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: 2px solid rgba(255, 255, 255, 0.1);
}
#match.activatable #match-title {
font-size: 1.2rem;
}
#match.activatable:hover {
border: 2px solid rgba(255, 255, 255, 0.4);
}
#match-title, #match-desc {
color: inherit;
}
#match.activatable:hover, #match.activatable:selected {
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
#match.activatable:selected + #match.activatable, #match.activatable:hover + #match.activatable {
border-top: 2px solid transparent;
}
#match.activatable:selected, #match.activatable:hover:selected {
background: rgba(255,255,255,0.1);
border: 2px solid #${accent};
border-top: 2px solid #${accent};
}
#match, #plugin {
box-shadow: none;
}
#entry {
color: white;
box-shadow: none;
border-radius: 12px;
border: 2px solid #${accent};
}
box#main {
background: rgba(36, 39, 58, 0.7);
border-radius: 16px;
padding: 8px;
box-shadow: 0px 2px 33px -5px rgba(0, 0, 0, 0.5);
}
row:first-child {
margin-top: 6px;
}
''
9 changes: 8 additions & 1 deletion user/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ theme: rec
zsh = callPackage ./zsh {};
foot = callPackage ./foot {inherit theme;};
tofi = callPackage ./tofi {inherit theme;};
anyrun = callPackage ./anyrun {inherit theme;};
waybar = callPackage ./waybar {inherit pkgs;};
mako = callPackage ./mako {inherit theme;};
}
Expand All @@ -16,7 +17,13 @@ theme: rec
shell = pkgs:
pkgs.mkShell {
name = "sioodmy-devshell";
buildInputs = builtins.attrValues (packages pkgs);
buildInputs = builtins.attrValues {
inherit
(packages pkgs)
nvim
zsh
;
};
};
module = {pkgs, ...}: {
config = {
Expand Down
2 changes: 1 addition & 1 deletion user/foot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
title = "foot";
locked-title = "no";

font = "monospace:size=13";
font = "monospace:size=11";
line-height = 20;
letter-spacing = 0;
horizontal-letter-offset = 0;
Expand Down
116 changes: 38 additions & 78 deletions user/waybar/style.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,46 @@ in
window#waybar {
background-color: #181825;
border-radius: 20px;
margin: 32px 16px;
color: #cdd6f4;
box-shadow: 2px 3px 2px 2px #151515;
font-size: 16px;
box-shadow: 3px 2px 3px 2px #151515;
font-size: 13px;
/* transition-property: background-color; */
transition-property: background-color;
transition-duration: 0.5s;
}
window#waybar>box {
padding: 1px 5px;
}
window#waybar.hidden {
opacity: 0.2;
}
#pulseaudio {
color: #a6d189;
padding: 5px 0px 5px 0px;
}
#pulseaudio.source-muted,
#pulseaudio.muted {
padding: 16px 0px 16px 0px;
font-size: 15px;
.module{
border-radius: 10px;
background-color: #1e1e2e;
padding: 0px 8px;
}
#custom-vpn,
#network {
color: #ca9ee6;
#custom-search {
background-image: url("${snowflake}");
background-size: 65%;
background-position: center;
background-repeat: no-repeat;
padding-left: 20px;
}
#cpu {
color: #ef9f76;
#custom-swallow {
color: #94e2d5;
}
#clock {
font-weight: 700;
font-size: 20px;
font-family: "Iosevka Term";
padding: 5px 0px 5px 0px;
#custom-crypto {
color: #89b4fa;
}
#workspaces button {
background-color: transparent;
/* Use box-shadow instead of border so the text isn't offset */
color: #89b4fa;
padding-left: 6px;
box-shadow: inset 0 -3px transparent;
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
#custom-lock {
color: #89b4fa;
}
#workspaces button:hover {
Expand All @@ -69,11 +61,14 @@ in
text-shadow: inherit;
}
#custom-power {
color: #f38ba8;
padding: 14px 0px 14px 0px;
margin-bottom: 20px;
font-size: 24px;
#workspaces button {
background-color: transparent;
/* Use box-shadow instead of border so the text isn't offset */
color: #89b4fa;
padding-left: 6px;
margin: 0px 7px;
box-shadow: inset 0 -3px transparent;
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
}
#workspaces button.active {
Expand All @@ -83,61 +78,26 @@ in
#workspaces button.urgent {
background-color: #eba0ac;
}
#clock,
#network,
#custom-swallow,
#cpu,
#battery,
#backlight,
#memory,
#workspaces,
#custom-todo,
#custom-lock,
#custom-vpn,
#custom-weather,
#custom-power,
#custom-crypto,
#volume,
#pulseaudio {
border-radius: 15px;
background-color: #1e1e2e;
padding: 14px 0px 14px 0px;
margin: 0px 7px 0px 7px;
#network {
color: #ca9ee6;
}
#custom-swallow {
color: #94e2d5;
#cpu {
color: #ef9f76;
}
#workspaces {
#clock {
font-weight: 700;
font-size: 15px;
font-family: "Iosevka Term";
}
#custom-crypto {
color: #89b4fa;
}
#custom-lock {
color: #89b4fa;
}
#custom-todo {
color: #bac2de;
padding-left: 2px;
}
#custom-search {
background-image: url("${snowflake}");
background-size: 65%;
margin-top: 35px;
padding-top: 15px;
margin: 5px;
background-position: center;
background-repeat: no-repeat;
}
#backlight {
color: #f9e2af;
}
#pulseaudio,
#battery {
color: #a6e3a1;
}
Expand Down
Loading

0 comments on commit 6dcb9d8

Please sign in to comment.