removed plymouth again

This commit is contained in:
Charlie Root 2024-05-18 20:07:17 +02:00
commit e12dd3941c
6 changed files with 45 additions and 19 deletions

View file

@ -8,6 +8,10 @@
console.keyMap = "de"; console.keyMap = "de";
nix = { nix = {
settings = { settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
# enable flakes # enable flakes
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
# reduce file size used & automatic garbage collector # reduce file size used & automatic garbage collector
@ -67,4 +71,3 @@
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -14,6 +14,7 @@ in {
options.modules.programs.hyprland.enable = mkEnableOption "hyprland"; options.modules.programs.hyprland.enable = mkEnableOption "hyprland";
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Session variables for Hyprland
environment.sessionVariables = { environment.sessionVariables = {
LIBVA_DRIVER_NAME = "nvidia"; LIBVA_DRIVER_NAME = "nvidia";
GTK_USE_PORTAL = "1"; GTK_USE_PORTAL = "1";
@ -25,11 +26,13 @@ in {
CLUTTER_BACKEND = "wayland"; CLUTTER_BACKEND = "wayland";
GDK_BACKEND = "wayland"; GDK_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
# Needed anymore?
LIBSEAT_BACKEND = "logind"; LIBSEAT_BACKEND = "logind";
# WLR_NO_HARDWARE_CURSORS = "1"; # WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
# xdg Portal
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ extraPortals = [
@ -42,21 +45,29 @@ in {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = hyprland; package = hyprland;
# Split-monitor-workspaces provides awesome-like workspace behaviour
plugins = [ split-monitor-workspaces ]; plugins = [ split-monitor-workspaces ];
# Xwayland for X applications
xwayland.enable = true; xwayland.enable = true;
# No idea why I set this
systemd = { systemd = {
enable = true; enable = true;
variables = [ "--all" ]; variables = [ "--all" ];
}; };
# Hyprland settings
settings = { settings = {
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
# Monitor config
monitor = [ monitor = [
"DP-2,1920x1080,0x0,1" "DP-2,1920x1080,0x0,1"
"HDMI-A-2,1920x1080,1920x0,1" "HDMI-A-2,1920x1080,1920x0,1"
"HDMI-A-1,1920x1080,3840x0,1" "HDMI-A-1,1920x1080,3840x0,1"
# Had the shadow monitor bug, so had to disable all unknown monitors.
"Unknown-1,disable" "Unknown-1,disable"
]; ];
# Workspace config
workspace = [ workspace = [
"1, monitor:HDMI-A-1, default:true" "1, monitor:HDMI-A-1, default:true"
"2, monitor:HDMI-A-1" "2, monitor:HDMI-A-1"
@ -97,7 +108,7 @@ in {
"special:nixos, decorate:false" "special:nixos, decorate:false"
"special:keepassxc, decorate:false" "special:keepassxc, decorate:false"
]; ];
# Input settings
input = { input = {
kb_layout = "de"; kb_layout = "de";
kb_variant = ""; kb_variant = "";
@ -115,9 +126,9 @@ in {
sensitivity = 1.0; sensitivity = 1.0;
gaps_in = 0; gaps_in = 0;
gaps_out = 0; gaps_out = 0;
border_size = 2; border_size = 0;
}; };
#Decoration settings
decoration = { decoration = {
rounding = 0; rounding = 0;
blur = { blur = {
@ -132,13 +143,14 @@ in {
shadow_offset = "2 4"; shadow_offset = "2 4";
shadow_scale = 1; shadow_scale = 1;
}; };
# Bezier curves for aninmations.
# Generate your own at https://www.cssportal.com/css-cubic-bezier-generator/
bezier = [ bezier = [
"dupa, 0.1, 0.9, 0.1, 1.05" "dupa, 0.1, 0.9, 0.1, 1.05"
"apf,0.76,0,0.24,1" "apf,0.76,0,0.24,1"
"fast,0.34,1.56,0.64,1" "fast,0.34,1.56,0.64,1"
]; ];
# Hyprland anomations, using the above bezier curves
animations = { animations = {
enabled = true; enabled = true;
animation = [ animation = [
@ -163,7 +175,7 @@ in {
animate_mouse_windowdragging = false; animate_mouse_windowdragging = false;
force_default_wallpaper = 0; force_default_wallpaper = 0;
}; };
# Window rules for some programs.
windowrulev2 = [ windowrulev2 = [
"float, class:^(Tor Browser)$" "float, class:^(Tor Browser)$"
"float, class:^(mpv)$" "float, class:^(mpv)$"
@ -177,7 +189,7 @@ in {
"center, class: ^(code), title: ^(Open*)" "center, class: ^(code), title: ^(Open*)"
"float, class:^(org.keepassxc.KeePassXC)$" "float, class:^(org.keepassxc.KeePassXC)$"
]; ];
# Keybinds
bind = [ bind = [
"$mainMod, RETURN, exec, ${pkgs.kitty}/bin/kitty -d ~" "$mainMod, RETURN, exec, ${pkgs.kitty}/bin/kitty -d ~"
"$mainMod, Q, killactive" "$mainMod, Q, killactive"
@ -186,6 +198,7 @@ in {
"$mainMod, SPACE, togglefloating, active" "$mainMod, SPACE, togglefloating, active"
"$mainMod, O, exec, obsidian --ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --enable-features=WebRTCPipeWireCpaturer --disable-gpu" "$mainMod, O, exec, obsidian --ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --enable-features=WebRTCPipeWireCpaturer --disable-gpu"
# workspaces # workspaces
# split-workspace is because of the split-workspace plugin
"$mainMod, 1, split-workspace, 1" "$mainMod, 1, split-workspace, 1"
"$mainMod, 2, split-workspace, 2" "$mainMod, 2, split-workspace, 2"
"$mainMod, 3, split-workspace, 3" "$mainMod, 3, split-workspace, 3"
@ -206,14 +219,19 @@ in {
"$mainMod SHIFT, 8, split-movetoworkspacesilent, 8" "$mainMod SHIFT, 8, split-movetoworkspacesilent, 8"
"$mainMod SHIFT, 9, split-movetoworkspacesilent, 9" "$mainMod SHIFT, 9, split-movetoworkspacesilent, 9"
"$mainMod SHIFT, 0, split-movetoworkspacesilent, 10" "$mainMod SHIFT, 0, split-movetoworkspacesilent, 10"
# Screenshotting
"$mainMod, S, exec, ${pkgs.grimblast}/bin/grimblast copy area" "$mainMod, S, exec, ${pkgs.grimblast}/bin/grimblast copy area"
# File manager
"$mainMod, E, exec, ${pkgs.gnome.nautilus}/bin/nautilus" "$mainMod, E, exec, ${pkgs.gnome.nautilus}/bin/nautilus"
"$mainMod, R, exec, ${hyprland}/bin/hyprctl reload" # Toggle the four different special workspaces.
"$mainMod, B, togglespecialworkspace, btop" "$mainMod, B, togglespecialworkspace, btop"
"$mainMod, V, togglespecialworkspace, pipewire" "$mainMod, V, togglespecialworkspace, pipewire"
"$mainMod, N, togglespecialworkspace, nixos" "$mainMod, N, togglespecialworkspace, nixos"
"$mainMod, X, togglespecialworkspace, keepassxc" "$mainMod, X, togglespecialworkspace, keepassxc"
# Reload hyprland
"$mainMod, R, exec, ${hyprland}/bin/hyprctl reload" "$mainMod, R, exec, ${hyprland}/bin/hyprctl reload"
# Restart waybar
"$mainMod CONTROL, B, exec, ${pkgs.procps}/bin/pkill waybar || ${waybar}/bin/waybar" "$mainMod CONTROL, B, exec, ${pkgs.procps}/bin/pkill waybar || ${waybar}/bin/waybar"
]; ];
binde = [ binde = [
@ -224,7 +242,7 @@ in {
"$mainMod, L, movefocus, r" "$mainMod, L, movefocus, r"
]; ];
# Media controls
bindl = let bindl = let
play-pause = "${pkgs.playerctl}/bin/playerctl play-pause"; play-pause = "${pkgs.playerctl}/bin/playerctl play-pause";
stop = "${pkgs.playerctl}/bin/playerctl stop"; stop = "${pkgs.playerctl}/bin/playerctl stop";
@ -248,14 +266,17 @@ in {
", XF86AudioRaiseVolume, exec, ${volume_up}" ", XF86AudioRaiseVolume, exec, ${volume_up}"
", XF86AudioLowerVolume, exec, ${volume_down}" ", XF86AudioLowerVolume, exec, ${volume_down}"
]; ];
# Mouse settings
bindm = [ bindm = [
"$mainMod, mouse:272, movewindow" "$mainMod, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow" "$mainMod, mouse:273, resizewindow"
]; ];
# Some more movement-related settings
binds = { binds = {
pass_mouse_when_bound = false; pass_mouse_when_bound = false;
movefocus_cycles_fullscreen = false; movefocus_cycles_fullscreen = false;
}; };
# Programs which get executed at Hyprland start.
exec-once = [ exec-once = [
#start waybar #start waybar
# "${waybar}/bin/waybar" # "${waybar}/bin/waybar"

View file

@ -80,7 +80,6 @@ in {
sherlock sherlock
signal-desktop-beta signal-desktop-beta
smartmontools smartmontools
spotube
steam steam
strawberry strawberry
teamspeak_client teamspeak_client

View file

@ -17,9 +17,9 @@ in {
monitor = 1; monitor = 1;
follow = "none"; follow = "none";
width = 300; width = 300;
height = 300; height = 100;
origin = "top-center"; origin = "top-right";
offset = "0x15"; offset = "0x10";
scale = 0; scale = 0;
notification_limit = 3; notification_limit = 3;
idle_threshold = 120; idle_threshold = 120;
@ -40,9 +40,7 @@ in {
font = "JetBrains Mono 12"; font = "JetBrains Mono 12";
line_height = 0; line_height = 0;
markup = "full"; markup = "full";
format = '' format = "<b>%s</b>%b";
<b>%s</b>
%b'';
alignment = "right"; alignment = "right";
vertical_alignment = "center"; vertical_alignment = "center";
show_age_threshold = 60; show_age_threshold = 60;

View file

@ -8,7 +8,7 @@
}; };
}; };
boot.plymouth = { boot.plymouth = {
enable = true; enable = false;
font = font =
"${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf"; "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";
themePackages = [ pkgs.catppuccin-plymouth ]; themePackages = [ pkgs.catppuccin-plymouth ];

View file

@ -1,7 +1,12 @@
{ config, ... }: { { pkgs, config, inputs, ... }:
let
pkgs-unstable =
inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
package = pkgs-unstable.mesa.drivers;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
}; };