Compare commits
4 commits
a87a497a19
...
cd0afe0797
Author | SHA1 | Date | |
---|---|---|---|
cd0afe0797 | |||
5efa9a24bb | |||
dd04c9bdb5 | |||
bf0cd92f70 |
8 changed files with 49 additions and 22 deletions
|
@ -1,8 +1,12 @@
|
|||
let
|
||||
theme = import ./everforest;
|
||||
in
|
||||
{
|
||||
colors = {
|
||||
undefined = "#ff00ff";
|
||||
fg1 = "#ffffff";
|
||||
};
|
||||
in
|
||||
{
|
||||
css = lib: lib.strings.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs (k: v: " --${k}: ${v};") theme.colors));
|
||||
} // theme // theme.colors
|
||||
}
|
||||
// colors // theme.colors # Root colors
|
||||
// theme // { colors = theme.colors // colors; } # Dedicated color set
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
theme = "everforest";
|
||||
|
||||
kitty-theme = "Everforest Dark Hard";
|
||||
gtkTheme = pkgs: {
|
||||
package = pkgs.callPackage ./gtk.nix {};
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
theme = "nord";
|
||||
|
||||
kitty-theme = "Nord";
|
||||
wallpaper = "roxynord.png";
|
||||
gtkTheme = pkgs: {
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
;;nim ; python + lisp at the speed of c
|
||||
nix ; I hereby declare "nix geht mehr!"
|
||||
;;ocaml ; an objective camel
|
||||
org ; organize your plain life in plain text
|
||||
(org +roam2) ; organize your plain life in plain text
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
;;purescript ; javascript, but functional
|
||||
|
@ -207,3 +207,6 @@
|
|||
;; LaTeX editing
|
||||
(add-hook 'org-mode-hook 'org-fragtog-mode) ;; automatically expand/preview LaTeX
|
||||
(add-hook 'org-mode-hook 'org-latex-preview) ;; automatically preview LaTeX on open
|
||||
|
||||
;; Display .rasi (rofi theme files) as CSS
|
||||
(add-to-list 'auto-mode-alist '("\\.rasi\\'" . css-mode))
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
xsession.windowManager.i3.config = {
|
||||
startup = [
|
||||
{
|
||||
command = ''i3-msg workspace 1 && (firefox &) && i3-msg "workspace 2; append_layout ${./tree.json}; open" && (for i in {1..4}; do i3-msg move left; done) && (discord &) && firefox --new-window https://youtube.com && i3-msg workspace 1'';
|
||||
command = let layout = pkgs.substituteAll {
|
||||
src = ./layout.sh;
|
||||
tree = ./tree.json;
|
||||
isExecutable = true;
|
||||
}; in "${layout}";
|
||||
always = true;
|
||||
notification = false;
|
||||
}
|
||||
|
|
10
hosts/desktop/i3/layout.sh
Normal file
10
hosts/desktop/i3/layout.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
i3-msg workspace 1
|
||||
firefox &
|
||||
|
||||
i3-msg "workspace 2; append_layout @tree@; open"
|
||||
for i in {1..4}; do
|
||||
i3-msg move left
|
||||
done
|
||||
discord
|
||||
firefox --new-window https://youtube.com
|
||||
i3-msg workspace 1
|
|
@ -1,13 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
colors = import ../colors;
|
||||
theme = colors.theme;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
(pkgs.callPackage ./power.nix { })
|
||||
wmctrl # TODO: add as dependency of rofi-power
|
||||
];
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = "theme";
|
||||
inherit theme;
|
||||
};
|
||||
home.file.".config/rofi/theme.rasi".text = import ./theme.nix;
|
||||
home.file.".config/rofi/${theme}.rasi".source = pkgs.substituteAll ({
|
||||
src = ./theme.rasi;
|
||||
} // colors.colors);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# Modified from https://github.com/undiabler/nord-rofi-theme
|
||||
let colors = import ../colors; in
|
||||
''
|
||||
/* Modified from https://github.com/undiabler/nord-rofi-theme */
|
||||
configuration {
|
||||
font: "Noto Sans Mono 12";
|
||||
width: 30;
|
||||
|
@ -18,7 +16,7 @@ configuration {
|
|||
|
||||
* {
|
||||
background-color: transparent;
|
||||
highlight: underline bold ${colors.fg1};
|
||||
highlight: underline bold @fg1@;
|
||||
}
|
||||
|
||||
window {
|
||||
|
@ -40,16 +38,16 @@ mainbox {
|
|||
}
|
||||
|
||||
message {
|
||||
color: ${colors.bg0};
|
||||
color: @bg0@;
|
||||
padding: 5;
|
||||
border-color: ${colors.fg0};
|
||||
border-color: @fg0@;
|
||||
border: 0px 2px 2px 2px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
color: ${colors.fg0};
|
||||
color: @fg0@;
|
||||
padding: 11px;
|
||||
background-color: ${colors.bg1};
|
||||
background-color: @bg1@;
|
||||
}
|
||||
|
||||
entry, prompt, case-indicator {
|
||||
|
@ -64,23 +62,22 @@ prompt {
|
|||
listview {
|
||||
padding: 8px;
|
||||
border: 0;
|
||||
background-color: ${colors.bg0}e5;
|
||||
background-color: @bg0@e5;
|
||||
dynamic: false;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 3px;
|
||||
border-radius: 4px;
|
||||
text-color: ${colors.fg0};
|
||||
text-color: @fg0@;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: ${colors.primary};
|
||||
text-color: ${colors.bg0};
|
||||
background-color: @primary@;
|
||||
text-color: @bg0@;
|
||||
}
|
||||
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue