make sway default

This commit is contained in:
insert 2024-06-05 10:17:55 -04:00
parent 7f3e2853c8
commit 0f9d39a08b
Signed by: insert
GPG key ID: A70775C389ACF105
5 changed files with 130 additions and 11 deletions

View file

@ -57,7 +57,7 @@
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --asterisks --remember-session --cmd Hyprland"; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --asterisks --remember-session --cmd sway";
user = "greeter"; user = "greeter";
}; };
}; };
@ -71,6 +71,14 @@
''; '';
}; };
environment.variables = rec {
NIXOS_OZONE_WL = "1";
KUBECONFIG = "/home/insert/Desktop/k3s.yaml";
QT_QPA_PLATFORMTHEME = "qt5ct";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
WLR_NO_HARDWARE_CURSORS = "1";
NO_HARDWARE_CURSORS = "true";
};
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = {

View file

@ -35,25 +35,27 @@ border-color=#ef9f76'';
"height": 0, "height": 0,
"modules-left": [ "modules-left": [
"clock", "clock",
"hyprland/workspaces" "sway/workspaces"
], ],
"modules-center": ["hyprland/window"], "modules-center": ["sway/window"],
"modules-right": [ "modules-right": [
"wlr/taskbar", "wlr/taskbar",
"sway/mode",
"temperature", "temperature",
"cpu", "cpu",
"memory", "memory",
"tray" "tray"
], ],
"hyprland/window": { "sway/mode": {
"format": " {}",
"max-length": 50
},
"sway/window": {
"format": "{}" "format": "{}"
}, },
"hyprland/workspaces": { "sway/workspaces": {
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"all-outputs": true, "all-outputs": true,
"tooltip": true,
"on-click": "activate" "on-click": "activate"
}, },
"wlr/taskbar": { "wlr/taskbar": {
@ -208,6 +210,10 @@ border-color=#ef9f76'';
#memory { #memory {
color: @green; color: @green;
} }
#mode {
color: @red;
}
#battery.charging { #battery.charging {
color: @green; color: @green;

107
home.nix
View file

@ -95,6 +95,17 @@
}; };
}; };
home.pointerCursor = {
name = "Catppuccin-Frappe-Blue-Cursors";
package = pkgs.catppuccin-cursors.frappeBlue;
size = 24;
x11 = {
enable = true;
defaultCursor = "Catppuccin-Frappe-Blue-Cursors";
};
};
programs.nnn = { programs.nnn = {
enable = true; enable = true;
#plugins = { "launch", "imgview" }; #plugins = { "launch", "imgview" };
@ -204,19 +215,109 @@
}; };
}; };
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
KUBECONFIG = "/home/insert/Desktop/k3s.yaml";
QT_QPA_PLATFORMTHEME = "qt5ct";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
WLR_NO_HARDWARE_CURSORS = "1";
NO_HARDWARE_CURSORS = "true";
};
programs.swaylock.enable = false; programs.swaylock.enable = false;
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
wrapperFeatures.gtk = true;
checkConfig = true;
extraOptions = [ "--unsupported-gpu" ]; extraOptions = [ "--unsupported-gpu" ];
config = rec { config = rec {
modifier = "Mod1"; menu = "wofi --show drun --allow-images";
# Use kitty as default terminal defaultWorkspace = "workspace number 1";
terminal = "kitty"; floating.border = 4;
window.border = 4;
terminal = "kitty";
gaps = {
inner = 5;
outer = 10;
};
colors = {
background = "#303446";
focused = {
childBorder = "#ca9ee6";
background = "#ca9ee6";
text = "#c6d0f5";
indicator = "#ca9ee6";
border = "#ca9ee6";
};
unfocused = {
childBorder = "#949cbb";
background = "#626880";
text = "#c6d0f5";
indicator = "#949cbb";
border = "#949cbb";
};
focusedInactive = {
childBorder = "#949cbb";
background = "#626880";
text = "#c6d0f5";
indicator = "#949cbb";
border = "#949cbb";
};
urgent = {
childBorder = "#ef9f76";
background = "#626880";
text = "#ef9f76";
indicator = "#ef9f76";
border = "#ef9f76";
};
placeholder = {
childBorder = "#949cbb";
background = "#626880";
text = "#c6d0f5";
indicator = "#949cbb";
border = "#949cbb";
};
};
startup = [ startup = [
# Launch Firefox on start # Launch Firefox on start
{command = "wayvnc 100.120.210.58";} {command = "wayvnc 100.120.210.58";}
{command = "swww-daemon";}
{command = "mako";}
#{command = "watch waybar";}
];
bars = [
{command = "waybar"; position = "top"; }
]; ];
}; };
#https://github.com/catppuccin/i3/blob/main/themes/catppuccin-frappe
extraConfig = ''set $rosewater #f2d5cf
set $flamingo #eebebe
set $pink #f4b8e4
set $mauve #ca9ee6
set $red #e78284
set $maroon #ea999c
set $peach #ef9f76
set $yellow #e5c890
set $green #a6d189
set $teal #81c8be
set $sky #99d1db
set $sapphire #85c1dc
set $blue #8caaee
set $lavender #babbf1
set $text #c6d0f5
set $subtext1 #b5bfe2
set $subtext0 #a5adce
set $overlay2 #949cbb
set $overlay1 #838ba7
set $overlay0 #737994
set $surface2 #626880
set $surface1 #51576d
set $surface0 #414559
set $base #303446
set $mantle #292c3c
set $crust #232634'';
}; };
home.stateVersion = "23.05"; home.stateVersion = "23.05";

View file

@ -5,8 +5,10 @@
environment.systemPackages = [ environment.systemPackages = [
pkgs.acpi pkgs.acpi
pkgs.brightnessctl pkgs.brightnessctl
pkgs.cifs-utils
]; ];
home-manager.users.insert.wayland.windowManager.sway.config.modifier = "Mod4";
home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = { home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = {
text = ''autogenerated = 0 # remove this line to remove the warning text = ''autogenerated = 0 # remove this line to remove the warning

View file

@ -106,6 +106,8 @@
/home/insert/Documents/personal-vaultwarden/cert.pem /home/insert/Documents/personal-vaultwarden/cert.pem
]; ];
home-manager.users.insert.wayland.windowManager.sway.config.modifier = "Mod1";
home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = { home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = {
text = ''autogenerated = 0 # remove this line to remove the warning text = ''autogenerated = 0 # remove this line to remove the warning