format everything
This commit is contained in:
parent
9c28397d38
commit
b54f3d54f1
37 changed files with 1185 additions and 1173 deletions
|
|
@ -1,28 +1,28 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps;
|
||||
cfg = config.modules.apps;
|
||||
in
|
||||
{
|
||||
options.modules.apps = {
|
||||
enable = lib.mkEnableOption "enable desktop applications";
|
||||
};
|
||||
options.modules.apps = {
|
||||
enable = lib.mkEnableOption "enable desktop applications";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./git.nix
|
||||
./kitty.nix
|
||||
./zsh.nix
|
||||
];
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./git.nix
|
||||
./kitty.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
modules.apps = {
|
||||
firefox.enable = true;
|
||||
git.enable = true;
|
||||
kitty.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
modules.apps = {
|
||||
firefox.enable = true;
|
||||
git.enable = true;
|
||||
kitty.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps.firefox;
|
||||
let
|
||||
cfg = config.modules.apps.firefox;
|
||||
in
|
||||
{
|
||||
options.modules.apps.firefox = {
|
||||
enable = lib.mkEnableOption "enable firefox";
|
||||
};
|
||||
options.modules.apps.firefox = {
|
||||
enable = lib.mkEnableOption "enable firefox";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# TODO: add some default firefox settings
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# TODO: add some default firefox settings
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +1,34 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps.git;
|
||||
let
|
||||
cfg = config.modules.apps.git;
|
||||
in
|
||||
{
|
||||
options.modules.apps.git = {
|
||||
enable = lib.mkEnableOption "enable git";
|
||||
name = lib.mkOption {
|
||||
example = "Jill Doe";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
email = lib.mkOption {
|
||||
example = "jilldoe@test.local";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
options.modules.apps.git = {
|
||||
enable = lib.mkEnableOption "enable git";
|
||||
name = lib.mkOption {
|
||||
example = "Jill Doe";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
email = lib.mkOption {
|
||||
example = "jilldoe@test.local";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = cfg.name;
|
||||
userEmail = cfg.email;
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
safe.directory = "/etc/nixos";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = cfg.name;
|
||||
userEmail = cfg.email;
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
safe.directory = "/etc/nixos";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps.kitty;
|
||||
let
|
||||
cfg = config.modules.apps.kitty;
|
||||
in
|
||||
{
|
||||
options.modules.apps.kitty = {
|
||||
enable = lib.mkEnableOption "enable the kitty terminal emulator";
|
||||
};
|
||||
options.modules.apps.kitty = {
|
||||
enable = lib.mkEnableOption "enable the kitty terminal emulator";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,39 +1,39 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps.zsh;
|
||||
let
|
||||
cfg = config.modules.apps.zsh;
|
||||
in
|
||||
{
|
||||
options.modules.apps.zsh = {
|
||||
enable = lib.mkEnableOption "enable zsh with oh-my-zsh";
|
||||
enableAliases = lib.mkEnableOption "whether to enable shellAliases";
|
||||
};
|
||||
options.modules.apps.zsh = {
|
||||
enable = lib.mkEnableOption "enable zsh with oh-my-zsh";
|
||||
enableAliases = lib.mkEnableOption "whether to enable shellAliases";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable=true;
|
||||
enableZshIntegration=true;
|
||||
nix-direnv.enable=true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable=true;
|
||||
shellAliases = lib.mkIf cfg.enableAliases {
|
||||
ll = "lsd -l";
|
||||
lt = "lsd -l --tree";
|
||||
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
|
||||
};
|
||||
initExtra = ''
|
||||
[[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||
'';
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
size = 10000;
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
theme = "frisk";
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = lib.mkIf cfg.enableAliases {
|
||||
ll = "lsd -l";
|
||||
lt = "lsd -l --tree";
|
||||
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
|
||||
};
|
||||
initExtra = ''
|
||||
[[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||
'';
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
size = 10000;
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
theme = "frisk";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,185 +1,190 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
let
|
||||
cfg = config.modules.automapaper;
|
||||
let
|
||||
cfg = config.modules.automapaper;
|
||||
in
|
||||
{
|
||||
options.modules.automapaper = {
|
||||
enable = lib.mkEnableOption "enable automapaper";
|
||||
hyprland = lib.mkEnableOption "enable hyprland exec-once integration";
|
||||
configurations = lib.mkOption {
|
||||
description = "automapaper configurations per monitor";
|
||||
type = with lib.types; attrsOf (submodule {
|
||||
options = {
|
||||
init = lib.mkOption {
|
||||
type = str;
|
||||
description = "the shader executed to get the state for the initialisation, and re-initialisation steps";
|
||||
};
|
||||
state = lib.mkOption {
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to increment the state to the next generation";
|
||||
};
|
||||
display = lib.mkOption {
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to display the state to the monitor";
|
||||
};
|
||||
horizontal = lib.mkOption {
|
||||
type = int; # TODO: make filepath possible as well
|
||||
description = "the amount of horizontal cells in the state";
|
||||
};
|
||||
vertical = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of vertical cells in the state";
|
||||
};
|
||||
tps = lib.mkOption {
|
||||
type = int;
|
||||
description = "the target amount of ticks to simulate each second";
|
||||
};
|
||||
cycles = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of state increments before the init shader is called again";
|
||||
};
|
||||
frames_per_tick = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of times to call the display shader for each iteration of the state shader";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
options.modules.automapaper = {
|
||||
enable = lib.mkEnableOption "enable automapaper";
|
||||
hyprland = lib.mkEnableOption "enable hyprland exec-once integration";
|
||||
configurations = lib.mkOption {
|
||||
description = "automapaper configurations per monitor";
|
||||
type = with lib.types; attrsOf (submodule {
|
||||
options = {
|
||||
init = lib.mkOption {
|
||||
type = str;
|
||||
description = "the shader executed to get the state for the initialisation, and re-initialisation steps";
|
||||
};
|
||||
state = lib.mkOption {
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to increment the state to the next generation";
|
||||
};
|
||||
display = lib.mkOption {
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to display the state to the monitor";
|
||||
};
|
||||
horizontal = lib.mkOption {
|
||||
type = int; # TODO: make filepath possible as well
|
||||
description = "the amount of horizontal cells in the state";
|
||||
};
|
||||
vertical = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of vertical cells in the state";
|
||||
};
|
||||
tps = lib.mkOption {
|
||||
type = int;
|
||||
description = "the target amount of ticks to simulate each second";
|
||||
};
|
||||
cycles = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of state increments before the init shader is called again";
|
||||
};
|
||||
frames_per_tick = lib.mkOption {
|
||||
type = int;
|
||||
description = "the amount of times to call the display shader for each iteration of the state shader";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (
|
||||
let
|
||||
displays = lib.attrsets.mapAttrs (displayName: displayConfig:
|
||||
let
|
||||
init = builtins.toFile "init.frag" displayConfig.init;
|
||||
state = builtins.toFile "state.frag" displayConfig.state;
|
||||
display = builtins.toFile "display.frag" displayConfig.display;
|
||||
in
|
||||
''
|
||||
[display]
|
||||
name="${displayName}"
|
||||
horizontal=${builtins.toString displayConfig.horizontal}
|
||||
vertical=${builtins.toString displayConfig.vertical}
|
||||
tps=${builtins.toString displayConfig.tps}
|
||||
state_frag="${state}"
|
||||
init_frag="${init}"
|
||||
display_frag="${display}"
|
||||
cycles=${builtins.toString displayConfig.cycles}
|
||||
frames_per_tick=${builtins.toString displayConfig.frames_per_tick}
|
||||
''
|
||||
) cfg.configurations;
|
||||
in {
|
||||
modules.automapaper.configurations =
|
||||
let
|
||||
conf = {
|
||||
horizontal = 256;
|
||||
vertical = 144;
|
||||
tps = 30;
|
||||
init = ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
config = lib.mkIf cfg.enable (
|
||||
let
|
||||
displays = lib.attrsets.mapAttrs
|
||||
(displayName: displayConfig:
|
||||
let
|
||||
init = builtins.toFile "init.frag" displayConfig.init;
|
||||
state = builtins.toFile "state.frag" displayConfig.state;
|
||||
display = builtins.toFile "display.frag" displayConfig.display;
|
||||
in
|
||||
''
|
||||
[display]
|
||||
name="${displayName}"
|
||||
horizontal=${builtins.toString displayConfig.horizontal}
|
||||
vertical=${builtins.toString displayConfig.vertical}
|
||||
tps=${builtins.toString displayConfig.tps}
|
||||
state_frag="${state}"
|
||||
init_frag="${init}"
|
||||
display_frag="${display}"
|
||||
cycles=${builtins.toString displayConfig.cycles}
|
||||
frames_per_tick=${builtins.toString displayConfig.frames_per_tick}
|
||||
''
|
||||
)
|
||||
cfg.configurations;
|
||||
in
|
||||
{
|
||||
modules.automapaper.configurations =
|
||||
let
|
||||
conf = {
|
||||
horizontal = 256;
|
||||
vertical = 144;
|
||||
tps = 30;
|
||||
init = ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
|
||||
out vec4 stateColor;
|
||||
out vec4 stateColor;
|
||||
|
||||
float PHI = 1.61803398874989484820459; // Φ = Golden Ratio
|
||||
float PHI = 1.61803398874989484820459; // Φ = Golden Ratio
|
||||
|
||||
float gold_noise(in vec2 xy, in float seed){
|
||||
return fract(tan(distance(xy*PHI, xy)*seed)*xy.x);
|
||||
}
|
||||
float gold_noise(in vec2 xy, in float seed){
|
||||
return fract(tan(distance(xy*PHI, xy)*seed)*xy.x);
|
||||
}
|
||||
|
||||
void main( void ) {
|
||||
void main( void ) {
|
||||
|
||||
vec2 position = gl_FragCoord.xy;
|
||||
float color = gold_noise(position.xy, fract(time));
|
||||
vec2 position = gl_FragCoord.xy;
|
||||
float color = gold_noise(position.xy, fract(time));
|
||||
|
||||
|
||||
stateColor = vec4(step(0.3, color), 0,0,step(0.3, color));
|
||||
}'';
|
||||
state= ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
stateColor = vec4(step(0.3, color), 0,0,step(0.3, color));
|
||||
}'';
|
||||
state = ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform sampler2D state;
|
||||
uniform vec2 scale;
|
||||
uniform sampler2D state;
|
||||
uniform vec2 scale;
|
||||
|
||||
out vec4 stateColor;
|
||||
out vec4 stateColor;
|
||||
|
||||
vec4 get(int x, int y) {
|
||||
return texture(state, (gl_FragCoord.xy + vec2(x, y)) / scale);
|
||||
}
|
||||
vec4 get(int x, int y) {
|
||||
return texture(state, (gl_FragCoord.xy + vec2(x, y)) / scale);
|
||||
}
|
||||
|
||||
void main() {
|
||||
int sum = int(get(-1, -1).r +
|
||||
get(-1, 0).r +
|
||||
get(-1, 1).r +
|
||||
get( 0, -1).r +
|
||||
get( 0, 1).r +
|
||||
get( 1, -1).r +
|
||||
get( 1, 0).r +
|
||||
get( 1, 1).r);
|
||||
vec4 current = get(0,0);
|
||||
if (sum == 3) {
|
||||
stateColor.r = 1.0;
|
||||
stateColor.g = 1.0;
|
||||
} else if (sum == 2) {
|
||||
stateColor = current;
|
||||
if (current.r == 0.0) {
|
||||
stateColor.g = max(current.g - 0.01, 0.0);
|
||||
}
|
||||
} else {
|
||||
stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0);
|
||||
}
|
||||
void main() {
|
||||
int sum = int(get(-1, -1).r +
|
||||
get(-1, 0).r +
|
||||
get(-1, 1).r +
|
||||
get( 0, -1).r +
|
||||
get( 0, 1).r +
|
||||
get( 1, -1).r +
|
||||
get( 1, 0).r +
|
||||
get( 1, 1).r);
|
||||
vec4 current = get(0,0);
|
||||
if (sum == 3) {
|
||||
stateColor.r = 1.0;
|
||||
stateColor.g = 1.0;
|
||||
} else if (sum == 2) {
|
||||
stateColor = current;
|
||||
if (current.r == 0.0) {
|
||||
stateColor.g = max(current.g - 0.01, 0.0);
|
||||
}
|
||||
} else {
|
||||
stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0);
|
||||
}
|
||||
|
||||
}'';
|
||||
display = ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
}'';
|
||||
display = ''
|
||||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform sampler2D tex2D;
|
||||
uniform sampler2D old2D;
|
||||
uniform ivec2 resolution;
|
||||
uniform float frame_part;
|
||||
uniform sampler2D tex2D;
|
||||
uniform sampler2D old2D;
|
||||
uniform ivec2 resolution;
|
||||
uniform float frame_part;
|
||||
|
||||
in highp vec2 texCoords;
|
||||
out vec4 stateColor;
|
||||
in highp vec2 texCoords;
|
||||
out vec4 stateColor;
|
||||
|
||||
const vec4 bgColor = vec4(38.0/255.0, 5.0/255.0, 46.0/255.0, 1.0); // #26052e
|
||||
const vec4 fgColor = vec4(148.0/255.0, 15.0/255.0, 173.0/255.0, 1.0); // #950fad
|
||||
const vec4 bgColor = vec4(38.0/255.0, 5.0/255.0, 46.0/255.0, 1.0); // #26052e
|
||||
const vec4 fgColor = vec4(148.0/255.0, 15.0/255.0, 173.0/255.0, 1.0); // #950fad
|
||||
|
||||
void main() {
|
||||
vec2 canvasSize = vec2(textureSize(tex2D, 0));
|
||||
vec4 state = texture(tex2D, texCoords);
|
||||
vec4 ostate = texture(old2D, texCoords);
|
||||
void main() {
|
||||
vec2 canvasSize = vec2(textureSize(tex2D, 0));
|
||||
vec4 state = texture(tex2D, texCoords);
|
||||
vec4 ostate = texture(old2D, texCoords);
|
||||
|
||||
vec2 localCoords = fract(gl_FragCoord.xy / vec2(resolution) * canvasSize);
|
||||
localCoords = localCoords - 0.5;
|
||||
float dist = sqrt(dot(localCoords, localCoords));
|
||||
vec2 localCoords = fract(gl_FragCoord.xy / vec2(resolution) * canvasSize);
|
||||
localCoords = localCoords - 0.5;
|
||||
float dist = sqrt(dot(localCoords, localCoords));
|
||||
|
||||
float size = smoothstep(0.0, 1.0, pow(mix(ostate.g,state.g, frame_part), 3.0)) * 0.35;
|
||||
float mask = 1.0 - step(size, dist);
|
||||
float size = smoothstep(0.0, 1.0, pow(mix(ostate.g,state.g, frame_part), 3.0)) * 0.35;
|
||||
float mask = 1.0 - step(size, dist);
|
||||
|
||||
float brightness = mix(ostate.r,state.r, frame_part) + 0.2 * pow(mix(ostate.g,state.g, frame_part), 3.0);
|
||||
stateColor = mix(bgColor, fgColor, brightness * mask);
|
||||
}'';
|
||||
cycles = 2500;
|
||||
frames_per_tick = 1;
|
||||
};
|
||||
in
|
||||
{
|
||||
"DP-3" = conf;
|
||||
"DP-2" = conf;
|
||||
};
|
||||
wayland.windowManager.hyprland.settings.exec-once = lib.mkIf cfg.hyprland (
|
||||
lib.mapAttrsToList (name: config:
|
||||
"${
|
||||
float brightness = mix(ostate.r,state.r, frame_part) + 0.2 * pow(mix(ostate.g,state.g, frame_part), 3.0);
|
||||
stateColor = mix(bgColor, fgColor, brightness * mask);
|
||||
}'';
|
||||
cycles = 2500;
|
||||
frames_per_tick = 1;
|
||||
};
|
||||
in
|
||||
{
|
||||
"DP-3" = conf;
|
||||
"DP-2" = conf;
|
||||
};
|
||||
wayland.windowManager.hyprland.settings.exec-once = lib.mkIf cfg.hyprland (
|
||||
lib.mapAttrsToList
|
||||
(name: config:
|
||||
"${
|
||||
inputs.automapaper.packages.${pkgs.system}.default
|
||||
}/bin/automapaper -C ${
|
||||
builtins.toFile "${name}.toml" config
|
||||
}") displays
|
||||
);
|
||||
}
|
||||
);
|
||||
}")
|
||||
displays
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
let
|
||||
cfg = config.modules.dunst;
|
||||
cfg = config.modules.dunst;
|
||||
in
|
||||
{
|
||||
options.modules.dunst = {
|
||||
enable = lib.mkEnableOption "enable dunst for notifications";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
options.modules.dunst = {
|
||||
enable = lib.mkEnableOption "enable dunst for notifications";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.games;
|
||||
cfg = config.modules.games;
|
||||
in
|
||||
{
|
||||
options.modules.games = {
|
||||
enable = lib.mkEnableOption "enable gaming services";
|
||||
minecraft.enable = lib.mkEnableOption "enable minecraft";
|
||||
};
|
||||
options.modules.games = {
|
||||
enable = lib.mkEnableOption "enable gaming services";
|
||||
minecraft.enable = lib.mkEnableOption "enable minecraft";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./minecraft.nix
|
||||
];
|
||||
imports = [
|
||||
./minecraft.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
modules.games.minecraft.enable = true;
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
modules.games.minecraft.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.games.minecraft;
|
||||
cfg = config.modules.games.minecraft;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
(pkgs.prismlauncher.override{withWaylandGLFW=true;})
|
||||
];
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
(pkgs.prismlauncher.override { withWaylandGLFW = true; })
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,33 +1,33 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
options.modules.games.steam = {
|
||||
enable = lib.mkEnableOption "enable steam";
|
||||
};
|
||||
config = lib.mkIf config.modules.games.steam.enable {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
];
|
||||
};
|
||||
};
|
||||
options.modules.games.steam = {
|
||||
enable = lib.mkEnableOption "enable steam";
|
||||
};
|
||||
config = lib.mkIf config.modules.games.steam.enable {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
|
||||
gamemode.enable = true;
|
||||
};
|
||||
};
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
gamemode.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
let
|
||||
let
|
||||
cfg = config.modules.hyprland;
|
||||
in
|
||||
{
|
||||
|
|
@ -30,127 +30,130 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
modules = {
|
||||
automapaper = {
|
||||
enable = lib.mkDefault true;
|
||||
hyprland = cfg.enable;
|
||||
enable = lib.mkDefault true;
|
||||
hyprland = cfg.enable;
|
||||
};
|
||||
waybar = {
|
||||
modules = {
|
||||
left = [ "hyprland/workspaces" "tray" "hyprland/window" ];
|
||||
center = [ "clock" ];
|
||||
modules = {
|
||||
left = [ "hyprland/workspaces" "tray" "hyprland/window" ];
|
||||
center = [ "clock" ];
|
||||
right = [ "custom/vpn" "wireplumber" "network" "cpu" "memory" "custom/poweroff" ];
|
||||
};
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
wofi.enable = lib.mkDefault true;
|
||||
dunst.enable = lib.mkDefault true;
|
||||
};
|
||||
# these are necessary for the config to function correctly
|
||||
home.packages = with pkgs; [
|
||||
# I always want these with hyprland anyways
|
||||
libnotify # to enable the notify-send command
|
||||
wl-clipboard # wl-copy and wl-paste
|
||||
};
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
wofi.enable = lib.mkDefault true;
|
||||
dunst.enable = lib.mkDefault true;
|
||||
};
|
||||
# these are necessary for the config to function correctly
|
||||
home.packages = with pkgs; [
|
||||
# I always want these with hyprland anyways
|
||||
libnotify # to enable the notify-send command
|
||||
wl-clipboard # wl-copy and wl-paste
|
||||
|
||||
playerctl
|
||||
];
|
||||
playerctl
|
||||
];
|
||||
|
||||
|
||||
xdg.portal.configPackages = [ cfg.package ];
|
||||
xdg.portal.configPackages = [ cfg.package ];
|
||||
|
||||
services.playerctld.enable = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
settings = {
|
||||
monitor = [
|
||||
"DP-3,2560x1440@360,2560x0,1"
|
||||
"DP-2,2560x1440@144,0x0,1"
|
||||
];
|
||||
windowrulev2 = [
|
||||
"opacity 1.0 0.6,class:^(kitty)$"
|
||||
"stayfocused,class:^(wofi)$"
|
||||
];
|
||||
env = [
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
];
|
||||
exec-once = [
|
||||
"${pkgs.waybar}/bin/waybar"
|
||||
"${pkgs.dunst}/bin/dunst"
|
||||
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
|
||||
"${pkgs.hypridle}/bin/hypridle"
|
||||
];
|
||||
general = {
|
||||
sensitivity = "1.2";
|
||||
gaps_in = "2";
|
||||
gaps_out = "3";
|
||||
border_size = "3";
|
||||
"col.active_border"="0xff950fad";
|
||||
"col.inactive_border"="0xff26052e";
|
||||
};
|
||||
misc = {
|
||||
key_press_enables_dpms = true;
|
||||
};
|
||||
decoration = {
|
||||
rounding = "6";
|
||||
active_opacity = "1";
|
||||
inactive_opacity = "1";
|
||||
};
|
||||
workspace = [
|
||||
"DP-3,1"
|
||||
"DP-2,2"
|
||||
];
|
||||
animations = {
|
||||
enabled = "1";
|
||||
animation = [
|
||||
"windows,1,2,default"
|
||||
"border,1,10,default"
|
||||
"fade,0,5,default"
|
||||
"workspaces,1,4,default"
|
||||
];
|
||||
};
|
||||
"$mod" = "SUPER";
|
||||
bind = [
|
||||
"$mod,Return,exec,${cfg.terminal}/bin/${cfg.terminal.pname}"
|
||||
"$mod,tab,cyclenext"
|
||||
"SUPERSHIFT,Q,killactive"
|
||||
"$mod,SPACE,exec,wofi-launch"
|
||||
"$mod,P,exec,wofi-power"
|
||||
"SUPERSHIFT,m,exit"
|
||||
"$mod,H,movefocus,l"
|
||||
"$mod,J,movefocus,u"
|
||||
"$mod,K,movefocus,d"
|
||||
"$mod,L,movefocus,r"
|
||||
"SUPERSHIFT,H,movewindow,l"
|
||||
"SUPERSHIFT,J,movewindow,u"
|
||||
"SUPERSHIFT,K,movewindow,d"
|
||||
"SUPERSHIFT,L,movewindow,r"
|
||||
"$mod,F,togglefloating"
|
||||
"$mod,X,togglespecialworkspace"
|
||||
"SUPERSHIFT,X,movetoworkspace,special"
|
||||
"SUPERSHIFT,S,exec,${pkgs.hyprshot}/bin/hyprshot -m region --clipboard-only"
|
||||
"$mod,f11,fullscreen,0"
|
||||
",XF86AudioLowerVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%-"
|
||||
",XF86AudioRaiseVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%+"
|
||||
",XF86AudioMute,exec,${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SINK@ toggle"
|
||||
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
|
||||
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
|
||||
]
|
||||
++ (
|
||||
builtins.concatLists (builtins.genList (
|
||||
x: let
|
||||
ws = builtins.toString (x);
|
||||
in [
|
||||
"$mod,${ws},workspace,${ws}"
|
||||
"ALT,${ws},movetoworkspace,${ws}"
|
||||
]
|
||||
)
|
||||
10)
|
||||
);
|
||||
bindm = [
|
||||
"$mod,mouse:272,movewindow"
|
||||
"$mod,mouse:273,resizewindow"
|
||||
];
|
||||
};
|
||||
services.playerctld.enable = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
settings = {
|
||||
monitor = [
|
||||
"DP-3,2560x1440@360,2560x0,1"
|
||||
"DP-2,2560x1440@144,0x0,1"
|
||||
];
|
||||
windowrulev2 = [
|
||||
"opacity 1.0 0.6,class:^(kitty)$"
|
||||
"stayfocused,class:^(wofi)$"
|
||||
];
|
||||
env = [
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
];
|
||||
exec-once = [
|
||||
"${pkgs.waybar}/bin/waybar"
|
||||
"${pkgs.dunst}/bin/dunst"
|
||||
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
|
||||
"${pkgs.hypridle}/bin/hypridle"
|
||||
];
|
||||
general = {
|
||||
sensitivity = "1.2";
|
||||
gaps_in = "2";
|
||||
gaps_out = "3";
|
||||
border_size = "3";
|
||||
"col.active_border" = "0xff950fad";
|
||||
"col.inactive_border" = "0xff26052e";
|
||||
};
|
||||
misc = {
|
||||
key_press_enables_dpms = true;
|
||||
};
|
||||
decoration = {
|
||||
rounding = "6";
|
||||
active_opacity = "1";
|
||||
inactive_opacity = "1";
|
||||
};
|
||||
workspace = [
|
||||
"DP-3,1"
|
||||
"DP-2,2"
|
||||
];
|
||||
animations = {
|
||||
enabled = "1";
|
||||
animation = [
|
||||
"windows,1,2,default"
|
||||
"border,1,10,default"
|
||||
"fade,0,5,default"
|
||||
"workspaces,1,4,default"
|
||||
];
|
||||
};
|
||||
"$mod" = "SUPER";
|
||||
bind = [
|
||||
"$mod,Return,exec,${cfg.terminal}/bin/${cfg.terminal.pname}"
|
||||
"$mod,tab,cyclenext"
|
||||
"SUPERSHIFT,Q,killactive"
|
||||
"$mod,SPACE,exec,wofi-launch"
|
||||
"$mod,P,exec,wofi-power"
|
||||
"SUPERSHIFT,m,exit"
|
||||
"$mod,H,movefocus,l"
|
||||
"$mod,J,movefocus,u"
|
||||
"$mod,K,movefocus,d"
|
||||
"$mod,L,movefocus,r"
|
||||
"SUPERSHIFT,H,movewindow,l"
|
||||
"SUPERSHIFT,J,movewindow,u"
|
||||
"SUPERSHIFT,K,movewindow,d"
|
||||
"SUPERSHIFT,L,movewindow,r"
|
||||
"$mod,F,togglefloating"
|
||||
"$mod,X,togglespecialworkspace"
|
||||
"SUPERSHIFT,X,movetoworkspace,special"
|
||||
"SUPERSHIFT,S,exec,${pkgs.hyprshot}/bin/hyprshot -m region --clipboard-only"
|
||||
"$mod,f11,fullscreen,0"
|
||||
",XF86AudioLowerVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%-"
|
||||
",XF86AudioRaiseVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%+"
|
||||
",XF86AudioMute,exec,${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SINK@ toggle"
|
||||
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
|
||||
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
|
||||
]
|
||||
++ (
|
||||
builtins.concatLists (builtins.genList
|
||||
(
|
||||
x:
|
||||
let
|
||||
ws = builtins.toString (x);
|
||||
in
|
||||
[
|
||||
"$mod,${ws},workspace,${ws}"
|
||||
"ALT,${ws},movetoworkspace,${ws}"
|
||||
]
|
||||
)
|
||||
10)
|
||||
);
|
||||
bindm = [
|
||||
"$mod,mouse:272,movewindow"
|
||||
"$mod,mouse:273,resizewindow"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
config:
|
||||
[ "hyprland/workspaces" "tray" "hyprland/window" ] ++
|
||||
[ "clock" ] ++
|
||||
[ "custom/vpn" "wireplumber" "network" "cpu" "memory" "custom/poweroff" ]
|
||||
config:
|
||||
[ "hyprland/workspaces" "tray" "hyprland/window" ] ++
|
||||
[ "clock" ] ++
|
||||
[ "custom/vpn" "wireplumber" "network" "cpu" "memory" "custom/poweroff" ]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
let
|
||||
name = "clock";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "cpu";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,15 +12,15 @@ in
|
|||
modules = {
|
||||
left = lib.mkOption {
|
||||
type = with lib.types; listOf (enum [ ]);
|
||||
default = [];
|
||||
default = [ ];
|
||||
};
|
||||
center = lib.mkOption {
|
||||
type = with lib.types; listOf (enum [ ]);
|
||||
default = [];
|
||||
default = [ ];
|
||||
};
|
||||
right = lib.mkOption {
|
||||
type = with lib.types; listOf (enum [ ]);
|
||||
default = [];
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "memory";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
config:
|
||||
builtins.map
|
||||
(n: {name = n; value = {enable = true;}; })
|
||||
(import ./allmodules.nix config)
|
||||
builtins.map
|
||||
(n: { name = n; value = { enable = true; }; })
|
||||
(import ./allmodules.nix config)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "network";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "custom/poweroff";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "temperature";
|
||||
in
|
||||
{
|
||||
|
|
@ -13,7 +13,7 @@ in
|
|||
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
|
||||
critical-threshold = 80;
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = ["" "" ""];
|
||||
format-icons = [ "" "" "" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "tray";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "custom/vpn";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "hyprland/window";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "wireplumber";
|
||||
in
|
||||
{
|
||||
|
|
@ -12,7 +12,7 @@ in
|
|||
format = "{volume}% {icon}";
|
||||
format-muted = "";
|
||||
on-click = "helvum";
|
||||
format-icons = ["" "" ""];
|
||||
format-icons = [ "" "" "" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
let
|
||||
name = "hyprland/workspaces";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
222
modules/wofi.nix
222
modules/wofi.nix
|
|
@ -1,126 +1,124 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
let
|
||||
cfg = config.modules.wofi;
|
||||
cfg = config.modules.wofi;
|
||||
in
|
||||
{
|
||||
options.modules.wofi = {
|
||||
enable = lib.mkEnableOption "enable wofi app launcher";
|
||||
};
|
||||
imports = [
|
||||
../common/colors.nix
|
||||
];
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "wofi-launch" ''
|
||||
${wofi}/bin/wofi --show drun
|
||||
'')
|
||||
(writeShellScriptBin "wofi-power" ''
|
||||
lock="Lock"
|
||||
poweroff="Poweroff"
|
||||
reboot="Reboot"
|
||||
sleep="Suspend"
|
||||
|
||||
selected_option=$(echo -e "$lock\n$sleep\n$reboot\n$poweroff" | wofi --dmenu -i -p "Powermenu")
|
||||
options.modules.wofi = {
|
||||
enable = lib.mkEnableOption "enable wofi app launcher";
|
||||
};
|
||||
imports = [
|
||||
../common/colors.nix
|
||||
];
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "wofi-launch" ''
|
||||
${wofi}/bin/wofi --show drun
|
||||
'')
|
||||
(writeShellScriptBin "wofi-power" ''
|
||||
lock="Lock"
|
||||
poweroff="Poweroff"
|
||||
reboot="Reboot"
|
||||
sleep="Suspend"
|
||||
|
||||
selected_option=$(echo -e "$lock\n$sleep\n$reboot\n$poweroff" | wofi --dmenu -i -p "Powermenu")
|
||||
|
||||
if [ "$selected_option" == "$lock" ]
|
||||
then
|
||||
echo "lock"
|
||||
swaylock
|
||||
elif [ "$selected_option" == "$poweroff" ]
|
||||
then
|
||||
echo "poweroff"
|
||||
poweroff
|
||||
elif [ "$selected_option" == "$reboot" ]
|
||||
then
|
||||
echo "reboot"
|
||||
reboot
|
||||
elif [ "$selected_option" == "$sleep" ]
|
||||
then
|
||||
echo "sleep"
|
||||
suspend
|
||||
else
|
||||
echo "No match"
|
||||
fi
|
||||
'')
|
||||
];
|
||||
programs.wofi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
outline: none;
|
||||
outline-style: none;
|
||||
}
|
||||
if [ "$selected_option" == "$lock" ]
|
||||
then
|
||||
echo "lock"
|
||||
swaylock
|
||||
elif [ "$selected_option" == "$poweroff" ]
|
||||
then
|
||||
echo "poweroff"
|
||||
poweroff
|
||||
elif [ "$selected_option" == "$reboot" ]
|
||||
then
|
||||
echo "reboot"
|
||||
reboot
|
||||
elif [ "$selected_option" == "$sleep" ]
|
||||
then
|
||||
echo "sleep"
|
||||
suspend
|
||||
else
|
||||
echo "No match"
|
||||
fi
|
||||
'')
|
||||
];
|
||||
programs.wofi = {
|
||||
enable = true;
|
||||
settings = { };
|
||||
style = ''
|
||||
* {
|
||||
outline: none;
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
#window {
|
||||
margin: 10px;
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
border-radius: 10px;
|
||||
font-family:
|
||||
JetBrains Mono NF,
|
||||
monospace;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
#window {
|
||||
margin: 10px;
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
border-radius: 10px;
|
||||
font-family:
|
||||
JetBrains Mono NF,
|
||||
monospace;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
border: 2px #${config.colorScheme.palette.backgroundMuted};
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
border: 2px #${config.colorScheme.palette.backgroundMuted};
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#input {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
margin-left: 2px;
|
||||
color: #${config.colorScheme.palette.info};
|
||||
outline-style: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
#input {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
margin-left: 2px;
|
||||
color: #${config.colorScheme.palette.info};
|
||||
outline-style: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
|
||||
#scroll {
|
||||
border: 10px solid #${config.colorScheme.palette.border};
|
||||
border-radius: 10px;
|
||||
/*padding-right: 10px;*/
|
||||
outline: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
#scroll {
|
||||
border: 10px solid #${config.colorScheme.palette.border};
|
||||
border-radius: 10px;
|
||||
/*padding-right: 10px;*/
|
||||
outline: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
#inner-box {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#entry {
|
||||
border: none;
|
||||
/*border-radius: 10px;
|
||||
margin-right: 15px;
|
||||
margin-left: 15px;*/
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
color: #${config.colorScheme.palette.text};
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
#entry:selected {
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.info};
|
||||
}
|
||||
#entry {
|
||||
border: none;
|
||||
/*border-radius: 10px;
|
||||
margin-right: 15px;
|
||||
margin-left: 15px;*/
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
color: #${config.colorScheme.palette.text};
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
#entry:selected {
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.info};
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
border: none;
|
||||
color: #${config.colorScheme.palette.textMuted};
|
||||
}
|
||||
#text:selected {
|
||||
border: none;
|
||||
color: #${config.colorScheme.palette.textMuted};
|
||||
}
|
||||
|
||||
#img {
|
||||
background-color: transparent;
|
||||
margin-right: 6px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
#img {
|
||||
background-color: transparent;
|
||||
margin-right: 6px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue