wip: customize nvf, sway config modifications
This commit is contained in:
@@ -18,17 +18,23 @@
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
# useSystemClipboard = true;
|
||||
|
||||
# setting some nvim settings that are not in nvf
|
||||
luaConfigPost = ''
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.smarttab = true
|
||||
vim.opt.scrolloff = 20;
|
||||
vim.opt.scrolloff = 12
|
||||
vim.opt.sidescrolloff = 8
|
||||
vim.opt.wrap = false
|
||||
vim.opt.linebreak = false
|
||||
vim.opt.number = true
|
||||
vim.opt.relativgnumber = true
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.tabline = 2
|
||||
'';
|
||||
|
||||
# clipboard configuration
|
||||
@@ -132,7 +138,7 @@
|
||||
enable = true;
|
||||
lsp = {
|
||||
enable = true;
|
||||
server = "csharp_ls";
|
||||
server = "omnisharp";
|
||||
};
|
||||
treesitter.enable = true;
|
||||
};
|
||||
@@ -191,16 +197,21 @@
|
||||
|
||||
# tabline configuration
|
||||
tabline = {
|
||||
nvimBufferline.enable = true;
|
||||
nvimBufferline.mappings = {
|
||||
closeCurrent = "<leader>x";
|
||||
cycleNext = "<tab>";
|
||||
cyclePrevious = "<S-tab>";
|
||||
moveNext = null;
|
||||
movePrevious = null;
|
||||
sortByDirectory = null;
|
||||
sortByExtension = null;
|
||||
sortById = null;
|
||||
nvimBufferline = {
|
||||
enable = true;
|
||||
options = {
|
||||
numbers = "none";
|
||||
};
|
||||
mappings = {
|
||||
closeCurrent = "<leader>x";
|
||||
cycleNext = "<tab>";
|
||||
cyclePrevious = "<S-tab>";
|
||||
moveNext = null;
|
||||
movePrevious = null;
|
||||
sortByDirectory = null;
|
||||
sortByExtension = null;
|
||||
sortById = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
253
home/sway.nix
253
home/sway.nix
@@ -6,14 +6,6 @@
|
||||
dirs = {
|
||||
defaults = ../defaults;
|
||||
};
|
||||
|
||||
# Derived from subprojects/cava.wrap
|
||||
libcava.src = pkgs.fetchFromGitHub {
|
||||
owner = "LukashonakV";
|
||||
repo = "cava";
|
||||
rev = "0.10.3";
|
||||
hash = "sha256-ZDFbI69ECsUTjbhlw2kHRufZbQMu+FQSMmncCJ5pagg=";
|
||||
};
|
||||
in {
|
||||
wayland.windowManager.sway = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
@@ -25,142 +17,131 @@ in {
|
||||
gtk = true;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."sway/config".source = lib.mkForce (dirs.defaults + /sway/config);
|
||||
xdg.configFile."waybar/config".source = lib.mkForce (dirs.defaults + /waybar/config);
|
||||
xdg.configFile."waybar/style.css".source = lib.mkForce (dirs.defaults + /waybar/style.css);
|
||||
|
||||
programs.wofi = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
settings = {
|
||||
width=600;
|
||||
height=350;
|
||||
location="center";
|
||||
show="drun";
|
||||
prompt="Search...";
|
||||
filter_rate=100;
|
||||
allow_markup=true;
|
||||
no_actions=true;
|
||||
halign="fill";
|
||||
orientation="vertical";
|
||||
content_halign="fill";
|
||||
insensitive=true;
|
||||
allow_images=true;
|
||||
image_size=40;
|
||||
gtk_dark=true;
|
||||
xdg = {
|
||||
configFile = {
|
||||
"sway/config".source = lib.mkForce (dirs.defaults + /sway/config);
|
||||
"waybar/config".source = lib.mkForce (dirs.defaults + /waybar/config);
|
||||
"waybar/style.css".source = lib.mkForce (dirs.defaults + /waybar/style.css);
|
||||
};
|
||||
style = ''
|
||||
@define-color selected-text #8caaee;
|
||||
@define-color text #c6d0f5;
|
||||
@define-color base #24273a;
|
||||
|
||||
* {
|
||||
font-family: 'Monaspace Krypton 9', monospace;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
window {
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: @base;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#input:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 5px;
|
||||
border: none;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#entry {
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#entry:selected #text {
|
||||
color: @selected-text;
|
||||
}
|
||||
|
||||
#entry image {
|
||||
-gtk-icon-transform: scale(0.7);
|
||||
}
|
||||
'';
|
||||
};
|
||||
programs.swaylock.enable = pkgs.stdenv.isLinux;
|
||||
|
||||
|
||||
services.mako = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
settings = {
|
||||
text-color="#cad3f5";
|
||||
border-color="#c6d0f5";
|
||||
background-color="#24273a";
|
||||
width=420;
|
||||
height=110;
|
||||
padding=10;
|
||||
border-size=2;
|
||||
font="Monaspace Krypton 9";
|
||||
anchor="top-right";
|
||||
default-timeout=5000;
|
||||
max-icon-size=32;
|
||||
text-color = "#cad3f5";
|
||||
border-color = "#c6d0f5";
|
||||
background-color = "#24273a";
|
||||
width = 420;
|
||||
height = 110;
|
||||
padding = 10;
|
||||
border-size = 2;
|
||||
font = "Monaspace Krypton 9";
|
||||
anchor = "top-right";
|
||||
default-timeout = 5000;
|
||||
max-icon-size = 32;
|
||||
};
|
||||
};
|
||||
|
||||
programs.waybar = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
systemd.enable = true;
|
||||
|
||||
package = pkgs.waybar.overrideAttrs (old: {
|
||||
version = "0.11.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Alexays";
|
||||
repo = "Waybar";
|
||||
rev = "d56dd6ee7fdf8c5ba4e90790af62b7f7829d3a47";
|
||||
sha256 = "sha256-3lc0voMU5RS+mEtxKuRayq/uJO09X7byq6Rm5NZohq8=";
|
||||
fetchSubmodules = true;
|
||||
programs = {
|
||||
wofi = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
settings = {
|
||||
width = 600;
|
||||
height = 350;
|
||||
location = "center";
|
||||
show = "drun";
|
||||
prompt = "Search...";
|
||||
filter_rate = 100;
|
||||
allow_markup = true;
|
||||
no_actions = true;
|
||||
halign = "fill";
|
||||
orientation = "vertical";
|
||||
content_halign = "fill";
|
||||
insensitive = true;
|
||||
allow_images = true;
|
||||
image_size = 40;
|
||||
gtk_dark = true;
|
||||
};
|
||||
style = ''
|
||||
@define-color selected-text #8caaee;
|
||||
@define-color text #c6d0f5;
|
||||
@define-color base #24273a;
|
||||
|
||||
buildInputs = old.buildInputs ++ [ pkgs.fftw pkgs.libcava ];
|
||||
# mesonFlags = (old.mesonFlags or []) ++ [ "-Dcava=disabled" ];
|
||||
});
|
||||
* {
|
||||
font-family: 'Monaspace Krypton 9', monospace;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
window {
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: @base;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#input:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 5px;
|
||||
border: none;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#entry {
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#entry:selected #text {
|
||||
color: @selected-text;
|
||||
}
|
||||
|
||||
#entry image {
|
||||
-gtk-icon-transform: scale(0.7);
|
||||
}
|
||||
'';
|
||||
};
|
||||
swaylock.enable = pkgs.stdenv.isLinux;
|
||||
|
||||
waybar = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
systemd.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user