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;
settings = {
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";
};
};
@ -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
services.xserver = {

View file

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

105
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 = {
enable = true;
#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;
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
checkConfig = true;
extraOptions = [ "--unsupported-gpu" ];
config = rec {
modifier = "Mod1";
# Use kitty as default terminal
menu = "wofi --show drun --allow-images";
defaultWorkspace = "workspace number 1";
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 = [
# Launch Firefox on start
{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";

View file

@ -5,8 +5,10 @@
environment.systemPackages = [
pkgs.acpi
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" = {
text = ''autogenerated = 0 # remove this line to remove the warning

View file

@ -106,6 +106,8 @@
/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" = {
text = ''autogenerated = 0 # remove this line to remove the warning