feat: stylix-maxxing and removing uwsm
This commit is contained in:
parent
b2d8783e83
commit
bbff8e9d20
4 changed files with 33 additions and 19 deletions
|
@ -1,11 +1,10 @@
|
||||||
{ config
|
{ config, pkgs, lib, ... }:
|
||||||
, pkgs
|
|
||||||
, lib
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
monitorMaxBrightness = "255";
|
monitorMaxBrightness = "255";
|
||||||
monitorMinBrightness = "32";
|
monitorMinBrightness = "32";
|
||||||
|
stylixBG = config.lib.stylix.colors.base00;
|
||||||
|
stylixFG = config.lib.stylix.colors.base07;
|
||||||
|
stylixPrimaryBG = config.lib.stylix.colors.base12;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Type definitions for nix variables used in this configuration
|
# Type definitions for nix variables used in this configuration
|
||||||
|
@ -39,9 +38,11 @@ in
|
||||||
myDisplayName = "Zhongheng Liu";
|
myDisplayName = "Zhongheng Liu";
|
||||||
myEmail = "z.liu@outlook.com.gr";
|
myEmail = "z.liu@outlook.com.gr";
|
||||||
specialisation."powersave".configuration = {
|
specialisation."powersave".configuration = {
|
||||||
myAutostartCommands = [ "${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}" ];
|
myAutostartCommands =
|
||||||
|
[ "${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}" ];
|
||||||
};
|
};
|
||||||
myConfigLocation = "/home/${myUserName}/Development/Nix/nixos-configuration";
|
myConfigLocation =
|
||||||
|
"/home/${myUserName}/Development/Nix/nixos-configuration";
|
||||||
desktopFontFullName = "JetBrainsMono Nerd Font:style=Regular";
|
desktopFontFullName = "JetBrainsMono Nerd Font:style=Regular";
|
||||||
myAutostartCommands = [
|
myAutostartCommands = [
|
||||||
"${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMaxBrightness}"
|
"${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMaxBrightness}"
|
||||||
|
@ -54,7 +55,8 @@ in
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
terminal = "${pkgs.foot}/bin/footclient";
|
terminal = "${pkgs.foot}/bin/footclient";
|
||||||
fileManager = "${pkgs.nemo}/bin/nemo";
|
fileManager = "${pkgs.nemo}/bin/nemo";
|
||||||
appLauncher = "${pkgs.wmenu}/bin/wmenu-run -b";
|
appLauncher =
|
||||||
|
"${pkgs.wmenu}/bin/wmenu-run -p \"Launch a program...\" -N ${stylixBG} -n ${stylixFG} -S ${stylixPrimaryBG}";
|
||||||
};
|
};
|
||||||
usingMusicPlayerDaemon = true;
|
usingMusicPlayerDaemon = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,10 +22,9 @@ in
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
plugins = import ./hyprbars.nix { inherit config; };
|
plugins = import ./hyprbars.nix { inherit config; };
|
||||||
env = [ "AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0" ];
|
# env = [ "AQ_DRM_DEVICES, /dev/dri/card0" ];
|
||||||
xwayland = { force_zero_scaling = true; };
|
xwayland = { force_zero_scaling = true; };
|
||||||
monitor = [
|
monitor = [
|
||||||
#"eDP-1, 1920x1080@165,0x0,1"
|
|
||||||
"desc:Xiaomi Corporation Mi 27 NFGL 3215000032603, 1920x1080@75, 2560x0, 1"
|
"desc:Xiaomi Corporation Mi 27 NFGL 3215000032603, 1920x1080@75, 2560x0, 1"
|
||||||
"desc:BOE 0x0B40,preferred, auto, ${
|
"desc:BOE 0x0B40,preferred, auto, ${
|
||||||
builtins.toString config.displayScale
|
builtins.toString config.displayScale
|
||||||
|
@ -44,7 +43,6 @@ in
|
||||||
decoration = { rounding = 5; };
|
decoration = { rounding = 5; };
|
||||||
input = {
|
input = {
|
||||||
# xset rate 250 50 replacement on wayland...
|
# xset rate 250 50 replacement on wayland...
|
||||||
# FAST MODE LET'S GOOO
|
|
||||||
repeat_rate = 50;
|
repeat_rate = 50;
|
||||||
repeat_delay = 250;
|
repeat_delay = 250;
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
|
@ -54,11 +52,16 @@ in
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
});
|
});
|
||||||
|
cursor = {
|
||||||
|
# Fixes https://github.com/hyprwm/Hyprland/issues/9324
|
||||||
|
# Needed because by default, Hyprland enabled Nvidia hardware cursors.
|
||||||
|
no_hardware_cursors = true;
|
||||||
|
};
|
||||||
misc = {
|
misc = {
|
||||||
disable_hyprland_logo = true;
|
disable_hyprland_logo = true;
|
||||||
disable_splash_rendering = true;
|
disable_splash_rendering = true;
|
||||||
font_family = "monospace";
|
font_family = "monospace";
|
||||||
focus_on_activate = true; # see if fixes mako daemon not focusing
|
focus_on_activate = true;
|
||||||
};
|
};
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
binde = import ./xf86_binds.nix { inherit pkgs; };
|
binde = import ./xf86_binds.nix { inherit pkgs; };
|
||||||
|
@ -76,7 +79,7 @@ in
|
||||||
};
|
};
|
||||||
# Optional
|
# Optional
|
||||||
# Whether to enable hyprland-session.target on hyprland startup
|
# Whether to enable hyprland-session.target on hyprland startup
|
||||||
systemd = { enable = false; }; # set to false due to UWSM
|
systemd = { enable = true; }; # set to false due to UWSM
|
||||||
};
|
};
|
||||||
# ...
|
# ...
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,9 @@
|
||||||
modules-left = [ "hyprland/workspaces" "hyprland/submap" ];
|
modules-left = [ "hyprland/workspaces" "hyprland/submap" ];
|
||||||
modules-center = [ "mpd" ];
|
modules-center = [ "mpd" ];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"tray"
|
|
||||||
"clock"
|
"clock"
|
||||||
"battery"
|
"group/trays"
|
||||||
"cpu"
|
"group/monitor"
|
||||||
"memory"
|
|
||||||
"wireplumber"
|
"wireplumber"
|
||||||
"temperature"
|
"temperature"
|
||||||
];
|
];
|
||||||
|
@ -36,8 +34,19 @@
|
||||||
"icon-size" = 18;
|
"icon-size" = 18;
|
||||||
"spacing" = 10;
|
"spacing" = 10;
|
||||||
};
|
};
|
||||||
|
"custom/tray-label" = { "format" = "[TRAY]"; };
|
||||||
|
"custom/monitor-label" = { "format" = "[HW]"; };
|
||||||
|
"group/trays" = {
|
||||||
|
"orientation" = "inherit";
|
||||||
|
"modules" = [ "custom/tray-label" "tray" ];
|
||||||
|
"drawer" = { };
|
||||||
|
};
|
||||||
|
"group/monitor" = {
|
||||||
|
"orientation" = "inherit";
|
||||||
|
"modules" = [ "custom/monitor-label" "battery" "cpu" "memory" ];
|
||||||
|
"drawer" = { };
|
||||||
|
};
|
||||||
"mpd" = {
|
"mpd" = {
|
||||||
"max-length" = 50;
|
|
||||||
"format" =
|
"format" =
|
||||||
"{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ";
|
"{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ";
|
||||||
"format-disconnected" = "Disconnected ";
|
"format-disconnected" = "Disconnected ";
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true; # enables Hyprland DM.
|
enable = true; # enables Hyprland DM.
|
||||||
withUWSM = true; # NEW Universal Wayland Session Manager
|
#withUWSM = true; # NEW Universal Wayland Session Manager
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue