Move HM modules

This commit is contained in:
Filippo Berto 2023-07-19 10:42:09 +01:00
parent 5db76d0fed
commit 3cf0004b78
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
110 changed files with 403 additions and 564 deletions

View file

@ -8,22 +8,22 @@
packages = builtins.attrValues { inherit (pkgs) nix-prefetch-scripts; };
};
imports = [
../hm_modules/__basic.nix
../modules/hm/__basic.nix
# ../hm_modules/development/cpp.nix
# ../hm_modules/development/data.nix
# ../hm_modules/development/go.nix
# ../hm_modules/development/javascript.nix
# ../hm_modules/development/latex.nix
# ../hm_modules/development/python.nix
# ../hm_modules/development/rust.nix
# ../modules/hm/development/cpp.nix
# ../modules/hm/development/data.nix
# ../modules/hm/development/go.nix
# ../modules/hm/development/javascript.nix
# ../modules/hm/development/latex.nix
# ../modules/hm/development/python.nix
# ../modules/hm/development/rust.nix
# ../hm_modules/fonts.nix
../hm_modules/helix.nix
# ../hm_modules/kitty.nix
# ../hm_modules/lf.nix
# ../hm_modules/megasync.nix
# ../hm_modules/noti.nix
# ../modules/hm/fonts.nix
../modules/hm/helix.nix
# ../modules/hm/kitty.nix
# ../modules/hm/lf.nix
# ../modules/hm/megasync.nix
# ../modules/hm/noti.nix
];
home.stateVersion = "22.05";

View file

@ -1,97 +0,0 @@
# text
# set-face global title rgb:bac5d8,default+b
# set-face global header rgb:e6e6e6,default
# set-face global bold rgb:e6e6e6,default+b
# set-face global italic rgb:d6d6d6,default+i
# set-face global mono rgb:b8b8b8,rgb:1f1f1f
# set-face global block rgb:b8b8b8,rgb:1f1f1f
# set-face global link rgb:e6e6e6,default
# set-face global bullet rgb:e6e6e6,default
# set-face global list rgb:c7c7c7,default
set-face global value rgb:b48ead,default
set-face global type rgb:8fbcbb,default
set-face global identifier rgb:88c0d0,default
set-face global string rgb:a3be8c,default
set-face global error rgb:BF616A,default
set-face global keyword rgb:81a1c1,default
set-face global operator rgb:c7c7c7,default
set-face global attribute rgb:5e81ac,default
set-face global comment rgb:4c566a,default
set-face global meta rgb:ebcb8b,default
set-face global Default rgb:eceff4,rgb:2e3440
# default colors
set-face global PrimarySelection rgb:2e3440,rgb:e5e9f0
# main selection face for every selected character except the cursor
set-face global SecondarySelection rgb:eceff4,rgb:434c5e
# secondary selection face for every selected character except the cursor
set-face global PrimaryCursor rgb:2e3440,rgb:ebcb8b
# cursor of the primary selection
set-face global SecondaryCursor rgb:2e3440,rgb:d8dee9
# cursor of the secondary selection
# set-face global PrimaryCursorEol
# cursor of the primary selection when it lies on and end of line character
# set-face global SecondaryCursorEol
# cursor of the secondary selection when it lies on and end of line character
set-face global MenuForeground rgb:d8dee9,rgb:4c566a
# face for the selected element in menus
set-face global MenuBackground default,rgb:3b4252
# face for the not selected elements in menus
set-face global MenuInfo default,rgb:3b4252
# face for additional information for elements in menus
set-face global Information rgb:2e3440,rgb:88c0d0
# face for the informations windows and information messages
# set-face global Error
# face of error messages
set-face global StatusLine rgb:e5e9f0,rgb:3b4252
# face used for the status line
set-face global StatusLineMode rgb:5e81ac,rgb:3b4252
# face used for the current mode except the normal mode
set-face global StatusLineInfo rgb:5e81ac,rgb:3b4252
# face used for special information
set-face global StatusLineValue rgb:5e81ac,rgb:3b4252
# face used for special values (numeric prefixes, registers, etc.)
set-face global StatusCursor rgb:2e3440,rgb:ebcb8b
# face used for the status line cursor
set-face global Prompt rgb:88c0d0,rgb:3b4252
# face used prompt displayed on the status line
set-face global BufferPadding default,default
# face applied on the ~ characters that follow the last line of a buffer
# set-face global Builtin highlighters faces
# The following faces are used by builtin highlighters if enabled.
# set-face global LineNumbers
# face used by the number-lines highlighter
# set-face global LineNumberCursor
# face used to highlight the line number of the main selection
# set-face global LineNumbersWrapped
# face used to highlight the line number of wrapped lines
# set-face global MatchingChar
# face used by the show-matching highlighter
# set-face global Whitespace
# face used by the show-whitespaces highlighter

View file

@ -1,89 +0,0 @@
* {
nord0: #2e3440;
nord1: #3b4252;
nord2: #434c5e;
nord3: #4c566a;
nord4: #d8dee9;
nord5: #e5e9f0;
nord6: #eceff4;
nord7: #8fbcbb;
nord8: #88c0d0;
nord9: #81a1c1;
nord10: #5e81ac;
nord11: #bf616a;
nord12: #d08770;
nord13: #ebcb8b;
nord14: #a3be8c;
nord15: #b48ead;
background-color: @nord1;
border: 0px;
margin: 0px;
padding: 0px;
spacing: 0px;
text-color: @nord4;
}
#inputbar {
text-color: @nord3;
padding: 6px;
margin: 0px 0px 2px;
children: [ entry ];
}
#entry {
background-color: @nord3;
text-color: @nord4;
padding: 5px;
}
#message {
border: 0px 0px 1px;
border-color: @nord3;
padding: 0px 0px 6px 7px;
}
#listview {
lines: 10;
padding: 2px 0px 0px;
scrollbar: true;
}
#element {
padding: 0px 0px 0px 7px;
margin: 0px 0px 5px 0px;
text-color: @nord4;
}
#element.normal.normal {
text-color: @nord4;
}
#element.normal.urgent {
text-color: @nord11;
}
#element.normal.active {
text-color: @nord10;
}
#element.alternate.normal {
text-color: @nord4;
}
#element.alternate.urgent {
text-color: @nord11;
}
#element.alternate.active {
text-color: @nord10;
}
#element.selected.normal {
background-color: @nord8;
text-color: @nord1;
}
#element.selected.urgent {
background-color: @nord11;
text-color: @nord4;
}
#element.selected.active {
background-color: @nord10;
text-color: @nord4;
}
#scrollbar {
handle-color: @nord3;
handle-width: 0.50em;
}
#button.selected {
background-color: @nord8;
text-color: @nord4;
}

View file

@ -1,101 +0,0 @@
/*
* ROFI One Dark
*
* Based on OneDark.vim (https://github.com/joshdick/onedark.vim)
*
* Author: Benjamin Stauss
* User: me-benni
*
*/
* {
black: #000000;
red: #eb6e67;
green: #95ee8f;
yellow: #f8c456;
blue: #6eaafb;
mangenta: #d886f3;
cyan: #6cdcf7;
purple: #C678DF;
emphasis: #50536b;
text: #dfdfdf;
text-alt: #b2b2b2;
fg: #abb2bf;
bg: #282c34;
spacing: 0;
background-color: transparent;
font: "Knack Nerd Font 14";
text-color: @text;
}
window {
transparency: "real";
fullscreen: true;
background-color: #282c34dd;
}
mainbox {
padding: 30% 30%;
}
inputbar {
margin: 0px 0px 20px 0px;
children: [prompt, textbox-prompt-colon, entry, case-indicator];
}
prompt {
text-color: @blue;
}
textbox-prompt-colon {
expand: false;
str: ":";
text-color: @text-alt;
}
entry {
margin: 0px 10px;
}
listview {
spacing: 5px;
dynamic: true;
scrollbar: false;
}
element {
padding: 5px;
text-color: @text-alt;
highlight: bold #95ee8f; /* green */
border-radius: 3px;
}
element selected {
background-color: @emphasis;
text-color: @text;
}
element urgent, element selected urgent {
text-color: @red;
}
element active, element selected active {
text-color: @purple;
}
message {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
border: 1px;
border-color: @cyan;
}
button selected {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
}

View file

@ -11,16 +11,16 @@
};
};
imports = [
../hm_modules/__basic.nix
../modules/hm/__basic.nix
../hm_modules/cava.nix
../hm_modules/dunst.nix
../hm_modules/helix.nix
../hm_modules/kitty.nix
../hm_modules/lf.nix
../hm_modules/spotifyd.nix
../hm_modules/syncthing.nix
# ../hm_modules/xidlehook.nix
../modules/hm/cava.nix
../modules/hm/dunst.nix
../modules/hm/helix.nix
../modules/hm/kitty.nix
../modules/hm/lf.nix
../modules/hm/spotifyd.nix
../modules/hm/syncthing.nix
# ../modules/hm/xidlehook.nix
];
home.stateVersion = "22.11";

View file

@ -1,25 +0,0 @@
{ pkgs, ... }: {
home.packages = builtins.attrValues {
inherit (pkgs)
rofimoji
rofi-bluetooth
rofi-power-menu
rofi-vpn
xdotool
;
};
programs.rofi = {
enable = true;
location = "center";
font = "${pkgs.rice.font.monospace.name} ${toString pkgs.rice.font.monospace.size}";
plugins = [ pkgs.rofi-calc ];
extraConfig = { modi = "drun,run,ssh,window,calc"; };
terminal = "alacritty";
theme = "onedark";
};
xdg.configFile."rofi/nord.rasi".source = ../configs/rofi/nord.rasi;
xdg.configFile."rofi/onedark.rasi".source = ../configs/rofi/onedark.rasi;
}

View file

@ -1,66 +0,0 @@
<<<<<<< HEAD
{ pkgs, ... }:
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.colorPalette;
in
{
programs.zellij.enable = true;
home.shellAliases."ze" = "zellij";
xdg.configFile."zellij/config.kdl".text = ''
theme "nix-rice"
pane_frames false
'';
xdg.configFile."zellij/themes/nix-rice.kdl".text = ''
themes {
nix-rice {
bg "${strPalette.primary.foreground}"
fg "${strPalette.primary.background}"
red "${strPalette.normal.red}"
black "${strPalette.normal.black}"
green "${strPalette.normal.green}"
yellow "${strPalette.normal.yellow}"
blue "${strPalette.normal.blue}"
magenta "${strPalette.normal.magenta}"
cyan "${strPalette.normal.cyan}"
white "${strPalette.normal.white}"
orange "${strPalette.bright.red}"
}
}
'';
}
||||||| parent of 6c85a84 (Zellij)
=======
{ pkgs, ... }:
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.colorPalette;
in
{
programs.zellij.enable = true;
xdg.configFile."zellij/config.kdl".text = ''
theme "nix-rice"
pane_frames false
'';
xdg.configFile."zellij/themes/nix-rice.kdl".text = ''
themes {
nix-rice {
bg "${strPalette.primary.foreground}"
fg "${strPalette.primary.background}"
red "${strPalette.normal.red}"
black "${strPalette.normal.black}"
green "${strPalette.normal.green}"
yellow "${strPalette.normal.yellow}"
blue "${strPalette.normal.blue}"
magenta "${strPalette.normal.magenta}"
cyan "${strPalette.normal.cyan}"
white "${strPalette.normal.white}"
orange "${strPalette.bright.red}"
}
}
'';
}
>>>>>>> 6c85a84 (Zellij)

View file

@ -7,25 +7,25 @@
};
};
imports = [
../hm_modules/__basic.nix
../modules/hm/__basic.nix
# ../hm_modules/development/cpp.nix
# ../hm_modules/development/data.nix
# ../hm_modules/development/go.nix
# ../hm_modules/development/javascript.nix
# ../hm_modules/development/latex.nix
# ../hm_modules/development/nix.nix
# ../hm_modules/development/python.nix
# ../hm_modules/development/rust.nix
# ../modules/hm/development/cpp.nix
# ../modules/hm/development/data.nix
# ../modules/hm/development/go.nix
# ../modules/hm/development/javascript.nix
# ../modules/hm/development/latex.nix
# ../modules/hm/development/nix.nix
# ../modules/hm/development/python.nix
# ../modules/hm/development/rust.nix
../hm_modules/helix.nix
../hm_modules/kakoune.nix
../hm_modules/kitty.nix
../hm_modules/lf.nix
../hm_modules/megasync.nix
../hm_modules/syncthing.nix
../modules/hm/helix.nix
../modules/hm/kakoune.nix
../modules/hm/kitty.nix
../modules/hm/lf.nix
../modules/hm/megasync.nix
../modules/hm/syncthing.nix
../hm_modules/shell_aliases.nix
../modules/hm/shell_aliases.nix
];
home.stateVersion = "22.11";

View file

@ -7,16 +7,16 @@
};
};
imports = [
../hm_modules/__basic.nix
../modules/hm/__basic.nix
../hm_modules/helix.nix
../hm_modules/kakoune.nix
../hm_modules/kitty.nix
../hm_modules/lf.nix
../hm_modules/megasync.nix
../hm_modules/syncthing_tiziano.nix
../modules/hm/helix.nix
../modules/hm/kakoune.nix
../modules/hm/kitty.nix
../modules/hm/lf.nix
../modules/hm/megasync.nix
../modules/hm/syncthing_tiziano.nix
../hm_modules/shell_aliases.nix
../modules/hm/shell_aliases.nix
];
home.stateVersion = "21.11";

