integrated some of stolen sway config
This commit is contained in:
parent
7e88d2fd91
commit
73083cce27
2 changed files with 141 additions and 29 deletions
|
|
@ -81,7 +81,8 @@
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
xorg.xhost
|
xorg.xhost
|
||||||
#dconf # redundant, adding for completeness
|
#dconf # redundant, adding for completeness
|
||||||
dconf-editor # For editing dconf settings graphically
|
dconf-editor # For editing dconf settings graphically
|
||||||
|
qt5.wayland
|
||||||
#xdg-utils
|
#xdg-utils
|
||||||
#xdg-desktop-portal
|
#xdg-desktop-portal
|
||||||
#xdg-desktop-portal-gtk
|
#xdg-desktop-portal-gtk
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,70 @@
|
||||||
{
|
{ self, inputs, outputs, lib, config, pkgs, ... }:
|
||||||
self,
|
with lib;
|
||||||
inputs,
|
with pkgs;
|
||||||
outputs,
|
let
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
|
|
||||||
|
left = "h";
|
||||||
|
down = "j";
|
||||||
|
up = "k";
|
||||||
|
right = "l";
|
||||||
|
bg-color = "#424242";
|
||||||
|
inactive-bg-color = "#424242";
|
||||||
|
text-color = "#4f97d7";
|
||||||
|
inactive-text-color = "#676E7D";
|
||||||
|
urgent-bg-color = "#E53935";
|
||||||
|
|
||||||
|
colorSchemeDark = rec {
|
||||||
|
primary = {
|
||||||
|
normal = {
|
||||||
|
background = "181818";
|
||||||
|
foreground = "b9b9b9";
|
||||||
|
};
|
||||||
|
bright = {
|
||||||
|
background = bright.black;
|
||||||
|
foreground = bright.white;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
normal = {
|
||||||
|
black = "252525";
|
||||||
|
gray = "5b5b5b";
|
||||||
|
red = "ed4a46";
|
||||||
|
green = "70b433";
|
||||||
|
yellow = "dbb32d";
|
||||||
|
blue = "368aeb";
|
||||||
|
magenta = "eb6eb7";
|
||||||
|
cyan = "3fc5b7";
|
||||||
|
white = "777777";
|
||||||
|
};
|
||||||
|
bright = {
|
||||||
|
black = "3b3b3b";
|
||||||
|
gray = "7b7b7b";
|
||||||
|
red = "ff5e56";
|
||||||
|
green = "83c746";
|
||||||
|
yellow = "efc541";
|
||||||
|
blue = "4f9cfe";
|
||||||
|
magenta = "ff81ca";
|
||||||
|
cyan = "56d8c9";
|
||||||
|
white = "dedede";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
colorScheme = colorSchemeDark;
|
||||||
|
font = "Roboto";
|
||||||
|
|
||||||
|
bgColor = colorScheme.primary.normal.background;
|
||||||
|
fgColor = colorScheme.primary.bright.foreground;
|
||||||
|
acColor = colorScheme.normal.red;
|
||||||
|
acColor2 = colorScheme.normal.yellow;
|
||||||
|
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
#./sway-style.nix
|
#./sway-style.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraSessionCommands = "";
|
||||||
|
extraConfig = "";
|
||||||
xwayland = true;
|
xwayland = true;
|
||||||
checkConfig = false;
|
checkConfig = false;
|
||||||
package = pkgs.swayfx;
|
package = pkgs.swayfx;
|
||||||
|
|
@ -23,41 +74,101 @@
|
||||||
};
|
};
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#xdgAutostart = true;
|
#xdgAutostart = true;
|
||||||
#extraCommands = [
|
#extraCommands = [
|
||||||
#];
|
#];
|
||||||
#variables = [
|
#variables = [
|
||||||
#];
|
#];
|
||||||
};
|
};
|
||||||
|
|
||||||
config = rec {
|
config = rec {
|
||||||
modifier = "Mod4";
|
|
||||||
## Use Wofi as menu
|
## Use Wofi as menu
|
||||||
menu = "wofi";
|
menu = "wofi";
|
||||||
## Use kitty as default terminal
|
## Use kitty as default terminal
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
startup = [
|
## Startup applications and scripts
|
||||||
{command = "startup";}
|
startup = [ { command = "startup"; } { command = "kitty"; } ];
|
||||||
{command = "kitty";}
|
|
||||||
];
|
bars = [{ "command" = "${waybar}/bin/waybar"; }];
|
||||||
|
|
||||||
focus = {
|
focus = {
|
||||||
followMouse = true;
|
followMouse = true;
|
||||||
mouseWarping = false;
|
mouseWarping = false;
|
||||||
newWindow = "smart";
|
newWindow = "smart";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
keybindings = { };
|
||||||
|
|
||||||
#extraConfig = {
|
modes = {
|
||||||
#};
|
resize = {
|
||||||
|
Escape = "mode default";
|
||||||
#extraSessionCommands = ''
|
Return = "mode default";
|
||||||
#'';
|
"${down}" = "resize grow height 10 px or 10 ppt";
|
||||||
|
"${left}" = "resize shrink width 10 px or 10 ppt";
|
||||||
|
"${right}" = "resize grow width 10 px or 10 ppt";
|
||||||
|
"${up}" = "resize shrink height 10 px or 10 ppt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
modifier = "Mod4";
|
||||||
|
|
||||||
|
window = { border = 0; };
|
||||||
|
|
||||||
|
floating = {
|
||||||
|
modifier = "Mod4";
|
||||||
|
border = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts = {
|
||||||
|
names = [ "Spleen" ];
|
||||||
|
size = 9.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
focused = {
|
||||||
|
border = bg-color;
|
||||||
|
childBorder = bg-color;
|
||||||
|
background = bg-color;
|
||||||
|
text = text-color;
|
||||||
|
indicator = "#00ff00";
|
||||||
|
};
|
||||||
|
unfocused = {
|
||||||
|
border = inactive-bg-color;
|
||||||
|
childBorder = inactive-bg-color;
|
||||||
|
background = inactive-bg-color;
|
||||||
|
text = inactive-text-color;
|
||||||
|
indicator = "#00ff00";
|
||||||
|
};
|
||||||
|
focusedInactive = {
|
||||||
|
border = inactive-bg-color;
|
||||||
|
childBorder = inactive-bg-color;
|
||||||
|
background = inactive-bg-color;
|
||||||
|
text = inactive-text-color;
|
||||||
|
indicator = "#00ff00";
|
||||||
|
};
|
||||||
|
urgent = {
|
||||||
|
border = urgent-bg-color;
|
||||||
|
childBorder = urgent-bg-color;
|
||||||
|
background = urgent-bg-color;
|
||||||
|
text = text-color;
|
||||||
|
indicator = "#00ff00";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home = {
|
||||||
|
packages = with pkgs; [ ];
|
||||||
|
|
||||||
];
|
sessionVariables = {
|
||||||
|
XDG_SESSION_TYPE = "wayland";
|
||||||
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
|
SDL_VIDEODRIVER = "wayland";
|
||||||
|
# needs qt5.qtwayland in systemPackages
|
||||||
|
QT_QPA_PLATFORM = "wayland";
|
||||||
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue