Compare commits
35 Commits
b6a2fa03c3
...
host/rpi
| Author | SHA1 | Date | |
|---|---|---|---|
| 81b117fc87 | |||
| 4037fe4c36 | |||
| ec628cd17f | |||
| c54fe574c0 | |||
| b9eed4c40f | |||
| d1f835ff1c | |||
| 9b2d29a3a3 | |||
| 13a9467abd | |||
| 2c87ad3a67 | |||
| 44395835e6 | |||
| 3e5ad2225a | |||
| 8d6c988661 | |||
| 156e36053e | |||
| f2d9534fba | |||
| 83b264f678 | |||
| 18aa4bc748 | |||
| b4b1e5cdf7 | |||
| 1223893f49 | |||
| a2e83bbe00 | |||
| eb7fabbb48 | |||
| 30e2b8a052 | |||
| b7fa096c90 | |||
| 92d2e7118a | |||
| b99e5a5ec3 | |||
| ef74b0e660 | |||
| bb2311dd43 | |||
| 949e930a56 | |||
| 1ea00e644d | |||
| be256e882b | |||
| 478ded7f6e | |||
| 1d299f2e43 | |||
| c812148917 | |||
| e690f17ff8 | |||
| 89257b28ec | |||
| f9617088f8 |
@@ -3,6 +3,6 @@
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ stow -S clang-format kitty nvim sway tmux waybar wofi zsh
|
$ stow -S clang-format kitty nvim sway tmux waybar wofi zsh kanshi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ PointerAlignment: Left
|
|||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
AlwaysBreakTemplateDeclarations: true
|
AlwaysBreakTemplateDeclarations: true
|
||||||
LambdaBodyIndentation: Signature
|
LambdaBodyIndentation: Signature
|
||||||
|
AllowShortLambdasOnASingleLine: None
|
||||||
|
|
||||||
MaxEmptyLinesToKeep: 3
|
MaxEmptyLinesToKeep: 3
|
||||||
#ColumnLimit: 128
|
#ColumnLimit: 128
|
||||||
|
|||||||
13
kanshi/.config/kanshi/config
Normal file
13
kanshi/.config/kanshi/config
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
profile Home {
|
||||||
|
output "eDP-1" mode 2256x1504@59.999Hz position 1920,875 transform normal scale 1.399999976158142
|
||||||
|
output "DP-11" mode 1920x1200@59.95Hz position 0,0 transform normal scale 1.0
|
||||||
|
exec swayws move --away 1 eDP-1
|
||||||
|
exec swayws move --away 4 eDP-1
|
||||||
|
}
|
||||||
|
|
||||||
|
profile Kinemic {
|
||||||
|
output "eDP-1" mode 2256x1504@59.999Hz position 449,1440 transform normal scale 1.399999976158142
|
||||||
|
output "DP-3" mode 2560x1440@59.951Hz position 0,0 transform normal scale 1.0
|
||||||
|
exec swayws move --away 1 eDP-1
|
||||||
|
exec swayws move --away 4 eDP-1
|
||||||
|
}
|
||||||
@@ -1,50 +1,52 @@
|
|||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
|
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
|
||||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
|
||||||
"auto-session": { "branch": "main", "commit": "af2219b9fa99c1d7ac409bd9eac094c459d3f52d" },
|
"auto-session": { "branch": "main", "commit": "9d02776ed42874d37869dc683396234e3724b52d" },
|
||||||
"cellular-automaton.nvim": { "branch": "main", "commit": "b7d056dab963b5d3f2c560d92937cb51db61cb5b" },
|
"cellular-automaton.nvim": { "branch": "main", "commit": "11aea08aa084f9d523b0142c2cd9441b8ede09ed" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
|
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||||
"copilot.vim": { "branch": "release", "commit": "53d3091be388ff1edacdb84421ccfa19a446a84d" },
|
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
|
||||||
"dressing.nvim": { "branch": "master", "commit": "e3714c8049b2243e792492c4149e4cc395c68eb9" },
|
"dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "e11b09bf10706bb74e16e4c3d11b2274d62e687f" },
|
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "d4cde3853a172485961b515c36d51d757728d6e6" },
|
"gruvbox.nvim": { "branch": "main", "commit": "49d9c0b150ba70efcd831ec7b3cb8ee740067045" },
|
||||||
"harpoon": { "branch": "master", "commit": "ccae1b9bec717ae284906b0bf83d720e59d12b91" },
|
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "b0ba3f9399bf48c86abaa4db1a40bd0b681d5018" },
|
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
||||||
"lsp-colors.nvim": { "branch": "main", "commit": "2bbe7541747fd339bdd8923fc45631a09bb4f1e5" },
|
"lsp-colors.nvim": { "branch": "main", "commit": "2bbe7541747fd339bdd8923fc45631a09bb4f1e5" },
|
||||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "16de3b18c5f7b6230d89b8e64ce9a4801b6f8d08" },
|
"lsp-zero.nvim": { "branch": "v3.x", "commit": "56db3d5ce5476b183783160e6045f7337ba12b83" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "a4caa0d083aab56f6cd5acf2d42331b74614a585" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
|
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||||
"molten-nvim": { "branch": "main", "commit": "8346bba69e0de96278dad2038e9be74605908b7d" },
|
"molten-nvim": { "branch": "main", "commit": "8346bba69e0de96278dad2038e9be74605908b7d" },
|
||||||
"neoformat": { "branch": "master", "commit": "82864d6c7926c4f3b535a2fd7eab919b116fc969" },
|
"neoformat": { "branch": "master", "commit": "d9d3311097eacdba9bd7a425b267d304b509e7ea" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "29c7f030b0920e2f17263a9ab8742cde144b9140" },
|
"noice.nvim": { "branch": "main", "commit": "df448c649ef6bc5a6a633a44f2ad0ed8d4442499" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" },
|
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
|
"nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "b7267003ba4dd860350be86f75b9d9ea287cedca" },
|
"nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "d1ab6b6051976b04948e127b0f302a465b1394d6" },
|
"nvim-lspconfig": { "branch": "master", "commit": "541f3a2781de481bb84883889e4d9f0904250a56" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "632024157d01e8bc48fd7df6a7de8ffe3fdd4f3a" },
|
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "26632f496e7e3c0450d8ecff88f49068cecc8bda" },
|
"nvim-tree.lua": { "branch": "master", "commit": "f5f67892996b280ae78b1b0a2d07c4fa29ae0905" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "49e4e2b4b62360677568c47b6467f31c809b391c" },
|
"nvim-treesitter": { "branch": "master", "commit": "92725df6222614307c4712eb9982e5287f21aa11" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
|
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
|
||||||
"overseer.nvim": { "branch": "master", "commit": "17a4ff58decf99d324a580e950228550002198bc" },
|
"overseer.nvim": { "branch": "master", "commit": "6f8bc37eb729a00e185cdf38b1ed3309a05bfeef" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||||
"session-lens": { "branch": "main", "commit": "1b65d8e1bcd1836c5135cce118ba18d662a9dabd" },
|
"session-lens": { "branch": "main", "commit": "eae46b472b3150f5ec0f977556e8085683d49eb0" },
|
||||||
|
"sqlite.nvim": { "branch": "master", "commit": "53115a1a73972ce75c9a371a682d27286be9e81e" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "70a93ce66083699571adc361166504b03cc39c2b" },
|
"time-tracker.nvim": { "branch": "master", "commit": "c0b87c30484920ed1b9a4589eb62902015dfe5c2" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "066cccf48a43553a80a210eb3be89a15d789d6e6" },
|
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
||||||
"trouble.nvim": { "branch": "main", "commit": "6ce015ea999879364e35f20da3e8687583d3b719" },
|
"toggleterm.nvim": { "branch": "main", "commit": "48be57eaba817f038d61bbf64d2c597f578c0827" },
|
||||||
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
"trouble.nvim": { "branch": "main", "commit": "3609bb9a82bbab1ef95cf2c27ce7e52267a7d40d" },
|
||||||
|
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
|
||||||
"vim-doge": { "branch": "master", "commit": "188351964c8b2540a69c1d2648b3c6e7877a016f" },
|
"vim-doge": { "branch": "master", "commit": "188351964c8b2540a69c1d2648b3c6e7877a016f" },
|
||||||
"vim-flog": { "branch": "master", "commit": "2f0836128cac9368176a564b237382d1766723f0" },
|
"vim-flog": { "branch": "master", "commit": "6f80c1ffa7068ca8cc0e29af7af4f6ed0717e65e" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" },
|
"vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
|
||||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||||
"vimtex": { "branch": "master", "commit": "366ba106795db13879fdbfb4d6e4b8e1d616b684" },
|
"vimtex": { "branch": "master", "commit": "9a5ef1d4ac8e4e06071179ebe8121350fcb97861" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" }
|
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ return {
|
|||||||
"RelWithDebInfo",
|
"RelWithDebInfo",
|
||||||
"MinSizeRel"
|
"MinSizeRel"
|
||||||
},
|
},
|
||||||
default = "Debug"
|
default = "Release"
|
||||||
},
|
},
|
||||||
generator = {
|
generator = {
|
||||||
type = "enum",
|
type = "enum",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
local function clamp(x, min, max) return math.max(math.min(x, max), min) end
|
local function clamp(x, min, max) return math.max(math.min(x, max), min) end
|
||||||
|
|
||||||
local function get_random_image()
|
local function get_random_image()
|
||||||
images = {
|
local images = {
|
||||||
{
|
{
|
||||||
[[██╗ █████╗ ██████╗██╗ ██╗███████╗]],
|
[[██╗ █████╗ ██████╗██╗ ██╗███████╗]],
|
||||||
[[██║ ██╔══██╗██╔════╝██║ ██║██╔════╝]],
|
[[██║ ██╔══██╗██╔════╝██║ ██║██╔════╝]],
|
||||||
@@ -29,21 +29,53 @@ local function get_random_image()
|
|||||||
[[██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
|
[[██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
|
||||||
[[██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║]],
|
[[██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║]],
|
||||||
[[╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]]
|
[[╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
[[ ▄ ]],
|
||||||
|
[[ ▟█▙ ]],
|
||||||
|
[[ ▟███▙ ]],
|
||||||
|
[[ ▟█████▙ ]],
|
||||||
|
[[ ▟███████▙ ]],
|
||||||
|
[[ ▂▔▀▜██████▙ ]],
|
||||||
|
[[ ▟██▅▂▝▜█████▙ ]],
|
||||||
|
[[ ▟█████████████▙ ]],
|
||||||
|
[[ ▟███████████████▙ ]],
|
||||||
|
[[ ▟█████████████████▙ ]],
|
||||||
|
[[ ▟███████████████████▙ ]],
|
||||||
|
[[ ▟█████████▛▀▀▜████████▙ ]],
|
||||||
|
[[ ▟████████▛ ▜███████▙ ]],
|
||||||
|
[[ ▟█████████ ████████▙ ]],
|
||||||
|
[[ ▟██████████ █████▆▅▄▃▂ ]],
|
||||||
|
[[ ▟██████████▛ ▜█████████▙ ]],
|
||||||
|
[[ ▟██████▀▀▀ ▀▀██████▙ ]],
|
||||||
|
[[ ▟███▀▘ ▝▀███▙ ]],
|
||||||
|
[[▟▛▀ ▀▜▙]],
|
||||||
|
[[ btw ]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local i = 3
|
local pmf = {0.25, 0.25, 0.25, 0.25}
|
||||||
|
local cdf = {}
|
||||||
|
|
||||||
math.randomseed(os.time())
|
cdf[1] = 0
|
||||||
if math.fmod(math.random(100), 5) == 0 then
|
for j = 2, #pmf+1 do
|
||||||
if math.random(0, 1) == 0 then
|
cdf[j] = cdf[j - 1] + pmf[j - 1]
|
||||||
i = 1
|
|
||||||
else
|
|
||||||
i = 2
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return images[i]
|
if math.abs(cdf[#cdf] - 1) > 0.01 then
|
||||||
|
error("Probabilities do not add up to 1")
|
||||||
|
elseif #images ~= #pmf then
|
||||||
|
error("Number of images and probabilities do not match")
|
||||||
|
end
|
||||||
|
|
||||||
|
math.randomseed(os.time())
|
||||||
|
local r = math.random(100)
|
||||||
|
|
||||||
|
for j = 2, #cdf do
|
||||||
|
if r <= cdf[j] * 100 then
|
||||||
|
return images[j-1]
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lualine/lualine.nvim"
|
"nvim-lualine/lualine.nvim"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,7 +14,12 @@ return {
|
|||||||
{
|
{
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = true
|
opts = {
|
||||||
|
registries = {
|
||||||
|
"github:antsouchlos/mason-registry",
|
||||||
|
"github:mason-org/mason-registry"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Autocompletion
|
-- Autocompletion
|
||||||
@@ -136,14 +141,11 @@ return {
|
|||||||
vim.keymap.set("n", "<leader>la", function() vim.lsp.buf.code_action() end, {
|
vim.keymap.set("n", "<leader>la", function() vim.lsp.buf.code_action() end, {
|
||||||
desc = "Code actions"
|
desc = "Code actions"
|
||||||
})
|
})
|
||||||
vim.keymap.set("n", "<leader>la", function() vim.lsp.buf.code_action() end, {
|
|
||||||
desc = "Code actions"
|
|
||||||
})
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
require('mason-lspconfig').setup({
|
require('mason-lspconfig').setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
'clangd',
|
-- 'clangd',
|
||||||
'pyright',
|
'pyright',
|
||||||
'cmake',
|
'cmake',
|
||||||
'texlab'
|
'texlab'
|
||||||
@@ -176,10 +178,12 @@ return {
|
|||||||
|
|
||||||
require('lspconfig').matlab_ls.setup({
|
require('lspconfig').matlab_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
filetypes = {"matlab"},
|
filetypes = {
|
||||||
|
"matlab"
|
||||||
|
},
|
||||||
matlab = {
|
matlab = {
|
||||||
installPath = "/opt/matlab/R2023a/"
|
installPath = "/opt/matlab/R2023a/"
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
single_file_support = true
|
single_file_support = true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ return {
|
|||||||
|
|
||||||
let g:neoformat_markdown_mdformat = {
|
let g:neoformat_markdown_mdformat = {
|
||||||
\ 'exe': 'mdformat',
|
\ 'exe': 'mdformat',
|
||||||
\ 'args': ['--wrap=79'],
|
\ 'args': ['--wrap=79', '--number'],
|
||||||
\ 'replace': 1,
|
\ 'replace': 1,
|
||||||
\ }
|
\ }
|
||||||
let g:neoformat_enabled_markdown = ['mdformat']
|
let g:neoformat_enabled_markdown = ['mdformat']
|
||||||
|
|||||||
10
nvim/.config/nvim/lua/plugins/time_tracker.lua
Normal file
10
nvim/.config/nvim/lua/plugins/time_tracker.lua
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
return {
|
||||||
|
"3rd/time-tracker.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"3rd/sqlite.nvim"
|
||||||
|
},
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
data_file = vim.fn.stdpath("data") .. "/time-tracker.db"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
|
tag="v3.4.1",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-web-devicons"
|
"nvim-tree/nvim-web-devicons"
|
||||||
@@ -12,48 +13,47 @@ return {
|
|||||||
'nvim-telescope/telescope.nvim'
|
'nvim-telescope/telescope.nvim'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cmd = {
|
opts = {
|
||||||
"Trouble",
|
modes = {
|
||||||
"TroubleClose",
|
symbols = {
|
||||||
"TroubleToggle",
|
win = {
|
||||||
"TroubleRefresh"
|
size = 50,
|
||||||
},
|
|
||||||
init = function()
|
|
||||||
vim.keymap.set("n", "<leader>xx", function() require("trouble").toggle() end, {
|
|
||||||
desc = "Toggle"
|
|
||||||
})
|
|
||||||
vim.keymap.set("n", "<leader>xw", function() require("trouble").toggle("workspace_diagnostics") end, {
|
|
||||||
desc = "Workspace diagnostics"
|
|
||||||
})
|
|
||||||
vim.keymap.set("n", "<leader>xd", function() require("trouble").toggle("document_diagnostics") end, {
|
|
||||||
desc = "Document diagnostics"
|
|
||||||
})
|
|
||||||
vim.keymap.set("n", "<leader>xq", function() require("trouble").toggle("quickfix") end, {
|
|
||||||
desc = "Quickfix"
|
|
||||||
})
|
|
||||||
vim.keymap.set("n", "<leader>xl", function() require("trouble").toggle("loclist") end, {
|
|
||||||
desc = "Loclist"
|
|
||||||
})
|
|
||||||
-- vim.keymap.set("n", "<leader>xr", function() require("trouble").toggle("lsp_references") end, {
|
|
||||||
-- desc = "LSP references"
|
|
||||||
-- })
|
|
||||||
end,
|
|
||||||
config = function()
|
|
||||||
local trouble_provider = require("trouble.providers.telescope")
|
|
||||||
local telescope = require("telescope")
|
|
||||||
|
|
||||||
telescope.setup {
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = {
|
|
||||||
["<c-t>"] = trouble_provider.open_with_trouble
|
|
||||||
},
|
|
||||||
n = {
|
|
||||||
["<c-t>"] = trouble_provider.open_with_trouble
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
},
|
||||||
|
cmd = "Trouble",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>xw",
|
||||||
|
"<cmd>Trouble diagnostics toggle<cr>",
|
||||||
|
desc = "Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xd",
|
||||||
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||||
|
desc = "Buffer Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xs",
|
||||||
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||||
|
desc = "Symbols (Trouble)",
|
||||||
|
},
|
||||||
|
-- {
|
||||||
|
-- "<leader>cl",
|
||||||
|
-- "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
|
-- desc = "LSP Definitions / references / ... (Trouble)",
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- "<leader>xl",
|
||||||
|
-- "<cmd>Trouble loclist toggle<cr>",
|
||||||
|
-- desc = "Location List (Trouble)",
|
||||||
|
-- },
|
||||||
|
{
|
||||||
|
"<leader>xq",
|
||||||
|
"<cmd>Trouble qflist toggle<cr>",
|
||||||
|
desc = "Quickfix List (Trouble)",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,26 +15,30 @@ return {
|
|||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.register({
|
wk.add({
|
||||||
["<leader>"] = {
|
{
|
||||||
l = {
|
"<leader>d",
|
||||||
name = "+LSP"
|
group = "Debug"
|
||||||
},
|
},
|
||||||
x = {
|
{
|
||||||
name = "+Trouble"
|
"<leader>f",
|
||||||
},
|
group = "Find"
|
||||||
o = {
|
},
|
||||||
name = "+Overseer"
|
{
|
||||||
},
|
"<leader>l",
|
||||||
d = {
|
group = "LSP"
|
||||||
name = "+Debug"
|
},
|
||||||
},
|
{
|
||||||
f = {
|
"<leader>o",
|
||||||
name = "+Find"
|
group = "Overseer"
|
||||||
},
|
},
|
||||||
s = {
|
{
|
||||||
name = "+Session"
|
"<leader>s",
|
||||||
},
|
group = "Session"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>x",
|
||||||
|
group = "Trouble"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ vim.keymap.set("n", "n", "nzzzv")
|
|||||||
vim.keymap.set("n", "N", "Nzzzv")
|
vim.keymap.set("n", "N", "Nzzzv")
|
||||||
|
|
||||||
vim.keymap.set("x", "<leader>p", "\"_dP")
|
vim.keymap.set("x", "<leader>p", "\"_dP")
|
||||||
vim.keymap.set("n", "<leader>d", "\"_d")
|
|
||||||
vim.keymap.set("v", "<leader>d", "\"_d")
|
vim.keymap.set("v", "<leader>d", "\"_d")
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>y", "\"+y")
|
vim.keymap.set("n", "<leader>y", "\"+y")
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ vim.opt.signcolumn = "yes"
|
|||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
pattern = 'rust',
|
pattern = 'rust',
|
||||||
callback = function ()
|
callback = function()
|
||||||
vim.cmd[[
|
vim.cmd [[
|
||||||
let &efm = ''
|
let &efm = ''
|
||||||
" Random non issue stuff
|
" Random non issue stuff
|
||||||
let &efm .= '%-G%.%#aborting due to previous error%.%#,'
|
let &efm .= '%-G%.%#aborting due to previous error%.%#,'
|
||||||
@@ -53,5 +53,5 @@ let &efm .= '%Eerror%m,'
|
|||||||
let &efm .= '%Wwarning: %m,'
|
let &efm .= '%Wwarning: %m,'
|
||||||
let &efm .= '%-Z%*\s--> %f:%l:%c,'
|
let &efm .= '%-Z%*\s--> %f:%l:%c,'
|
||||||
]]
|
]]
|
||||||
end,
|
end
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ bindsym Control+Mod1+l exec $lock
|
|||||||
|
|
||||||
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy
|
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy
|
||||||
|
|
||||||
bindsym $mod+p exec kitty -e python
|
bindsym $mod+p exec kitty -e /usr/bin/expect -c "spawn python; expect \\"*>>> \\"; send \\"import numpy as np\n\\"; send \\"import sympy as sp\n\\"; interact"
|
||||||
|
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
bindsym $mod+d exec $menu
|
bindsym $mod+d exec $menu
|
||||||
@@ -45,8 +44,8 @@ bindsym XF86AudioPause exec playerctl play-pause
|
|||||||
bindsym XF86AudioNext exec playerctl next
|
bindsym XF86AudioNext exec playerctl next
|
||||||
bindsym XF86AudioPrev exec playerctl previous
|
bindsym XF86AudioPrev exec playerctl previous
|
||||||
|
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
bindsym XF86MonBrightnessUp exec /bin/sh -c ~/.config/sway/scripts/increase_brightness
|
||||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym XF86MonBrightnessDown exec /bin/sh -c ~/.config/sway/scripts/decrease_brightness
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+c exec kitty -e python
|
bindsym $mod+c exec kitty -e python
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
exec_always nm-applet &
|
exec_always nm-applet &
|
||||||
exec_always blueman-applet &
|
#exec_always blueman-applet &
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set $ws2 "2: Firefox"
|
|||||||
set $ws3 "3: Management"
|
set $ws3 "3: Management"
|
||||||
set $ws4 "4"
|
set $ws4 "4"
|
||||||
set $ws5 "5: Doc"
|
set $ws5 "5: Doc"
|
||||||
set $ws6 "6"
|
set $ws6 "6: 3D-Printing"
|
||||||
set $ws7 "7: Music"
|
set $ws7 "7: Music"
|
||||||
set $ws8 "8"
|
set $ws8 "8"
|
||||||
set $ws9 "9"
|
set $ws9 "9"
|
||||||
@@ -40,12 +40,15 @@ exec i3-msg 'workspace $ws2; exec firefox'
|
|||||||
## Multiple monitors
|
## Multiple monitors
|
||||||
#
|
#
|
||||||
|
|
||||||
workspace $ws1 output DP-3 eDP-1
|
set $this_disp "eDP-1"
|
||||||
workspace $ws2 output eDP-1 DP-3
|
set $other_disp "DP-11"
|
||||||
workspace $ws3 output eDP-1 DP-3
|
|
||||||
workspace $ws4 output DP-3 eDP-1
|
workspace $ws1 output $other_disp $this_disp
|
||||||
workspace $ws5 output eDP-1
|
workspace $ws2 output $this_disp
|
||||||
workspace $ws6 output eDP-1
|
workspace $ws3 output $this_disp
|
||||||
workspace $ws7 output eDP-1
|
workspace $ws4 output $other_disp $this_disp
|
||||||
workspace $ws8 output eDP-1
|
workspace $ws5 output $this_disp
|
||||||
|
workspace $ws6 output $this_disp
|
||||||
|
workspace $ws7 output $this_disp
|
||||||
|
workspace $ws8 output $this_disp
|
||||||
|
|
||||||
|
|||||||
18
sway/.config/sway/scripts/decrease_brightness
Executable file
18
sway/.config/sway/scripts/decrease_brightness
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export BRIGHTNESS=`brightnessctl g`
|
||||||
|
if [ $BRIGHTNESS -gt 0 ]; then
|
||||||
|
brightnessctl set 5%-
|
||||||
|
else
|
||||||
|
killall gammastep &> /dev/null
|
||||||
|
|
||||||
|
export BRIGHTNESS=`cat /tmp/brightness 2> /dev/null || echo 1`
|
||||||
|
if [ `echo "$BRIGHTNESS > 0.1" | bc -l` == 1 ]; then
|
||||||
|
export BRIGHTNESS=`echo "$BRIGHTNESS - 0.1" | bc`
|
||||||
|
echo $BRIGHTNESS > /tmp/brightness
|
||||||
|
gammastep -O 6500 -b $BRIGHTNESS:0.1 &
|
||||||
|
else
|
||||||
|
gammastep -O 6500 -b 0.1:0.1 &
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
18
sway/.config/sway/scripts/increase_brightness
Executable file
18
sway/.config/sway/scripts/increase_brightness
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export BRIGHTNESS=`brightnessctl g`
|
||||||
|
if [ $BRIGHTNESS == 0 ]; then
|
||||||
|
killall gammastep &> /dev/null
|
||||||
|
|
||||||
|
export BRIGHTNESS=`cat /tmp/brightness 2> /dev/null || echo 1`
|
||||||
|
if [ `echo "$BRIGHTNESS < 1.0" | bc -l` == 1 ]; then
|
||||||
|
export BRIGHTNESS=`echo "$BRIGHTNESS + 0.1" | bc`
|
||||||
|
echo $BRIGHTNESS > /tmp/brightness
|
||||||
|
gammastep -O 6500 -b $BRIGHTNESS:0.1 &
|
||||||
|
else
|
||||||
|
brightnessctl set 5%
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
brightnessctl set +5%
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"modules-center": [
|
"modules-center": [
|
||||||
"clock#1",
|
"clock#1",
|
||||||
"clock#2",
|
"clock#2",
|
||||||
"clock#3",
|
"custom/clock",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
@@ -37,9 +37,10 @@
|
|||||||
"format": "{:%d-%m-%Y}",
|
"format": "{:%d-%m-%Y}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"clock#3": {
|
"custom/clock": {
|
||||||
"format": "{:%H:%M}",
|
"exec": "date +\"%H:%M\"",
|
||||||
"tooltip": false
|
"interval": 10,
|
||||||
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
|
|||||||
93
zsh/.zshrc
93
zsh/.zshrc
@@ -5,6 +5,7 @@ SAVEHIST=5000
|
|||||||
setopt hist_ignore_all_dups
|
setopt hist_ignore_all_dups
|
||||||
setopt extendedglob
|
setopt extendedglob
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
|
setopt interactivecomments
|
||||||
bindkey -v
|
bindkey -v
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
@@ -22,7 +23,7 @@ zstyle ':vcs_info:git:*' formats '%b '
|
|||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
PROMPT='%F{magenta}[%m] %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
PROMPT='%F{magenta}[%m] %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
||||||
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||||
|
|
||||||
alias ssh='kitty +kitten ssh'
|
alias ssh='kitty +kitten ssh'
|
||||||
|
|
||||||
@@ -30,88 +31,24 @@ alias ls='ls --color=auto'
|
|||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
alias la='ls -la'
|
alias la='ls -la'
|
||||||
|
alias ..="cd .."
|
||||||
|
alias ...="cd ../.."
|
||||||
|
alias ....="cd ../../.."
|
||||||
|
|
||||||
export PATH=$PATH:/home/andreas/.local/bin
|
export PATH=$PATH:/home/andreas/.local/bin
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
|
|
||||||
alias get-idf='. $HOME/ext_sw/esp-idf/export.sh'
|
alias get-idf='. $HOME/ext_sw/esp-idf/export.sh'
|
||||||
|
|
||||||
alias sc='z ~/.config/sway'
|
alias c='cd ~/.dotfiles'
|
||||||
alias nc='z ~/.config/nvim'
|
alias sc='cd ~/.config/sway'
|
||||||
alias ezc='nvim ~/.zshrc'
|
alias nc='cd ~/.config/nvim'
|
||||||
|
alias flog='nvim -c "Flog -all"'
|
||||||
|
|
||||||
alias ait='z ~/Documents/kit/AIT && clear'
|
# . "$HOME/.cargo/env"
|
||||||
alias kit='z ~/Documents/kit && clear'
|
#
|
||||||
alias eml='z ~/Documents/kit/EMLLAB/emllab-challenge && . venv/bin/activate && clear'
|
# eval "$(zoxide init zsh)"
|
||||||
|
# eval "$(thefuck --alias)"
|
||||||
|
|
||||||
alias hyp='z ~/git/HyperLink_SW && clear'
|
. "$HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
|
bindkey '^y' autosuggest-accept
|
||||||
eval "$(zoxide init zsh)"
|
|
||||||
eval "$(thefuck --alias)"
|
|
||||||
|
|
||||||
#source /usr/share/git/completion/git-completion.zsh
|
|
||||||
#
|
|
||||||
#eval "$(thefuck --alias)"
|
|
||||||
#
|
|
||||||
#export VISUAL=nvim
|
|
||||||
#export EDITOR="$VISUAL"
|
|
||||||
#
|
|
||||||
#function pym {
|
|
||||||
# python -m $@
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#function _pym_complete {
|
|
||||||
#
|
|
||||||
# local executable current previous options
|
|
||||||
# executable=${COMP_WORDS[0]}
|
|
||||||
# current="${COMP_WORDS[COMP_CWORD]}"
|
|
||||||
# previous="${COMP_WORDS[COMP_CWORD-1]}"
|
|
||||||
#
|
|
||||||
# COMPREPLY=()
|
|
||||||
# if [[ ( "$executable" == python* && "$previous" == "-m" ) ||
|
|
||||||
# ( "$executable" == pym && ! "$current" == -* ) ]]; then
|
|
||||||
#
|
|
||||||
# options="`python <<EOF
|
|
||||||
#import os
|
|
||||||
#import pkgutil
|
|
||||||
#import sys
|
|
||||||
#current = '$current'
|
|
||||||
#if '.' in current:
|
|
||||||
# package_name = current.rsplit('.', 1)[0]
|
|
||||||
# try:
|
|
||||||
# package = __import__(package_name, fromlist=['__name__'])
|
|
||||||
# except:
|
|
||||||
# exit()
|
|
||||||
#else:
|
|
||||||
# package_name = ''
|
|
||||||
# package = None
|
|
||||||
#def walk_packages(paths, match, prefix=''):
|
|
||||||
# for loader, name, ispkg in pkgutil.iter_modules(paths, prefix):
|
|
||||||
# if not name.startswith(match):
|
|
||||||
# continue
|
|
||||||
# yield loader, name, ispkg
|
|
||||||
# if ispkg:
|
|
||||||
# for x in walk_packages([os.path.join(loader.path, name.split('.')[-1])], match, name + '.'):
|
|
||||||
# yield x
|
|
||||||
#for loader, name, ispkg in walk_packages(
|
|
||||||
# package and getattr(package, '__path__', ()),
|
|
||||||
# current,
|
|
||||||
# package_name and (package_name + '.'),
|
|
||||||
#):
|
|
||||||
# if ispkg:
|
|
||||||
# continue
|
|
||||||
# if name.endswith('.__main__'):
|
|
||||||
# print(name.rsplit('.', 1)[0])
|
|
||||||
# else:
|
|
||||||
# print(name)
|
|
||||||
#EOF
|
|
||||||
# `"
|
|
||||||
# COMPREPLY=( $(compgen -W "${options}") )
|
|
||||||
# return 0
|
|
||||||
# fi
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#complete -F _pym_complete -o nospace -o bashdefault -o default pym
|
|
||||||
#complete -F _pym_complete -o nospace -o bashdefault -o default python
|
|
||||||
#
|
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user