217
modules/hm/rofi.nix Normal file
View file

@ -0,0 +1,217 @@
{ pkgs, ... }: {
home.packages = builtins.attrValues {
inherit (pkgs)
rofimoji
rofi-bluetooth
rofi-power-menu
rofi-vpn
xdotool
;
};
programs.rofi = {
enable = true;
location = "center";
font = "${pkgs.rice.font.monospace.name} ${toString pkgs.rice.font.monospace.size}";
plugins = [ pkgs.rofi-calc ];
extraConfig = { modi = "drun,run,ssh,window,calc"; };
terminal = "alacritty";
theme = "onedark";
};
xdg.configFile."rofi/nord.rasi".text = ''
* {
nord0: #2e3440;
nord1: #3b4252;
nord2: #434c5e;
nord3: #4c566a;
nord4: #d8dee9;
nord5: #e5e9f0;
nord6: #eceff4;
nord7: #8fbcbb;
nord8: #88c0d0;
nord9: #81a1c1;
nord10: #5e81ac;
nord11: #bf616a;
nord12: #d08770;
nord13: #ebcb8b;
nord14: #a3be8c;
nord15: #b48ead;
background-color: @nord1;
border: 0px;
margin: 0px;
padding: 0px;
spacing: 0px;
text-color: @nord4;
}
#inputbar {
text-color: @nord3;
padding: 6px;
margin: 0px 0px 2px;
children: [ entry ];
}
#entry {
background-color: @nord3;
text-color: @nord4;
padding: 5px;
}
#message {
border: 0px 0px 1px;
border-color: @nord3;
padding: 0px 0px 6px 7px;
}
#listview {
lines: 10;
padding: 2px 0px 0px;
scrollbar: true;
}
#element {
padding: 0px 0px 0px 7px;
margin: 0px 0px 5px 0px;
text-color: @nord4;
}
#element.normal.normal {
text-color: @nord4;
}
#element.normal.urgent {
text-color: @nord11;
}
#element.normal.active {
text-color: @nord10;
}
#element.alternate.normal {
text-color: @nord4;
}
#element.alternate.urgent {
text-color: @nord11;
}
#element.alternate.active {
text-color: @nord10;
}
#element.selected.normal {
background-color: @nord8;
text-color: @nord1;
}
#element.selected.urgent {
background-color: @nord11;
text-color: @nord4;
}
#element.selected.active {
background-color: @nord10;
text-color: @nord4;
}
#scrollbar {
handle-color: @nord3;
handle-width: 0.50em;
}
#button.selected {
background-color: @nord8;
text-color: @nord4;
}
'';
xdg.configFile."rofi/onedark.rasi".text = ''
/*
* ROFI One Dark
*
* Based on OneDark.vim (https://github.com/joshdick/onedark.vim)
*
* Author: Benjamin Stauss
* User: me-benni
*
*/
* {
black: #000000;
red: #eb6e67;
green: #95ee8f;
yellow: #f8c456;
blue: #6eaafb;
mangenta: #d886f3;
cyan: #6cdcf7;
purple: #C678DF;
emphasis: #50536b;
text: #dfdfdf;
text-alt: #b2b2b2;
fg: #abb2bf;
bg: #282c34;
spacing: 0;
background-color: transparent;
font: "Knack Nerd Font 14";
text-color: @text;
}
window {
transparency: "real";
fullscreen: true;
background-color: #282c34dd;
}
mainbox {
padding: 30% 30%;
}
inputbar {
margin: 0px 0px 20px 0px;
children: [prompt, textbox-prompt-colon, entry, case-indicator];
}
prompt {
text-color: @blue;
}
textbox-prompt-colon {
expand: false;
str: ":";
text-color: @text-alt;
}
entry {
margin: 0px 10px;
}
listview {
spacing: 5px;
dynamic: true;
scrollbar: false;
}
element {
padding: 5px;
text-color: @text-alt;
highlight: bold #95ee8f; /* green */
border-radius: 3px;
}
element selected {
background-color: @emphasis;
text-color: @text;
}
element urgent, element selected urgent {
text-color: @red;
}
element active, element selected active {
text-color: @purple;
}
message {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
border: 1px;
border-color: @cyan;
}
button selected {
padding: 5px;
border-radius: 3px;
background-color: @emphasis;
}
'';
}

Some files were not shown because too many files have changed in this diff Show more