feat: redesign, with onedark theme
This commit is contained in:
parent
00f5075f17
commit
19e72eedb7
12 changed files with 71 additions and 50 deletions
|
@ -32,10 +32,10 @@ in
|
||||||
# Default values for this configuration
|
# Default values for this configuration
|
||||||
config = rec {
|
config = rec {
|
||||||
myUserName = "stvnliu";
|
myUserName = "stvnliu";
|
||||||
myWallPaperPath = ../home-manager/${myUserName}/assets/deer-wallpaper.jpg;
|
myWallPaperPath = ../home-manager/${myUserName}/assets/od_neon.png;
|
||||||
myHostName = "nixos-msi";
|
myHostName = "nixos-msi";
|
||||||
displayScale = 2;
|
displayScale = 1;
|
||||||
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg";
|
myWallPaperPathString = "/home/${myUserName}/wallpaper.png";
|
||||||
myDisplayName = "Zhongheng Liu";
|
myDisplayName = "Zhongheng Liu";
|
||||||
myEmail = "z.liu@outlook.com.gr";
|
myEmail = "z.liu@outlook.com.gr";
|
||||||
specialisation."powersave".configuration = {
|
specialisation."powersave".configuration = {
|
||||||
|
|
BIN
home-manager/stvnliu/assets/od_neon.png
Normal file
BIN
home-manager/stvnliu/assets/od_neon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
|
@ -1,4 +1,9 @@
|
||||||
{ inputs, config, pkgs, ... }: {
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
bgbordercolor = config.lib.stylix.colors.base01;
|
||||||
|
fgbordercolor = config.lib.stylix.colors.base02;
|
||||||
|
in
|
||||||
|
{
|
||||||
home.packages =
|
home.packages =
|
||||||
[ inputs.hyprland-qtutils.packages.x86_64-linux.default pkgs.foot ];
|
[ inputs.hyprland-qtutils.packages.x86_64-linux.default pkgs.foot ];
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
@ -8,6 +13,7 @@
|
||||||
package = pkgs.hyprland;
|
package = pkgs.hyprland;
|
||||||
plugins = with pkgs.hyprlandPlugins;
|
plugins = with pkgs.hyprlandPlugins;
|
||||||
[
|
[
|
||||||
|
hyprbars
|
||||||
# hyprexpo
|
# hyprexpo
|
||||||
# hyprfocus
|
# hyprfocus
|
||||||
# hycov
|
# hycov
|
||||||
|
@ -15,6 +21,7 @@
|
||||||
# Whether to enable XWayland
|
# Whether to enable XWayland
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
plugins = import ./hyprbars.nix { inherit config; };
|
||||||
env = [ "AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0" ];
|
env = [ "AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0" ];
|
||||||
xwayland = { force_zero_scaling = true; };
|
xwayland = { force_zero_scaling = true; };
|
||||||
monitor = [
|
monitor = [
|
||||||
|
@ -26,6 +33,8 @@
|
||||||
", preferred, auto, 1" # wildcard definition
|
", preferred, auto, 1" # wildcard definition
|
||||||
];
|
];
|
||||||
general = {
|
general = {
|
||||||
|
"col.inactive_border" = lib.mkForce "rgb(${bgbordercolor})";
|
||||||
|
"col.active_border" = lib.mkForce "rgb(${fgbordercolor})";
|
||||||
border_size = 1;
|
border_size = 1;
|
||||||
gaps_in = 2.5;
|
gaps_in = 2.5;
|
||||||
gaps_out = 5;
|
gaps_out = 5;
|
||||||
|
|
16
home-manager/stvnliu/hypr/hyprland/hyprbars.nix
Normal file
16
home-manager/stvnliu/hypr/hyprland/hyprbars.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config }: {
|
||||||
|
hyprbars = {
|
||||||
|
bar_height = 38;
|
||||||
|
bar_color = "rgb(1e1e1e)";
|
||||||
|
"col.text" = "ffffff";
|
||||||
|
bar_text_size = 12;
|
||||||
|
bar_text_font = config.desktopFontFullName;
|
||||||
|
bar_button_padding = 12;
|
||||||
|
bar_padding = 10;
|
||||||
|
bar_precedence_over_border = true;
|
||||||
|
hyprbars-button = [
|
||||||
|
"rgb(ffffff), 20, , hyprctl dispatch killactive;"
|
||||||
|
"rgb(ffffff), 20, , hyprctl dispatch fullscreen 2;"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
{ ...
|
{ config, lib, ... }: {
|
||||||
}: {
|
programs.hyprlock = lib.mkForce {
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
|
@ -10,29 +9,25 @@
|
||||||
no_fade_in = false;
|
no_fade_in = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#background = [
|
background = [{
|
||||||
# {
|
path = "screenshot";
|
||||||
# path = "screenshot";
|
blur_passes = 3;
|
||||||
# blur_passes = 3;
|
blur_size = 8;
|
||||||
# blur_size = 8;
|
}];
|
||||||
# }
|
|
||||||
#];
|
|
||||||
|
|
||||||
#input-field = [
|
input-field = [{
|
||||||
# {
|
size = "400, 50";
|
||||||
# size = "200, 50";
|
position = "0, -80";
|
||||||
# position = "0, -80";
|
monitor = "";
|
||||||
# monitor = "";
|
dots_center = true;
|
||||||
# dots_center = true;
|
fade_on_empty = false;
|
||||||
# fade_on_empty = false;
|
font_color = "rgb(${config.lib.stylix.colors.base07})";
|
||||||
# font_color = "rgb(202, 211, 245)";
|
inner_color = "rgb(${config.lib.stylix.colors.base02})";
|
||||||
# inner_color = "rgb(91, 96, 120)";
|
outer_color = "rgb(${config.lib.stylix.colors.base03})";
|
||||||
# outer_color = "rgb(24, 25, 38)";
|
outline_thickness = 1;
|
||||||
# outline_thickness = 5;
|
placeholder_text = ''<span foreground="##cad3f5">Password...</span>'';
|
||||||
# #placeholder_text = '\'<span foreground="##cad3f5">Password...</span>'\';
|
shadow_passes = 2;
|
||||||
# shadow_passes = 2;
|
}];
|
||||||
# }
|
|
||||||
#];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
updatetime = 100; # Faster completion
|
updatetime = 100; # Faster completion
|
||||||
|
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = false;
|
relativenumber = true;
|
||||||
|
|
||||||
autoindent = true;
|
autoindent = true;
|
||||||
clipboard = "unnamedplus";
|
clipboard = "unnamedplus";
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/phd.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark-dark.yaml";
|
||||||
image = config.myWallPaperPath;
|
image = config.myWallPaperPath;
|
||||||
fonts = {
|
fonts = {
|
||||||
sansSerif = {
|
sansSerif = {
|
||||||
|
|
|
@ -8,6 +8,8 @@ let
|
||||||
"www"
|
"www"
|
||||||
"blog"
|
"blog"
|
||||||
"files"
|
"files"
|
||||||
|
"code"
|
||||||
|
"chat"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,19 +1,18 @@
|
||||||
{ config
|
{ config
|
||||||
, lib
|
|
||||||
, pkgs
|
, pkgs
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
specialisation = {
|
#specialisation = {
|
||||||
powersave.configuration = {
|
# powersave.configuration = {
|
||||||
hardware.nvidia.prime = {
|
# hardware.nvidia.prime = {
|
||||||
offload = {
|
# offload = {
|
||||||
enable = lib.mkForce true;
|
# enable = lib.mkForce true;
|
||||||
enableOffloadCmd = lib.mkForce true;
|
# enableOffloadCmd = lib.mkForce true;
|
||||||
};
|
# };
|
||||||
sync.enable = lib.mkForce false;
|
# sync.enable = lib.mkForce false;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
boot.kernelModules = [ "nvidia_uvm" ];
|
boot.kernelModules = [ "nvidia_uvm" ];
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
./printing.service.nix
|
./printing.service.nix
|
||||||
./tailscale.service.nix
|
./tailscale.service.nix
|
||||||
./power_management.service.nix
|
./power_management.service.nix
|
||||||
./seatd.service.nix
|
#./seatd.service.nix
|
||||||
./logind.service.nix
|
./logind.service.nix
|
||||||
#./mpd.service.nix
|
#./mpd.service.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
specialisation.powersave.configuration = {
|
#specialisation.powersave.configuration = {
|
||||||
services.auto-cpufreq.enable = true;
|
# services.auto-cpufreq.enable = true;
|
||||||
};
|
#};
|
||||||
services = {
|
services = {
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
udisks2.enable = true;
|
udisks2.enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ... }: {
|
{ pkgs, lib, ... }: {
|
||||||
specialisation = {
|
specialisation = {
|
||||||
wayland = {
|
wayland = {
|
||||||
configuration = {
|
configuration = {
|
||||||
|
@ -16,9 +16,9 @@
|
||||||
services.xserver.displayManager.startx.enable = true;
|
services.xserver.displayManager.startx.enable = true;
|
||||||
}
|
}
|
||||||
(import ./dwm {
|
(import ./dwm {
|
||||||
inherit config;
|
#inherit config;
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit lib;
|
#inherit lib;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue