Compare commits
No commits in common. "5534fb43219d993f6d81c35319e92fb33e41de33" and "0a41229092a724587f0526b34034c2a11ed09f9e" have entirely different histories.
5534fb4321
...
0a41229092
176
flake.lock
176
flake.lock
|
@ -21,6 +21,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"crane": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"helix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1701025348,
|
||||||
|
"narHash": "sha256-42GHmYH+GF7VjwGSt+fVT1CQuNpGanJbNgVHTAZppUM=",
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"rev": "42afaeb1a0325194a7cdb526332d2cb92fddd07b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"darwin": {
|
"darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -114,6 +135,24 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1694529238,
|
||||||
|
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_3"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701680307,
|
"lastModified": 1701680307,
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||||
|
@ -150,6 +189,28 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"helix": {
|
||||||
|
"inputs": {
|
||||||
|
"crane": "crane",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"rust-overlay": "rust-overlay"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708526834,
|
||||||
|
"narHash": "sha256-dcE2cal0dLwomM977zsZpL/i9O3zloaMPkC4oor2yYc=",
|
||||||
|
"owner": "helix-editor",
|
||||||
|
"repo": "helix",
|
||||||
|
"rev": "98ebeeebd8c7462409f82d34ff4ac0a7ae9116c7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "helix-editor",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "helix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -178,11 +239,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708591310,
|
"lastModified": 1708558280,
|
||||||
"narHash": "sha256-8mQGVs8JccWTnORgoLOTh9zvf6Np+x2JzhIc+LDcJ9s=",
|
"narHash": "sha256-w1ns8evB6N9VTrAojcdXLWenROtd77g3vyClrqeFdG8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0e0e9669547e45ea6cca2de4044c1a384fd0fe55",
|
"rev": "0b69d574162cfa6eb7919d5614a48d0185550891",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -199,11 +260,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708558280,
|
"lastModified": 1707919853,
|
||||||
"narHash": "sha256-w1ns8evB6N9VTrAojcdXLWenROtd77g3vyClrqeFdG8=",
|
"narHash": "sha256-qxmBGDzutuJ/tsX4gp+Mr7fjxOZBbeT9ixhS5o4iFOw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0b69d574162cfa6eb7919d5614a48d0185550891",
|
"rev": "043ba285c6dc20f36441d48525402bcb9743c498",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -220,11 +281,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708231718,
|
"lastModified": 1707707289,
|
||||||
"narHash": "sha256-IZdieFWvhBkxoOFMDejqLUYqD94WN6k0YSpw0DFy+4g=",
|
"narHash": "sha256-YuDt/eSTXMEHv8jS8BEZJgqCcG8Tr3cyqaZjJFXZHsw=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "0e6857fa1d632637488666c08e7b02c08e3178f8",
|
"rev": "44f50a5ecaab72a61d5fd8e5c5717bc4bf9c25dd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -241,11 +302,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708786913,
|
"lastModified": 1708527729,
|
||||||
"narHash": "sha256-48S/znQt945Vt49VzJf+3jnSaOZnGy7yDkvuywCJxsE=",
|
"narHash": "sha256-quEEqEH4ftM9VFMB4kRzcjcNIlRKZ++DKNwmwR4kWq4=",
|
||||||
"owner": "doronbehar",
|
"owner": "doronbehar",
|
||||||
"repo": "nix-matlab",
|
"repo": "nix-matlab",
|
||||||
"rev": "54d0aeceaab86b56bcd2dea4c6c0238d36178fa2",
|
"rev": "ecd097ea7d4fefc4fc51e3402578a12ee7e312f7",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -256,11 +317,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708594753,
|
"lastModified": 1708091350,
|
||||||
"narHash": "sha256-c/gH7iXS/IYH9NrFOT+aJqTq+iEBkvAkpWuUHGU3+f0=",
|
"narHash": "sha256-o28BJYi68qqvHipT7V2jkWxDiMS1LF9nxUsou+eFUPQ=",
|
||||||
"owner": "NixOs",
|
"owner": "NixOs",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958",
|
"rev": "106d3fec43bcea19cb2e061ca02531d54b542ce3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -288,11 +349,27 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708655239,
|
"lastModified": 1700794826,
|
||||||
"narHash": "sha256-ZrP/yACUvDB+zbqYJsln4iwotbH6CTZiTkANJ0AgDv4=",
|
"narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cbc4211f0afffe6dfd2478a62615dd5175a13f9a",
|
"rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708475490,
|
||||||
|
"narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0e74ca98a74bc7270d28838369593635a5db3260",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -314,11 +391,11 @@
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708614940,
|
"lastModified": 1708562079,
|
||||||
"narHash": "sha256-36muWApzetaV4WAEeqKsWxW4k2l0u3E841RI4sHPiz0=",
|
"narHash": "sha256-tTTT/7411SIDdmdse2TsaF4Td6oIhrN28asyI4htxEI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "060a05138ca1a46fc0a0f79ef27f080cac57a59e",
|
"rev": "66c019d638aae024d7ad36fcf608ee3181ffeeff",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -329,11 +406,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708793180,
|
"lastModified": 1708564227,
|
||||||
"narHash": "sha256-TCu1L+Msied0BLUDXStChcz3e1yvd2no/DxLjyffYVI=",
|
"narHash": "sha256-6uKGopOaw+pdkdq1ooZDCZ8rjjRQ1YHpHWnIBW8D9/U=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nur",
|
"repo": "nur",
|
||||||
"rev": "6eb0394958661a7b8a16e7e670170d1908631d8f",
|
"rev": "65a4caef6f81f8c48f24117df7358c200d792d35",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -345,7 +422,7 @@
|
||||||
"pre-commit-hooks": {
|
"pre-commit-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_3",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils_2",
|
||||||
"gitignore": "gitignore",
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
|
@ -357,11 +434,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708018599,
|
"lastModified": 1707297608,
|
||||||
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=",
|
"narHash": "sha256-ADjo/5VySGlvtCW3qR+vdFF4xM9kJFlRDqcC9ZGI8EA=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431",
|
"rev": "0db2e67ee49910adfa13010e7f012149660af7f0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -373,14 +450,40 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"helix": "helix",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-matlab": "nix-matlab",
|
"nix-matlab": "nix-matlab",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nur": "nur"
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": [
|
||||||
|
"helix",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"helix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1701137803,
|
||||||
|
"narHash": "sha256-0LcPAdql5IhQSUXJx3Zna0dYTgdIoYO7zUrsKgiBd04=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "9dd940c967502f844eacea52a61e9596268d4f70",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
@ -410,6 +513,21 @@
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
@ -6,14 +6,17 @@
|
||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
# Nix community's cache server
|
# Nix community's cache server
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
"https://helix.cachix.org"
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
helix.url = "github:helix-editor/helix/master";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -37,6 +40,7 @@
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
helix,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
nur,
|
nur,
|
||||||
agenix,
|
agenix,
|
||||||
|
|
53
users/tacocat/helix/default.nix
Normal file
53
users/tacocat/helix/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
# config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./languages.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.helix = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.helix.packages.${pkgs.system}.default;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
clang-tools
|
||||||
|
marksman
|
||||||
|
nil
|
||||||
|
nodePackages.bash-language-server
|
||||||
|
shellcheck
|
||||||
|
texlab
|
||||||
|
tectonic
|
||||||
|
lua-language-server
|
||||||
|
zathura
|
||||||
|
vhdl-ls
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
theme = "catppuccin_frappe";
|
||||||
|
editor = {
|
||||||
|
line-number = "relative";
|
||||||
|
lsp.display-messages = true;
|
||||||
|
scrolloff = 10;
|
||||||
|
middle-click-paste = false;
|
||||||
|
cursorline = true;
|
||||||
|
auto-format = false;
|
||||||
|
idle-timeout = 400;
|
||||||
|
color-modes = true;
|
||||||
|
soft-wrap.enable = true;
|
||||||
|
whitespace = {
|
||||||
|
render = {
|
||||||
|
space = "none";
|
||||||
|
tab = "none";
|
||||||
|
newline = "none";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indent-guides = {
|
||||||
|
render = true;
|
||||||
|
character = "▏";
|
||||||
|
rainbow-option = "dim";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
55
users/tacocat/helix/languages.nix
Normal file
55
users/tacocat/helix/languages.nix
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.helix.languages = {
|
||||||
|
language = [
|
||||||
|
{
|
||||||
|
name = "latex";
|
||||||
|
indent = {
|
||||||
|
tab-width = 2;
|
||||||
|
unit = "\t";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "c";
|
||||||
|
indent = {
|
||||||
|
tab-width = 2;
|
||||||
|
unit = "\t";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
language-server = {
|
||||||
|
nil = {
|
||||||
|
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
||||||
|
};
|
||||||
|
|
||||||
|
texlab = {
|
||||||
|
config.texlab = {
|
||||||
|
forwardSearch.executable = "zathura";
|
||||||
|
forwardSearch.args = ["--synctex-forward" "%l:1:%f" "%p"];
|
||||||
|
build = {
|
||||||
|
executable = "tectonic";
|
||||||
|
onSave = true;
|
||||||
|
forwardSearchAfter = true;
|
||||||
|
auxDirectory = "build";
|
||||||
|
logDirectory = "build";
|
||||||
|
pdfDirectory = "build";
|
||||||
|
args = [
|
||||||
|
"-X"
|
||||||
|
"compile"
|
||||||
|
"%f"
|
||||||
|
"--synctex"
|
||||||
|
"--keep-logs"
|
||||||
|
"--keep-intermediates"
|
||||||
|
"--outdir"
|
||||||
|
"build"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
./programs
|
./programs
|
||||||
./services
|
./services
|
||||||
./shell
|
./shell
|
||||||
|
./helix
|
||||||
./wayland
|
./wayland
|
||||||
./email.nix
|
./email.nix
|
||||||
./lf
|
./lf
|
||||||
|
@ -23,12 +24,11 @@
|
||||||
"$HOME/.dotnet"
|
"$HOME/.dotnet"
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
fd
|
|
||||||
ripgrep
|
|
||||||
matlab
|
matlab
|
||||||
octave
|
octave
|
||||||
mpv
|
mpv
|
||||||
krita
|
krita
|
||||||
|
notesnook
|
||||||
tree
|
tree
|
||||||
gimp
|
gimp
|
||||||
r2modman
|
r2modman
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
discord
|
discord
|
||||||
libreoffice
|
libreoffice
|
||||||
notify-desktop
|
notify-desktop
|
||||||
|
texlive.combined.scheme-medium
|
||||||
libsixel
|
libsixel
|
||||||
aspell
|
aspell
|
||||||
aspellDicts.en
|
aspellDicts.en
|
||||||
|
|
|
@ -1,26 +1,19 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
colorschemes.ayu = {
|
colorschemes.nord = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
borders = true;
|
||||||
mirage = true;
|
contrast = true;
|
||||||
overrides = {
|
|
||||||
LineNr = { fg = "#707A8C"; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
clipboard = {
|
clipboard = {
|
||||||
providers.wl-copy.enable = true;
|
providers.wl-copy.enable = true;
|
||||||
register = "unnamedplus";
|
register = "unnamedplus";
|
||||||
};
|
};
|
||||||
extraPackages = with pkgs; [
|
|
||||||
latexrun
|
|
||||||
zathura
|
|
||||||
];
|
|
||||||
options = {
|
options = {
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
|
@ -36,123 +29,22 @@
|
||||||
showmode = false;
|
showmode = false;
|
||||||
};
|
};
|
||||||
plugins = {
|
plugins = {
|
||||||
telescope = {
|
lightline = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
colorscheme = "nord";
|
||||||
};
|
};
|
||||||
comment-nvim = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
markdown-preview = {
|
|
||||||
enable = true;
|
|
||||||
browser = "firefox";
|
|
||||||
};
|
|
||||||
lualine = {
|
|
||||||
enable = true;
|
|
||||||
sectionSeparators = {
|
|
||||||
left = "";
|
|
||||||
right = "";
|
|
||||||
};
|
|
||||||
componentSeparators = {
|
|
||||||
left = "╱";
|
|
||||||
right = "╲";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
nil_ls = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nvim-cmp = {
|
|
||||||
enable = true;
|
|
||||||
sources = [
|
|
||||||
{ name = "nvim_lsp"; }
|
|
||||||
{ name = "treesitter"; }
|
|
||||||
{ name = "luasnip"; }
|
|
||||||
{ name = "latex_symbols"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
];
|
|
||||||
snippet.expand = "luasnip";
|
|
||||||
completion = {
|
|
||||||
autocomplete = false;
|
|
||||||
};
|
|
||||||
mapping = {
|
|
||||||
"<C-Space>" = "cmp.mapping.complete()";
|
|
||||||
"<C-e>" = "cmp.mapping.close()";
|
|
||||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
|
||||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
|
||||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
|
||||||
"<C-p>" = {
|
|
||||||
action = "cmp.mapping.select_prev_item()";
|
|
||||||
modes = [
|
|
||||||
"i"
|
|
||||||
"s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"<C-n>" = {
|
|
||||||
action = "cmp.mapping.select_next_item()";
|
|
||||||
modes = [
|
|
||||||
"i"
|
|
||||||
"s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
luasnip = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
friendly-snippets.enable = true;
|
|
||||||
gitsigns = {
|
gitsigns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nixvimInjections = true;
|
nixvimInjections = true;
|
||||||
indent = true;
|
|
||||||
disabledLanguages = [
|
|
||||||
"latex"
|
|
||||||
];
|
|
||||||
ignoreInstall = [
|
|
||||||
"latex"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
vimtex = {
|
|
||||||
enable = true;
|
|
||||||
texlivePackage = pkgs.texliveFull;
|
|
||||||
settings = {
|
|
||||||
compiler_method = "latexrun";
|
|
||||||
view_method = "zathura";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
# filetype.extension = {
|
||||||
files = {
|
# ".md" = ''
|
||||||
"ftplugin/nix.lua" = {
|
# vim.bo.spell = true
|
||||||
options = {
|
# '';
|
||||||
expandtab = true;
|
# };
|
||||||
shiftwidth = 2;
|
|
||||||
tabstop = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"ftplugin/markdown.lua" = {
|
|
||||||
options = {
|
|
||||||
spell = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"ftplugin/tex.lua" = {
|
|
||||||
options = {
|
|
||||||
spell = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
action = "<cmd>nohl<CR>";
|
|
||||||
key = "<C-q>";
|
|
||||||
options.silent = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./tiny.nix
|
./tiny.nix
|
||||||
|
./vim.nix
|
||||||
./radioboat.nix
|
./radioboat.nix
|
||||||
./zoxide.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
escapeTime = 0;
|
escapeTime = 0;
|
||||||
clock24 = true;
|
clock24 = true;
|
||||||
mouse = true;
|
mouse = true;
|
||||||
keyMode = "vi";
|
|
||||||
newSession = true;
|
newSession = true;
|
||||||
shell = "${pkgs.fish}/bin/fish";
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
sensibleOnTop = true;
|
sensibleOnTop = true;
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
set -sa terminal-features ',foot:RGB'
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
99
users/tacocat/programs/vim.nix
Normal file
99
users/tacocat/programs/vim.nix
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
{pkgs, ...}: let
|
||||||
|
rose-pine-vim = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "rose-pine-vim";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "rose-pine";
|
||||||
|
repo = "vim";
|
||||||
|
rev = "d149980cfa5cdec487df23b2e9963c3256f3a9f3";
|
||||||
|
sha256 = "a+RCmgSG+snwBVQCzSnp8wVxSoQcLqoJjnTiDviTGqc=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vim-spell-en-utf8-dictionary = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/vim/runtime/spell/en.utf-8.spl";
|
||||||
|
sha256 = "0w1h9lw2c52is553r8yh5qzyc9dbbraa57w9q0r9v8xn974vvjpy";
|
||||||
|
};
|
||||||
|
|
||||||
|
vim-spell-en-utf8-suggestions = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/vim/runtime/spell/en.utf-8.sug";
|
||||||
|
sha256 = "1v1jr4rsjaxaq8bmvi92c93p4b14x2y1z95zl7bjybaqcmhmwvjv";
|
||||||
|
};
|
||||||
|
|
||||||
|
vim-spell-en-latin1-dictionary = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/vim/runtime/spell/en.latin1.spl";
|
||||||
|
sha256 = "0i8q2si2bm8c0556j3c0gjin3bixgs055yqqk1irvz4wszy9w3b2";
|
||||||
|
};
|
||||||
|
|
||||||
|
vim-spell-en-latin1-suggestions = builtins.fetchurl {
|
||||||
|
url = "http://ftp.vim.org/vim/runtime/spell/en.latin1.sug";
|
||||||
|
sha256 = "00ibcbj2b2krwd5zl9zl671db44k3fl59sz1yymb9ydkpkj9gpp6";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
programs.vim = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
copyindent = true;
|
||||||
|
expandtab = false;
|
||||||
|
hidden = true;
|
||||||
|
history = 100;
|
||||||
|
ignorecase = false;
|
||||||
|
modeline = true;
|
||||||
|
mousefocus = false;
|
||||||
|
number = true;
|
||||||
|
relativenumber = true;
|
||||||
|
shiftwidth = 2;
|
||||||
|
tabstop = 2;
|
||||||
|
};
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
everforest
|
||||||
|
catppuccin-vim
|
||||||
|
sonokai
|
||||||
|
vim-colors-solarized
|
||||||
|
gruvbox
|
||||||
|
rose-pine-vim
|
||||||
|
terminus
|
||||||
|
vim-fugitive
|
||||||
|
vim-gitgutter
|
||||||
|
tabular
|
||||||
|
vim-markdown
|
||||||
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
if has('termguicolors')
|
||||||
|
set termguicolors
|
||||||
|
endif
|
||||||
|
set background=dark
|
||||||
|
colorscheme rosepine_moon
|
||||||
|
|
||||||
|
set scrolloff=5
|
||||||
|
set hlsearch
|
||||||
|
set signcolumn=yes
|
||||||
|
set updatetime=100
|
||||||
|
set cursorline
|
||||||
|
set autoindent
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
|
nnoremap <C-@> :call system("wl-copy", @")<CR>
|
||||||
|
nnoremap <C-q> :nohlsearch<CR>
|
||||||
|
|
||||||
|
let g:vim_markdown_folding_disabled = 1
|
||||||
|
let g:vim_markdown_math = 1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".vim/after/plugin/terminus.vim".text = ''
|
||||||
|
let &t_SI="\e[6 q"
|
||||||
|
let &t_EI="\e[2 q"
|
||||||
|
let &t_Cs = "\e[4:3m"
|
||||||
|
let &t_Ce = "\e[4:0m"
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file.".vim/after/ftplugin/markdown.vim".text = ''
|
||||||
|
setlocal spell spelllang=en_us
|
||||||
|
setlocal nomodeline
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file."/.vim/spell/en.utf-8.spl".source = vim-spell-en-utf8-dictionary;
|
||||||
|
home.file."/.vim/spell/en.utf-8.sug".source = vim-spell-en-utf8-suggestions;
|
||||||
|
home.file."/.vim/spell/en.latin1.spl".source = vim-spell-en-latin1-dictionary;
|
||||||
|
home.file."/.vim/spell/en.latin1.sug".source = vim-spell-en-latin1-suggestions;
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
{...}: {
|
|
||||||
programs.zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{pkgs, ...}: {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
@ -11,5 +11,19 @@
|
||||||
tmux attach
|
tmux attach
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
xilinx-env = "distrobox enter --additional-flags '--env _JAVA_AWT_WM_NONREPARENTING=1' arch";
|
||||||
|
};
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "z";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "jethrokuan";
|
||||||
|
repo = "z";
|
||||||
|
rev = "85f863f20f24faf675827fb00f3a4e15c7838d76";
|
||||||
|
sha256 = "+FUBM7CodtZrYKqU542fQD+ZDGrd2438trKM0tIESs0=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
188
users/tacocat/wayland/river/init
Executable file
188
users/tacocat/wayland/river/init
Executable file
|
@ -0,0 +1,188 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
|
||||||
|
|
||||||
|
# riverctl spawn "dbus-update-activation-environment SEATD_SOCK DISPLAY WAYLAND _DISPLAY XDG_CURRENT_DESKTOP=river"
|
||||||
|
riverctl spawn "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP"
|
||||||
|
|
||||||
|
riverctl map normal Super+Shift Return spawn 'foot'
|
||||||
|
riverctl map normal Super D spawn 'rofi -show drun'
|
||||||
|
|
||||||
|
# firefox
|
||||||
|
riverctl map normal Super+Shift F spawn "firefox"
|
||||||
|
|
||||||
|
# screenshot utility
|
||||||
|
riverctl map normal None Print spawn 'IMG=~/Pictures/screenshots/$(date | sed "s/\s/-/g" | sed "s/--/-/g").png&&grim -g "$(slurp)" $IMG && cat $IMG | wl-copy && notify-send "Screenshot has been saved and copied to your clipboard" -a "grim" -u normal -t 2000'
|
||||||
|
|
||||||
|
# Super+Q to close the focused view
|
||||||
|
riverctl map normal Super Q close
|
||||||
|
|
||||||
|
# Super+Shift+E to exit river
|
||||||
|
riverctl map normal Super+Shift E exit
|
||||||
|
|
||||||
|
# Super+J and Super+K to focus the next/previous view in the layout stack
|
||||||
|
riverctl map normal Super J focus-view next
|
||||||
|
riverctl map normal Super K focus-view previous
|
||||||
|
|
||||||
|
# Super+Shift+J and Super+Shift+K to swap the focused view with the next/previous
|
||||||
|
# view in the layout stack
|
||||||
|
riverctl map normal Super+Shift J swap next
|
||||||
|
riverctl map normal Super+Shift K swap previous
|
||||||
|
|
||||||
|
# Super+Period and Super+Comma to focus the next/previous output
|
||||||
|
riverctl map normal Super Period focus-output next
|
||||||
|
riverctl map normal Super Comma focus-output previous
|
||||||
|
|
||||||
|
# Super+Shift+{Period,Comma} to send the focused view to the next/previous output
|
||||||
|
riverctl map normal Super+Shift Period send-to-output next
|
||||||
|
riverctl map normal Super+Shift Comma send-to-output previous
|
||||||
|
|
||||||
|
# Super+Return to bump the focused view to the top of the layout stack
|
||||||
|
riverctl map normal Super Return zoom
|
||||||
|
|
||||||
|
# Super+H and Super+L to decrease/increase the main ratio of rivertile(1)
|
||||||
|
riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05"
|
||||||
|
riverctl map normal Super L send-layout-cmd rivertile "main-ratio +0.05"
|
||||||
|
|
||||||
|
# Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1)
|
||||||
|
riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1"
|
||||||
|
riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"
|
||||||
|
|
||||||
|
# Super+Alt+{H,J,K,L} to move views
|
||||||
|
riverctl map normal Super+Alt H move left 100
|
||||||
|
riverctl map normal Super+Alt J move down 100
|
||||||
|
riverctl map normal Super+Alt K move up 100
|
||||||
|
riverctl map normal Super+Alt L move right 100
|
||||||
|
|
||||||
|
# Super+Alt+Control+{H,J,K,L} to snap views to screen edges
|
||||||
|
riverctl map normal Super+Alt+Control H snap left
|
||||||
|
riverctl map normal Super+Alt+Control J snap down
|
||||||
|
riverctl map normal Super+Alt+Control K snap up
|
||||||
|
riverctl map normal Super+Alt+Control L snap right
|
||||||
|
|
||||||
|
# Super+Alt+Shift+{H,J,K,L} to resize views
|
||||||
|
riverctl map normal Super+Alt+Shift H resize horizontal -100
|
||||||
|
riverctl map normal Super+Alt+Shift J resize vertical 100
|
||||||
|
riverctl map normal Super+Alt+Shift K resize vertical -100
|
||||||
|
riverctl map normal Super+Alt+Shift L resize horizontal 100
|
||||||
|
|
||||||
|
# Super + Left Mouse Button to move views
|
||||||
|
riverctl map-pointer normal Super BTN_LEFT move-view
|
||||||
|
|
||||||
|
# Super + Right Mouse Button to resize views
|
||||||
|
riverctl map-pointer normal Super BTN_RIGHT resize-view
|
||||||
|
|
||||||
|
# Super + Middle Mouse Button to toggle float
|
||||||
|
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
|
||||||
|
|
||||||
|
for i in $(seq 1 9)
|
||||||
|
do
|
||||||
|
tags=$((1 << ($i - 1)))
|
||||||
|
|
||||||
|
# Super+[1-9] to focus tag [0-8]
|
||||||
|
riverctl map normal Super $i set-focused-tags $tags
|
||||||
|
|
||||||
|
# Super+Shift+[1-9] to tag focused view with tag [0-8]
|
||||||
|
riverctl map normal Super+Shift $i set-view-tags $tags
|
||||||
|
|
||||||
|
# Super+Control+[1-9] to toggle focus of tag [0-8]
|
||||||
|
riverctl map normal Super+Control $i toggle-focused-tags $tags
|
||||||
|
|
||||||
|
# Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view
|
||||||
|
riverctl map normal Super+Shift+Control $i toggle-view-tags $tags
|
||||||
|
done
|
||||||
|
|
||||||
|
# Super+0 to focus all tags
|
||||||
|
# Super+Shift+0 to tag focused view with all tags
|
||||||
|
all_tags=$(((1 << 32) - 1))
|
||||||
|
riverctl map normal Super 0 set-focused-tags $all_tags
|
||||||
|
riverctl map normal Super+Shift 0 set-view-tags $all_tags
|
||||||
|
|
||||||
|
# Super+Space to toggle float
|
||||||
|
riverctl map normal Super Space toggle-float
|
||||||
|
|
||||||
|
# Super+F to toggle fullscreen
|
||||||
|
riverctl map normal Super F toggle-fullscreen
|
||||||
|
|
||||||
|
# Super+{Up,Right,Down,Left} to change layout orientation
|
||||||
|
riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
|
||||||
|
riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
|
||||||
|
riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"
|
||||||
|
riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
|
||||||
|
|
||||||
|
# Declare a passthrough mode. This mode has only a single mapping to return to
|
||||||
|
# normal mode. This makes it useful for testing a nested wayland compositor
|
||||||
|
riverctl declare-mode passthrough
|
||||||
|
|
||||||
|
# Super+F11 to enter passthrough mode
|
||||||
|
riverctl map normal Super F11 enter-mode passthrough
|
||||||
|
|
||||||
|
# Super+F11 to return to normal mode
|
||||||
|
riverctl map passthrough Super F11 enter-mode normal
|
||||||
|
|
||||||
|
# Various media key mapping examples for both normal and locked mode which do
|
||||||
|
# not have a modifier
|
||||||
|
for mode in normal locked
|
||||||
|
do
|
||||||
|
# Eject the optical drive (well if you still have one that is)
|
||||||
|
riverctl map $mode None XF86Eject spawn 'eject -T'
|
||||||
|
|
||||||
|
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
||||||
|
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
||||||
|
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
||||||
|
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
|
||||||
|
|
||||||
|
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
||||||
|
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||||
|
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
||||||
|
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
||||||
|
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
||||||
|
|
||||||
|
# Control screen backlight brightness with light (https://github.com/haikarainen/light)
|
||||||
|
riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl s +5%'
|
||||||
|
riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl s 5%-'
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set background and border color
|
||||||
|
riverctl background-color 0x002b36
|
||||||
|
riverctl border-color-focused 0x93a1a1
|
||||||
|
riverctl border-color-unfocused 0x586e75
|
||||||
|
riverctl spawn "wbg $HOME/.config/river/background.jpg"
|
||||||
|
|
||||||
|
# Set keyboard repeat rate
|
||||||
|
riverctl set-repeat 50 300
|
||||||
|
|
||||||
|
|
||||||
|
# Make all views with an app-id that starts with "float" and title "foo" start floating.
|
||||||
|
riverctl rule-add float -app-id 'float*' -title 'foo'
|
||||||
|
|
||||||
|
# Make all views with app-id "bar" and any title use client-side decorations
|
||||||
|
riverctl rule-add csd -app-id "bar"
|
||||||
|
|
||||||
|
# Set the default layout generator to be rivertile and start it.
|
||||||
|
# River will send the process group of the init executable SIGTERM on exit.
|
||||||
|
riverctl default-layout rivertile
|
||||||
|
|
||||||
|
if [ -n "$(pgrep rivertile)" ]
|
||||||
|
then
|
||||||
|
printf 'RIVERCTL: rivertile already running with pid %s\n' "$(pidof rivertile)"
|
||||||
|
else
|
||||||
|
rivertile \
|
||||||
|
-view-padding 6 \
|
||||||
|
-outer-padding 6 \
|
||||||
|
-main-count 1 \
|
||||||
|
-main-ratio 0.5 >/dev/null 2>&1 &
|
||||||
|
fi
|
||||||
|
|
||||||
|
# autostart apps
|
||||||
|
# riverctl spawn "$HOME/.config/river/process"
|
||||||
|
riverctl spawn 'dunst'
|
||||||
|
riverctl spawn 'gammastep-indicator'
|
||||||
|
riverctl spawn 'nm-applet --indicator'
|
||||||
|
riverctl spawn 'waybar'
|
||||||
|
riverctl spawn "swayidle -w \
|
||||||
|
timeout 600 'swaylock -f -c 14171d' \
|
||||||
|
before-sleep 'swaylock -f -c 14171d'"
|
16
users/tacocat/wayland/river/process
Executable file
16
users/tacocat/wayland/river/process
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
dunst &
|
||||||
|
gammastep-indicator &
|
||||||
|
nm-applet --indicator &
|
||||||
|
waybar &
|
||||||
|
|
||||||
|
# void linux specific setup
|
||||||
|
# if test -f ~/.config/river/void-setup; then
|
||||||
|
# exec ~/.config/river/void-setup
|
||||||
|
# exit
|
||||||
|
# fi
|
||||||
|
|
||||||
|
exec swayidle -w \
|
||||||
|
timeout 600 'swaylock -f -c 14171d' \
|
||||||
|
before-sleep 'swaylock -f -c 14171d'
|
Loading…
Reference in a new issue