Compare commits
87 Commits
af2bfb7032
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a4b9fc3cf9 | |||
| 06e1bd1c2e | |||
| 1f7dbe05a2 | |||
| b963d7746e | |||
| 067c6aa2ee | |||
| de6447fe19 | |||
| 516b187060 | |||
| 7cfdf63c01 | |||
| 192b290e4a | |||
| 3c76341341 | |||
| efeca2ff10 | |||
| c7819c793f | |||
| d9671f74c7 | |||
| b56400c12c | |||
| 7472a05642 | |||
| ed605f580e | |||
| 2e0cc89584 | |||
| 300a13d443 | |||
| fa809f6273 | |||
| 4bc2809648 | |||
| ac9058d3e3 | |||
| 99fc6ec017 | |||
| 3955038a6a | |||
| 76266a78a6 | |||
| b44abad337 | |||
| 373651b9ee | |||
| 72fb89da48 | |||
| 522c655086 | |||
| 0756d4281c | |||
| ffb8c5a5f0 | |||
| a897ada9b5 | |||
| 0f2979d97f | |||
| 144212e33e | |||
| e63a60efca | |||
| 1ad8d13b23 | |||
| 62c556f898 | |||
| 85d2139be6 | |||
| e4c6d3b5a4 | |||
| 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 | |||
| b6a2fa03c3 | |||
| 3ee58eb2e2 | |||
| b00d82b7c9 | |||
| bbb673e7e2 | |||
| dafec71c57 | |||
| 19c943abbe | |||
| 0976aa378b | |||
| 0043e6c6fd | |||
| 478544b7d9 | |||
| 16d6ba467d | |||
| 188ae38be4 | |||
| 276ac34da1 | |||
| d6bc329c85 | |||
| a49d728b4b | |||
| c5d88a5943 |
@@ -3,6 +3,6 @@
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
$ stow -S clang-format kitty nvim sway tmux waybar wofi zsh
|
||||
$ stow -S clang-format kitty nvim sway tmux waybar wofi zsh kanshi papis flashfocus zathura
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ PointerAlignment: Left
|
||||
AccessModifierOffset: -4
|
||||
AlwaysBreakTemplateDeclarations: true
|
||||
LambdaBodyIndentation: Signature
|
||||
AllowShortLambdasOnASingleLine: None
|
||||
|
||||
MaxEmptyLinesToKeep: 3
|
||||
#ColumnLimit: 128
|
||||
|
||||
99
flashfocus/.config/flashfocus/flashfocus.yml
Normal file
99
flashfocus/.config/flashfocus/flashfocus.yml
Normal file
@@ -0,0 +1,99 @@
|
||||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
## Flashfocus config file
|
||||
## @@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
# Opacity of window during flash.
|
||||
flash-opacity: 0.8
|
||||
|
||||
# Windows are restored to this opacity value at the end of a flash.
|
||||
default-opacity: 1
|
||||
|
||||
# Length of flash in milliseconds.
|
||||
time: 500
|
||||
|
||||
# If true, flashes are not faded out. This will improve performance but flashes
|
||||
# won't be smooth.
|
||||
simple: false
|
||||
|
||||
# Number of animation frames in a flash.
|
||||
ntimepoints: 10
|
||||
|
||||
# Set this to false if you don't want windows to flash on focus.
|
||||
flash-on-focus: true
|
||||
|
||||
# Set this to false if you don't want fullscreen windows to flash.
|
||||
flash-fullscreen: true
|
||||
|
||||
# Whether or not to flash windows if they are the only window on the desktop.
|
||||
# Possible values:
|
||||
# 'always':
|
||||
# Always flash lone windows
|
||||
# 'never':
|
||||
# Never flash lone windows
|
||||
# 'on_open_close':
|
||||
# Lone windows will be flashed only if a) if they were just opened and b)
|
||||
# if another window was just closed.
|
||||
# 'on_switch':
|
||||
# Lone windows will be flashed only upon switching desktops.
|
||||
flash-lone-windows: 'always'
|
||||
|
||||
|
||||
# Defining window-specific flash rules
|
||||
#
|
||||
# X11-based window managers (e.g i3, bspwm)
|
||||
# -----------------------------------------
|
||||
# Flash rules are defined by matching the WM_CLASS property of a window. To get
|
||||
# the WM_CLASS property use 'xprop WM_CLASS' and click on a window. The
|
||||
# property is a tuple of the form (window-id, window-class). The window-class
|
||||
# is usually the name of the application, but not always.
|
||||
#
|
||||
#
|
||||
# Say I'd like to set all 'termite' windows to 80% opacity but leave other
|
||||
# windows at full opacity:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# I also would prefer that firefox windows are not flashed on focus:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - window-class: Termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# For more complicated rules, you can use (python-style) regexes:
|
||||
#
|
||||
# rules:
|
||||
# - window-id: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
#
|
||||
# Sway
|
||||
# ----
|
||||
# Native wayland apps can be matched using the app_id and window name. These
|
||||
# can be found using `swaymsg -t get_tree`. XWayland apps are matched with
|
||||
# using WM_CLASS as above (this can also be found with `swaymsg`)
|
||||
#
|
||||
# Given that termite is wayland native and firefox is not, the rules above
|
||||
# could instead be written:
|
||||
#
|
||||
# rules:
|
||||
# - window-class: firefox
|
||||
# flash-on-focus: False
|
||||
# - app-id: termite
|
||||
# default-opacity: 0.8
|
||||
#
|
||||
# rules:
|
||||
# - window-name: ^(?!termite)$
|
||||
# default-opacity: 0.8
|
||||
rules:
|
||||
- app-id: kitty
|
||||
flash-opacity: 0.85
|
||||
default-opacity: 0.94
|
||||
- app-id: org.pwmt.zathura
|
||||
flash-opacity: 0.85
|
||||
default-opacity: 0.94
|
||||
9
kanshi/.config/kanshi/config
Normal file
9
kanshi/.config/kanshi/config
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
}
|
||||
|
||||
profile Bell {
|
||||
output "eDP-1" mode 2256x1504@59.999Hz position 2137,425 transform normal scale 1.399999976158142
|
||||
output "DP-3" mode 1920x1080@59.951Hz position 0,0 transform normal scale 0.9
|
||||
}
|
||||
@@ -3,5 +3,13 @@
|
||||
include current-theme.conf
|
||||
# END_KITTY_THEME
|
||||
#
|
||||
background_opacity 0.87
|
||||
enable_audio_bell no
|
||||
touch_scroll_multiplier 8.0
|
||||
|
||||
|
||||
# BEGIN_KITTY_FONTS
|
||||
font_family family="Liberation Mono"
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
# END_KITTY_FONTS
|
||||
|
||||
@@ -1,50 +1,58 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
||||
"auto-session": { "branch": "main", "commit": "9e0a169b6fce8791278abbd110717b921afe634d" },
|
||||
"cellular-automaton.nvim": { "branch": "main", "commit": "b7d056dab963b5d3f2c560d92937cb51db61cb5b" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
|
||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"copilot.vim": { "branch": "release", "commit": "1e135c5303bc60598f6314a2276f31dc91aa34dd" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "5162edb1442a729a885c45455a07e9a89058be2f" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "d5f74ce4dfdd82848f3f4eac65fe6e29ac5df4c2" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "6e4027ae957cddf7b193adfaec4a8f9e03b4555f" },
|
||||
"harpoon": { "branch": "master", "commit": "ccae1b9bec717ae284906b0bf83d720e59d12b91" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
|
||||
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "a35468cd72645dbd52c0624ceead5f301c566dff" },
|
||||
"auto-session": { "branch": "main", "commit": "fffb13dcbe8731b8650e5bf1caa749a485d20556" },
|
||||
"cellular-automaton.nvim": { "branch": "main", "commit": "1606e9d5d04ff254023c3f3c62842d065708d6d3" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
|
||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
|
||||
"cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"copilot.lua": { "branch": "master", "commit": "c1bb86abbed1a52a11ab3944ef00c8410520543d" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "00e38a379bab3389e187b3953566d67d494dfddd" },
|
||||
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },
|
||||
"image.nvim": { "branch": "master", "commit": "4c51d6202628b3b51e368152c053c3fb5c5f76f2" },
|
||||
"jupytext.nvim": { "branch": "main", "commit": "c8baf3ad344c59b3abd461ecc17fc16ec44d0f7b" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"lsp-colors.nvim": { "branch": "main", "commit": "2bbe7541747fd339bdd8923fc45631a09bb4f1e5" },
|
||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "b93f040edd57888cd6a1e7d9dee47dddc4463f8f" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "77550f2f6cbf0959ef1583d845661af075f3442b" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "273fdde8ac5e51f3a223ba70980e52bbc09d9f6f" },
|
||||
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
|
||||
"molten-nvim": { "branch": "main", "commit": "8346bba69e0de96278dad2038e9be74605908b7d" },
|
||||
"neoformat": { "branch": "master", "commit": "4372abb846f43ec121df40e620682c985ebc8286" },
|
||||
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
|
||||
"nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "8f3c541407e691af6163e2447f3af1bd6e17f9a3" },
|
||||
"nvim-dap": { "branch": "master", "commit": "6ae8a14828b0f3bff1721a35a1dfd604b6a933bb" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "5934302d63d1ede12c0b22b6f23518bb183fc972" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "aa5f4f4ee10b2688fb37fa46215672441d5cd5d9" },
|
||||
"nvim-nio": { "branch": "master", "commit": "d8743224616f8107347ddebc77cdbf1e488bdee2" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "347e1eb35264677f66a79466bb5e3d111968e12c" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "9a47a523e3b9e49d3fa14d5743b9860a66eca731" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "794bba734ec95eaff9bb82fbd112473be2087283" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "89942ad366c8a9bb93f82411de17dc7c644b4e3b" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
|
||||
"session-lens": { "branch": "main", "commit": "1b65d8e1bcd1836c5135cce118ba18d662a9dabd" },
|
||||
"markdown-toc.nvim": { "branch": "main", "commit": "5f51c86a416d7da6c0708d4ea354722fec7bb2b0" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "bb30c422329e86fcaa4e4920181f6715d634e516" },
|
||||
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||
"molten-nvim": { "branch": "main", "commit": "a286aa914d9a154bc359131aab788b5a077a5a99" },
|
||||
"neoformat": { "branch": "master", "commit": "9d2e28993e06e86b88c364b6176612b917468f3e" },
|
||||
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-dap": { "branch": "master", "commit": "2edd6375692d9ac1053d50acfe415c1eb2ba92d0" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "99d3a0f26bfe402f45257c1398287aef252cbe2d" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
|
||||
"oil.nvim": { "branch": "master", "commit": "08c2bce8b00fd780fb7999dbffdf7cd174e896fb" },
|
||||
"otter.nvim": { "branch": "main", "commit": "f3a401851c25c64220dcf2470252a1adc28308d5" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "72c68aab0358c92f451168b704c411c4a3e3410e" },
|
||||
"pastify.nvim": { "branch": "main", "commit": "4a1d1e03c3ae725ee4af796deca8c7c169ef626e" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||
"quarto-nvim": { "branch": "main", "commit": "5325af3731ac9840b308791f08ad660958d76163" },
|
||||
"session-lens": { "branch": "main", "commit": "eae46b472b3150f5ec0f977556e8085683d49eb0" },
|
||||
"sqlite.nvim": { "branch": "master", "commit": "a8466c830a89794c2eafa41b41dd11fdf4a0d7ca" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "066cccf48a43553a80a210eb3be89a15d789d6e6" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "b9cf677f20bb2faa2dacfa870b084e568dca9572" },
|
||||
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
||||
"vim-doge": { "branch": "master", "commit": "a96aef58c04e30caf0ce6e98da2e43694624df18" },
|
||||
"vim-flog": { "branch": "master", "commit": "6289ab2e237ceeefdbcc7eb584b63d144bf88d94" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "dac8e5c2d85926df92672bf2afb4fc48656d96c7" },
|
||||
"time-tracker.nvim": { "branch": "master", "commit": "c84998bbadb1afca8e09943b1c14bafe1711bb9a" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "3609bb9a82bbab1ef95cf2c27ce7e52267a7d40d" },
|
||||
"undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" },
|
||||
"vim-doge": { "branch": "master", "commit": "03a84072ef21b205237c77986c78914395d646c3" },
|
||||
"vim-flog": { "branch": "master", "commit": "665b16ac8915f746bc43c9572b4581a5e9047216" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"vimtex": { "branch": "master", "commit": "a80934749c69cc6875b3c9b13ef59573a4824fb2" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
||||
"vimtex": { "branch": "master", "commit": "e10525a5aa65e2544f11e680dd81c77fba800248" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
|
||||
}
|
||||
19
nvim/.config/nvim/lua/disabled_plugins/avante.lua
Normal file
19
nvim/.config/nvim/lua/disabled_plugins/avante.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = false,
|
||||
version = false, -- set this if you want to always pull the latest change
|
||||
opts = {
|
||||
provider = "copilot"
|
||||
},
|
||||
build = "make",
|
||||
dependencies = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||
"zbirenbaum/copilot.lua" -- for providers='copilot'
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"utilyre/barbecue.nvim",
|
||||
name = "barbecue",
|
||||
version = "*",
|
||||
dependencies = {"SmiteshP/nvim-navic", "nvim-tree/nvim-web-devicons"},
|
||||
config = function()
|
||||
require("barbecue").setup()
|
||||
end,
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"GCBallesteros/jupytext.nvim",
|
||||
config = true
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"seandewar/killersheep.nvim",
|
||||
config = function()
|
||||
require("killersheep").setup {
|
||||
gore = true, -- Enables/disables blood and gore.
|
||||
keymaps = {
|
||||
move_left = "h", -- Keymap to move cannon to the left.
|
||||
move_right = "l", -- Keymap to move cannon to the right.
|
||||
shoot = "<Space>" -- Keymap to shoot the cannon.
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
||||
}
|
||||
25
nvim/.config/nvim/lua/overseer/template/user/cargo_build.lua
Normal file
25
nvim/.config/nvim/lua/overseer/template/user/cargo_build.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
name = "Cargo Build",
|
||||
builder = function()
|
||||
local file = vim.fn.expand("%:p")
|
||||
return {
|
||||
cmd = {
|
||||
"cargo"
|
||||
},
|
||||
args = {
|
||||
"build"
|
||||
},
|
||||
components = {
|
||||
{
|
||||
"on_output_quickfix"
|
||||
},
|
||||
"default"
|
||||
}
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = {
|
||||
"rust",
|
||||
}
|
||||
}
|
||||
}
|
||||
22
nvim/.config/nvim/lua/overseer/template/user/cargo_clean.lua
Normal file
22
nvim/.config/nvim/lua/overseer/template/user/cargo_clean.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
name = "Cargo Clean",
|
||||
builder = function()
|
||||
local file = vim.fn.expand("%:p")
|
||||
return {
|
||||
cmd = {
|
||||
"cargo"
|
||||
},
|
||||
args = {
|
||||
"clean",
|
||||
},
|
||||
components = {
|
||||
"default"
|
||||
}
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = {
|
||||
"rust",
|
||||
}
|
||||
}
|
||||
}
|
||||
22
nvim/.config/nvim/lua/overseer/template/user/cargo_run.lua
Normal file
22
nvim/.config/nvim/lua/overseer/template/user/cargo_run.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
name = "Cargo Run",
|
||||
builder = function()
|
||||
local file = vim.fn.expand("%:p")
|
||||
return {
|
||||
cmd = {
|
||||
"cargo"
|
||||
},
|
||||
args = {
|
||||
"run"
|
||||
},
|
||||
components = {
|
||||
"default"
|
||||
}
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = {
|
||||
"rust"
|
||||
}
|
||||
}
|
||||
}
|
||||
24
nvim/.config/nvim/lua/overseer/template/user/cargo_test.lua
Normal file
24
nvim/.config/nvim/lua/overseer/template/user/cargo_test.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
name = "Cargo Test",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = {
|
||||
"cargo"
|
||||
},
|
||||
args = {
|
||||
"test",
|
||||
},
|
||||
components = {
|
||||
{
|
||||
"on_output_quickfix"
|
||||
},
|
||||
"default"
|
||||
}
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = {
|
||||
"rust",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ return {
|
||||
"RelWithDebInfo",
|
||||
"MinSizeRel"
|
||||
},
|
||||
default = "Debug"
|
||||
default = "Release"
|
||||
},
|
||||
generator = {
|
||||
type = "enum",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
local function clamp(x, min, max) return math.max(math.min(x, max), min) end
|
||||
|
||||
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())
|
||||
if math.fmod(math.random(100), 5) == 0 then
|
||||
if math.random(0, 1) == 0 then
|
||||
i = 1
|
||||
else
|
||||
i = 2
|
||||
end
|
||||
cdf[1] = 0
|
||||
for j = 2, #pmf+1 do
|
||||
cdf[j] = cdf[j - 1] + pmf[j - 1]
|
||||
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
|
||||
|
||||
-----------------
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-lualine/lualine.nvim"
|
||||
},
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"github/copilot.vim",
|
||||
event = {
|
||||
"BufReadPost",
|
||||
"BufNewFile"
|
||||
},
|
||||
cmd = {
|
||||
"Copilot"
|
||||
},
|
||||
init = function()
|
||||
vim.g.copilot_no_tab_map = true
|
||||
vim.g.copilot_assume_mapped = true
|
||||
vim.api.nvim_set_keymap("i", "<C-y>", 'copilot#Accept("<CR>")', {
|
||||
silent = true,
|
||||
expr = true
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
26
nvim/.config/nvim/lua/plugins/csvview.lua
Normal file
26
nvim/.config/nvim/lua/plugins/csvview.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
"hat0uma/csvview.nvim",
|
||||
---@module "csvview"
|
||||
---@type CsvView.Options
|
||||
opts = {
|
||||
parser = { comments = { "#", "//" } },
|
||||
keymaps = {
|
||||
-- Text objects for selecting fields
|
||||
textobject_field_inner = { "if", mode = { "o", "x" } },
|
||||
textobject_field_outer = { "af", mode = { "o", "x" } },
|
||||
-- Excel-like navigation:
|
||||
-- Use <Tab> and <S-Tab> to move horizontally between fields.
|
||||
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
|
||||
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
|
||||
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
|
||||
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
|
||||
jump_next_row = { "<Enter>", mode = { "n", "v" } },
|
||||
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
|
||||
},
|
||||
},
|
||||
cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
|
||||
init = function()
|
||||
vim.keymap.set("n", "<leader>ce", ":CsvViewEnable display_mode=border header_lnum=1<CR>")
|
||||
vim.keymap.set("n", "<leader>cd", ":CsvViewDisable<CR>")
|
||||
end
|
||||
}
|
||||
@@ -14,7 +14,12 @@ return {
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
lazy = false,
|
||||
config = true
|
||||
opts = {
|
||||
registries = {
|
||||
"github:antsouchlos/mason-registry",
|
||||
"github:mason-org/mason-registry"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
-- Autocompletion
|
||||
@@ -136,9 +141,6 @@ return {
|
||||
vim.keymap.set("n", "<leader>la", function() vim.lsp.buf.code_action() end, {
|
||||
desc = "Code actions"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>la", function() vim.lsp.buf.code_action() end, {
|
||||
desc = "Code actions"
|
||||
})
|
||||
end)
|
||||
|
||||
require('mason-lspconfig').setup({
|
||||
@@ -174,15 +176,17 @@ return {
|
||||
}
|
||||
}
|
||||
|
||||
require('lspconfig').matlab_ls.setup({
|
||||
settings = {
|
||||
filetypes = {"matlab"},
|
||||
matlab = {
|
||||
installPath = "/opt/matlab/R2023a/"
|
||||
},
|
||||
},
|
||||
single_file_support = true
|
||||
})
|
||||
-- require('lspconfig').matlab_ls.setup({
|
||||
-- settings = {
|
||||
-- filetypes = {
|
||||
-- "matlab"
|
||||
-- },
|
||||
-- matlab = {
|
||||
-- installPath = "/opt/matlab/R2023a/"
|
||||
-- }
|
||||
-- },
|
||||
-- single_file_support = true
|
||||
-- })
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
19
nvim/.config/nvim/lua/plugins/lua_copilot.lua
Normal file
19
nvim/.config/nvim/lua/plugins/lua_copilot.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
-- event = "InsertEnter",
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = "<C-l>"
|
||||
-- accept_word = false,
|
||||
-- accept_line = false,
|
||||
-- next = "<M-]>",
|
||||
-- prev = "<M-[>",
|
||||
-- dismiss = "<C-]>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,17 @@ return {
|
||||
'mason',
|
||||
'lazy',
|
||||
'toggleterm'
|
||||
},
|
||||
sections = {
|
||||
lualine_x = {
|
||||
{
|
||||
require("noice").api.statusline.mode.get,
|
||||
cond = require("noice").api.statusline.mode.has,
|
||||
color = {
|
||||
fg = "#ff9e64"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,27 @@
|
||||
return {
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = {
|
||||
"MarkdownPreviewToggle",
|
||||
"MarkdownPreview",
|
||||
"MarkdownPreviewStop"
|
||||
},
|
||||
ft = {
|
||||
"markdown"
|
||||
},
|
||||
build = function() vim.fn["mkdp#util#install"]() end
|
||||
}
|
||||
|
||||
-- Install markdown preview, use npx if available.
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = {
|
||||
"MarkdownPreviewToggle",
|
||||
"MarkdownPreview",
|
||||
"MarkdownPreviewStop"
|
||||
},
|
||||
ft = {
|
||||
"markdown"
|
||||
},
|
||||
build = function(plugin)
|
||||
if vim.fn.executable "npx" then
|
||||
vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install")
|
||||
else
|
||||
vim.cmd [[Lazy load markdown-preview.nvim]]
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end
|
||||
end,
|
||||
init = function()
|
||||
if vim.fn.executable "npx" then
|
||||
vim.g.mkdp_filetypes = {
|
||||
"markdown"
|
||||
}
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
7
nvim/.config/nvim/lua/plugins/markdown_toc.lua
Normal file
7
nvim/.config/nvim/lua/plugins/markdown_toc.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"hedyhli/markdown-toc.nvim",
|
||||
cmd = {
|
||||
"Mtoc"
|
||||
}, -- Or, lazy load on "Mtoc" command
|
||||
opts = {}
|
||||
}
|
||||
@@ -1,30 +1,87 @@
|
||||
return {
|
||||
{
|
||||
"benlubas/molten-nvim",
|
||||
build = ":UpdateRemotePlugins",
|
||||
version = "v1.7.0",
|
||||
{ -- Ability to show images in the output
|
||||
"3rd/image.nvim",
|
||||
opts = {}
|
||||
}, { -- Use LSP in markdown files
|
||||
"quarto-dev/quarto-nvim",
|
||||
dependencies = {"jmbuhr/otter.nvim", "nvim-treesitter/nvim-treesitter"},
|
||||
ft = {"quarto", "markdown"},
|
||||
init = function()
|
||||
vim.keymap.set("n", "<localleader>mi", ":MoltenInit<CR>", {
|
||||
silent = true,
|
||||
desc = "Initialize the plugin"
|
||||
})
|
||||
vim.keymap.set("n", "<localleader>e", ":MoltenEvaluateOperator<CR>", {
|
||||
silent = true,
|
||||
desc = "run operator selection"
|
||||
})
|
||||
vim.keymap.set("n", "<localleader>rl", ":MoltenEvaluateLine<CR>", {
|
||||
silent = true,
|
||||
desc = "evaluate line"
|
||||
})
|
||||
vim.keymap.set("n", "<localleader>rr", ":MoltenReevaluateCell<CR>", {
|
||||
silent = true,
|
||||
desc = "re-evaluate cell"
|
||||
})
|
||||
vim.keymap.set("v", "<localleader>r", ":<C-u>MoltenEvaluateVisual<CR>gv", {
|
||||
silent = true,
|
||||
desc = "evaluate visual selection"
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'markdown',
|
||||
callback = function()
|
||||
require("quarto").activate()
|
||||
end
|
||||
})
|
||||
|
||||
-- local runner = require("quarto.runner")
|
||||
-- vim.keymap.set("n", "<localleader>rc", runner.run_cell, {
|
||||
-- desc = "run cell",
|
||||
-- silent = true
|
||||
-- })
|
||||
-- vim.keymap.set("n", "<localleader>ra", runner.run_above, {
|
||||
-- desc = "run cell and above",
|
||||
-- silent = true
|
||||
-- })
|
||||
-- vim.keymap.set("n", "<localleader>rA", runner.run_all, {
|
||||
-- desc = "run all cells",
|
||||
-- silent = true
|
||||
-- })
|
||||
-- vim.keymap.set("n", "<localleader>rl", runner.run_line, {
|
||||
-- desc = "run line",
|
||||
-- silent = true
|
||||
-- })
|
||||
-- vim.keymap.set("v", "<localleader>r", runner.run_range, {
|
||||
-- desc = "run visual range",
|
||||
-- silent = true
|
||||
-- })
|
||||
-- vim.keymap.set("n", "<localleader>RA", function() runner.run_all(true) end, {
|
||||
-- desc = "run all cells of all languages",
|
||||
-- silent = true
|
||||
-- })
|
||||
end,
|
||||
opts = {
|
||||
lspFeatures = {
|
||||
languages = {"r", "python", "rust", "julia"},
|
||||
chunks = "all",
|
||||
diagnostics = {enabled = true, triggers = {"BufWritePost"}},
|
||||
completion = {enabled = true}
|
||||
},
|
||||
keymap = {
|
||||
hover = "H",
|
||||
definition = "gd",
|
||||
rename = "<leader>rn",
|
||||
references = "gr",
|
||||
format = "<leader>gf"
|
||||
},
|
||||
codeRunner = {enabled = true, default_method = "molten"}
|
||||
}
|
||||
}, { -- Convert ipynb to markdown and back
|
||||
"GCBallesteros/jupytext.nvim",
|
||||
opts = {
|
||||
style = "markdown",
|
||||
output_extension = "md",
|
||||
force_ft = "markdown"
|
||||
}
|
||||
}, { -- Interactive code evaluation
|
||||
"benlubas/molten-nvim",
|
||||
version = "^1.0.0", -- use version <2.0.0 to avoid breaking changes
|
||||
build = ":UpdateRemotePlugins",
|
||||
init = function()
|
||||
vim.keymap.set("n", "<localleader>mi", ":MoltenInit<CR>",
|
||||
{silent = true, desc = "Initialize the plugin"})
|
||||
vim.keymap.set("n", "<localleader>e", ":MoltenEvaluateOperator<CR>",
|
||||
{silent = true, desc = "run operator selection"})
|
||||
vim.keymap.set("n", "<localleader>rl", ":MoltenEvaluateLine<CR>",
|
||||
{silent = true, desc = "evaluate line"})
|
||||
vim.keymap.set("n", "<localleader>rr", ":MoltenReevaluateCell<CR>",
|
||||
{silent = true, desc = "re-evaluate cell"})
|
||||
vim.keymap.set("v", "<localleader>r",
|
||||
":<C-u>MoltenEvaluateVisual<CR>gv",
|
||||
{silent = true, desc = "evaluate visual selection"})
|
||||
|
||||
vim.g.molten_image_provider = "image.nvim"
|
||||
|
||||
vim.g.molten_auto_open_output = false
|
||||
vim.g.molten_virt_text_output = true
|
||||
vim.g.molten_virt_text_max_lines = 32
|
||||
|
||||
@@ -6,23 +6,113 @@ return {
|
||||
"BufNewFile"
|
||||
},
|
||||
init = function()
|
||||
vim.cmd([[
|
||||
let g:neoformat_enabled_python = ['autopep8']
|
||||
let g:neoformat_enabled_cpp = ['clangformat']
|
||||
let g:neoformat_enabled_c = ['clangformat']
|
||||
let g:neoformat_enable_lua = ['luaformatter']
|
||||
let g:neoformat_enabled_cmake = ['cmakeformat']
|
||||
----------------
|
||||
-- Formatters
|
||||
----------------
|
||||
|
||||
let g:neoformat_markdown_mdformat = {
|
||||
\ 'exe': 'mdformat',
|
||||
\ 'args': ['--wrap=79'],
|
||||
\ 'replace': 1,
|
||||
\ }
|
||||
let g:neoformat_enabled_markdown = ['mdformat']
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "python",
|
||||
callback = function()
|
||||
-- vim.g.neoformat_python_autopep8 = {
|
||||
-- exe = 'autopep8',
|
||||
-- args = {'--max-line-length', '79', '--experimental'},
|
||||
-- -- replace = 1
|
||||
-- }
|
||||
-- vim.g.neoformat_enabled_python = {
|
||||
-- 'autopep8'
|
||||
-- }
|
||||
vim.g.neoformat_enabled_python = {
|
||||
'ruff'
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
let g:neoformat_enabled_latex = ['latexindent']
|
||||
let g:latexindent_opt="-m -l -g=/dev/null"
|
||||
]])
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = {
|
||||
"cpp",
|
||||
"c"
|
||||
},
|
||||
callback = function()
|
||||
vim.g.neoformat_enabled_cpp = {
|
||||
'clangformat'
|
||||
}
|
||||
vim.g.neoformat_enabled_c = {
|
||||
'clangformat'
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "lua",
|
||||
callback = function()
|
||||
vim.g.neoformat_enable_lua = {
|
||||
'luaformatter'
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "cmake",
|
||||
callback = function()
|
||||
vim.g.neoformat_enabled_cmake = {
|
||||
'cmake-format'
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
-- Commented out rust formatter
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "rust",
|
||||
-- callback = function()
|
||||
-- vim.g.neoformat_enabled_rust = {'rustfmt'}
|
||||
-- end
|
||||
-- })
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown",
|
||||
callback = function()
|
||||
vim.g.neoformat_markdown_mdformat = {
|
||||
exe = 'mdformat',
|
||||
args = {
|
||||
'--wrap=79',
|
||||
'--number'
|
||||
},
|
||||
replace = 1
|
||||
}
|
||||
vim.g.neoformat_enabled_markdown = {
|
||||
'mdformat'
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "tex",
|
||||
callback = function()
|
||||
vim.g.neoformat_tex_texfmt = {
|
||||
exe = "tex-fmt",
|
||||
args = {
|
||||
"--stdin",
|
||||
"--tabsize",
|
||||
"4"
|
||||
},
|
||||
stdin = 1
|
||||
}
|
||||
vim.g.neoformat_enabled_tex = {
|
||||
"texfmt"
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
----------------
|
||||
-- Other
|
||||
----------------
|
||||
|
||||
-- vim.cmd([[
|
||||
-- augroup Neoformat
|
||||
-- autocmd!
|
||||
-- autocmd BufWritePre * undojoin | Neoformat
|
||||
-- augroup END
|
||||
-- ]])
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<M-L>', '<cmd>Neoformat<cr>', {
|
||||
noremap = true,
|
||||
|
||||
13
nvim/.config/nvim/lua/plugins/oil.lua
Normal file
13
nvim/.config/nvim/lua/plugins/oil.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
init = function()
|
||||
vim.keymap.set("n", "-", "<CMD>Oil<CR>", {
|
||||
desc = "Open parent directory"
|
||||
})
|
||||
end,
|
||||
lazy = false
|
||||
}
|
||||
@@ -3,7 +3,11 @@ return {
|
||||
config = function()
|
||||
require("overseer").setup({
|
||||
templates = {
|
||||
"builtin",
|
||||
-- "builtin",
|
||||
"user.cargo_build",
|
||||
"user.cargo_clean",
|
||||
"user.cargo_run",
|
||||
"user.cargo_test",
|
||||
"user.cmake_generate",
|
||||
"user.cmake_build",
|
||||
"user.cmake_clean",
|
||||
|
||||
41
nvim/.config/nvim/lua/plugins/pastify.lua
Normal file
41
nvim/.config/nvim/lua/plugins/pastify.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
return {
|
||||
'TobinPalmer/pastify.nvim',
|
||||
cmd = {
|
||||
'Pastify',
|
||||
'PastifyAfter'
|
||||
},
|
||||
-- event = {
|
||||
-- 'BufReadPost'
|
||||
-- }, -- Load after the buffer is read, I like to be able to paste right away
|
||||
keys = {
|
||||
{
|
||||
noremap = true,
|
||||
mode = "x",
|
||||
'<leader>v',
|
||||
"<cmd>PastifyAfter<CR>"
|
||||
},
|
||||
{
|
||||
noremap = true,
|
||||
mode = "n",
|
||||
'<leader>v',
|
||||
"<cmd>PastifyAfter<CR>"
|
||||
},
|
||||
{
|
||||
noremap = true,
|
||||
mode = "n",
|
||||
'<leader>V',
|
||||
"<cmd>Pastify<CR>"
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
require('pastify').setup {
|
||||
opts = {
|
||||
local_path = '/res/'
|
||||
},
|
||||
ft = {
|
||||
markdown = ""
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
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 {
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
tag="v3.4.1",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
@@ -12,48 +13,47 @@ return {
|
||||
'nvim-telescope/telescope.nvim'
|
||||
}
|
||||
},
|
||||
cmd = {
|
||||
"Trouble",
|
||||
"TroubleClose",
|
||||
"TroubleToggle",
|
||||
"TroubleRefresh"
|
||||
},
|
||||
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
|
||||
}
|
||||
opts = {
|
||||
modes = {
|
||||
symbols = {
|
||||
win = {
|
||||
size = 50,
|
||||
}
|
||||
}
|
||||
}
|
||||
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)",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ return {
|
||||
}
|
||||
}
|
||||
|
||||
vim.g.vimtex_view_general_viewer = 'sioyek'
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
vim.g.vimtex_quickfix_mode = 0
|
||||
|
||||
-- Concealment
|
||||
|
||||
@@ -15,26 +15,30 @@ return {
|
||||
},
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
["<leader>"] = {
|
||||
l = {
|
||||
name = "+LSP"
|
||||
},
|
||||
x = {
|
||||
name = "+Trouble"
|
||||
},
|
||||
o = {
|
||||
name = "+Overseer"
|
||||
},
|
||||
d = {
|
||||
name = "+Debug"
|
||||
},
|
||||
f = {
|
||||
name = "+Find"
|
||||
},
|
||||
s = {
|
||||
name = "+Session"
|
||||
},
|
||||
wk.add({
|
||||
{
|
||||
"<leader>d",
|
||||
group = "Debug"
|
||||
},
|
||||
{
|
||||
"<leader>f",
|
||||
group = "Find"
|
||||
},
|
||||
{
|
||||
"<leader>l",
|
||||
group = "LSP"
|
||||
},
|
||||
{
|
||||
"<leader>o",
|
||||
group = "Overseer"
|
||||
},
|
||||
{
|
||||
"<leader>s",
|
||||
group = "Session"
|
||||
},
|
||||
{
|
||||
"<leader>x",
|
||||
group = "Trouble"
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
@@ -9,7 +9,6 @@ vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
|
||||
vim.keymap.set("x", "<leader>p", "\"_dP")
|
||||
vim.keymap.set("n", "<leader>d", "\"_d")
|
||||
vim.keymap.set("v", "<leader>d", "\"_d")
|
||||
|
||||
vim.keymap.set("n", "<leader>y", "\"+y")
|
||||
@@ -20,4 +19,6 @@ vim.keymap.set("n", "Q", "<nop>")
|
||||
vim.keymap.set("n", "q:", "<nop>")
|
||||
vim.cmd [[call nvim_create_user_command('W', 'w', {'nargs': 0})]]
|
||||
|
||||
vim.keymap.set("n", "QQ", ":q!<CR>")
|
||||
|
||||
-- vim.keymap.set("n", "<leader>cb", [[:up | %bd | e#<CR>]])
|
||||
|
||||
@@ -26,3 +26,39 @@ vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = "yes"
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'cpp',
|
||||
callback = function() vim.bo.commentstring = '// %s' end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'rust',
|
||||
callback = function()
|
||||
vim.cmd [[
|
||||
let &efm = ''
|
||||
" Random non issue stuff
|
||||
let &efm .= '%-G%.%#aborting due to previous error%.%#,'
|
||||
let &efm .= '%-G%.%#test failed, to rerun pass%.%#,'
|
||||
" Capture enter directory events for doc tests
|
||||
let &efm .= '%D%*\sDoc-tests %f%.%#,'
|
||||
" Doc Tests
|
||||
let &efm .= '%E---- %f - %o (line %l) stdout ----,'
|
||||
let &efm .= '%Cerror%m,'
|
||||
let &efm .= '%-Z%*\s--> %f:%l:%c,'
|
||||
" Unit tests && `tests/` dir failures
|
||||
" This pattern has to come _after_ the doc test one
|
||||
let &efm .= '%E---- %o stdout ----,'
|
||||
let &efm .= '%Zthread %.%# panicked at %m\, %f:%l:%c,'
|
||||
let &efm .= '%Cthread %.%# panicked at %m,'
|
||||
let &efm .= '%+C%*\sleft: %.%#,'
|
||||
let &efm .= '%+Z%*\sright: %.%#\, %f:%l:%c,'
|
||||
" Compiler Errors and Warnings
|
||||
let &efm .= '%Eerror%m,'
|
||||
let &efm .= '%Wwarning: %m,'
|
||||
let &efm .= '%-Z%*\s--> %f:%l:%c,'
|
||||
]]
|
||||
end
|
||||
})
|
||||
|
||||
vim.opt.exrc = true
|
||||
|
||||
@@ -13,7 +13,7 @@ local d = ls.dynamic_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
local fmta = require("luasnip.extras.fmt").fmta
|
||||
local rep = require("luasnip.extras").rep
|
||||
local line_begin = require("luasnip.extras.expand_conditions").line_begin
|
||||
local conds = require("luasnip.extras.expand_conditions")
|
||||
|
||||
---------------
|
||||
-- Environments
|
||||
@@ -90,7 +90,7 @@ s({trig="notes"},
|
||||
)
|
||||
),
|
||||
|
||||
s({trig="beg"},
|
||||
s({trig="beg", wordTrig=true, snippetType="autosnippet", condition=conds.line_begin},
|
||||
fmta(
|
||||
[[
|
||||
\begin{<>}
|
||||
@@ -105,6 +105,46 @@ s({trig="beg"},
|
||||
)
|
||||
),
|
||||
|
||||
s({trig="item", wordTrig=true, snippetType="autosnippet",
|
||||
condition = function(line_to_cursor, matched_trigger, captures)
|
||||
return tex_utils.in_env("itemize") and conds.line_begin(line_to_cursor, matched_trigger, captures)
|
||||
end},
|
||||
fmta(
|
||||
[[
|
||||
\item <>
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
|
||||
s({trig="item", wordTrig=true, snippetType="autosnippet", condition=conds.line_begin},
|
||||
fmta(
|
||||
[[
|
||||
\begin{itemize}
|
||||
\item <>
|
||||
\end{itemize}
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
|
||||
s({trig="frame", wordTrig=true, snippetType="autosnippet", condition=conds.line_begin},
|
||||
fmta(
|
||||
[[
|
||||
\begin{frame}
|
||||
\frametitle{<>}
|
||||
\end{frame}
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
|
||||
s({trig="sec"},
|
||||
fmta(
|
||||
[[
|
||||
|
||||
@@ -13,6 +13,7 @@ local d = ls.dynamic_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
local fmta = require("luasnip.extras.fmt").fmta
|
||||
local rep = require("luasnip.extras").rep
|
||||
local conds = require("luasnip.extras.expand_conditions")
|
||||
|
||||
|
||||
---------------
|
||||
@@ -56,7 +57,7 @@ end
|
||||
return {
|
||||
|
||||
|
||||
s({trig="ali", snippetType="autosnippet"},
|
||||
s({trig="ali", wordTrig=true, snippetType="autosnippet", condition=conds.line_begin},
|
||||
fmta(
|
||||
[[
|
||||
\begin{align*}
|
||||
@@ -113,6 +114,21 @@ s({trig="matp"},
|
||||
{condition = tex_utils.in_mathzone}
|
||||
),
|
||||
|
||||
s({trig="([^%a])array", regTrig=true, wordTrig=false, snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[
|
||||
<>\begin{array}{c}
|
||||
<>
|
||||
\end{array}
|
||||
]],
|
||||
{
|
||||
f( function(_, snip) return snip.captures[1] end ),
|
||||
i(0),
|
||||
}
|
||||
),
|
||||
{condition = tex_utils.in_mathzone}
|
||||
),
|
||||
|
||||
s({trig='([^%a])int', regTrig=true, wordTrig=false, snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[<>\int_{<>}^{<>} <> d<> ]],
|
||||
@@ -228,13 +244,13 @@ s({trig="([^%a])tt", regTrig=true, wordTrig=false, snippetType="autosnippet"},
|
||||
{condition = tex_utils.in_mathzone}
|
||||
),
|
||||
|
||||
s({trig=".", snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[\cdot ]],
|
||||
{}
|
||||
),
|
||||
{condition = tex_utils.in_mathzone}
|
||||
),
|
||||
-- s({trig=".", snippetType="autosnippet"},
|
||||
-- fmta(
|
||||
-- [[\cdot ]],
|
||||
-- {}
|
||||
-- ),
|
||||
-- {condition = tex_utils.in_mathzone}
|
||||
-- ),
|
||||
|
||||
s({trig="$$", snippetType="autosnippet"},
|
||||
fmta(
|
||||
|
||||
9
papis/.config/papis/config
Normal file
9
papis/.config/papis/config
Normal file
@@ -0,0 +1,9 @@
|
||||
[books]
|
||||
dir = ~/Documents/literature/books
|
||||
|
||||
[keyboard]
|
||||
dir = ~/Documents/literature/keyboard
|
||||
|
||||
[settings]
|
||||
default-library = keyboard
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
set $mod Mod4
|
||||
set $term kitty
|
||||
# set $menu dmenu_path | wofi --show=run --matching fuzzy | xargs swaymsg exec --
|
||||
set $menu dmenu_path | wofi --show=run --matching | xargs swaymsg exec --
|
||||
set $lock swaylock --screenshot --effect-blur 10x10 --effect-vignette 0.5:1 --ring-color 3c3836 --key-hl-color d65e0e -f
|
||||
|
||||
#xwayland disable
|
||||
|
||||
output * bg ~/.config/sway/wallpapers/mountains.jpg fill
|
||||
|
||||
output eDP-1 scale 1.4
|
||||
|
||||
bindswitch --reload --locked lid:on exec $lock
|
||||
exec sway-audio-idle-inhibit
|
||||
exec swayidle -w \
|
||||
timeout 10 $lock \
|
||||
@@ -18,8 +16,9 @@ exec swayidle -w \
|
||||
|
||||
bindsym Control+Mod1+l exec $lock
|
||||
|
||||
bindsym $mod+p exec kitty -e python
|
||||
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy
|
||||
|
||||
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\\"; send \\"import torch\n\\"; interact"
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+d exec $menu
|
||||
@@ -27,42 +26,54 @@ bindsym $mod+d exec $menu
|
||||
floating_modifier $mod normal
|
||||
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+e exec --no-startup-id i3-msg exit
|
||||
bindsym $mod+Shift+e exec swaymsg exit
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
position top
|
||||
}
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 --max-volume 100 #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 --max-volume 100 #decrease sound volume
|
||||
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 --max-volume 300 #increase sound volume
|
||||
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 --max-volume 300 #decrease sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
|
||||
bindsym XF86AudioRaiseVolume exec pulsemixer --change-volume +5 --max-volume 100 #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec pulsemixer --change-volume -5 --max-volume 100 #decrease sound volume
|
||||
bindsym Shift+XF86AudioRaiseVolume exec pulsemixer --change-volume +5 --max-volume 300 #increase sound volume
|
||||
bindsym Shift+XF86AudioLowerVolume exec pulsemixer --change-volume -5 --max-volume 300 #decrease sound volume
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
|
||||
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
|
||||
bindsym XF86AudioNext exec --no-startup-id playerctl next
|
||||
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioPause exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
|
||||
bindsym XF86MonBrightnessUp exec /bin/sh -c ~/.config/sway/scripts/increase_brightness
|
||||
bindsym XF86MonBrightnessDown exec /bin/sh -c ~/.config/sway/scripts/decrease_brightness
|
||||
|
||||
include ~/.config/sway/config.d/*
|
||||
|
||||
bindsym $mod+c exec --no-startup-id kitty -e python
|
||||
bindsym $mod+c exec kitty -e python
|
||||
|
||||
for_window [title="blueman-manager"] floating enable
|
||||
|
||||
for_window [class="^.*"] border pixel 3
|
||||
for_window [class="^.*"] border pixel 0
|
||||
default_floating_border none
|
||||
default_floating_border normal 0
|
||||
hide_edge_borders smart
|
||||
|
||||
gaps inner 20
|
||||
for_window [app_id="org.pwmt.zathura"] opacity 0.94
|
||||
for_window [app_id="kitty"] opacity 0.94
|
||||
|
||||
exec_always --no-startup-id bash -c "killall flashfocus; flashfocus --flash-opacity 0.92 -l never"
|
||||
|
||||
|
||||
gaps inner 15
|
||||
smart_gaps on
|
||||
bindsym $mod+g exec swaymsg gaps inner current toggle 15
|
||||
|
||||
blur enable
|
||||
blur_radius 8
|
||||
# blur enable
|
||||
# blur_radius 1
|
||||
# blur_passes 4
|
||||
# blur_noise 0.1
|
||||
|
||||
exec --no-startup-id dbus-update-activation-environment DISPLAY
|
||||
|
||||
exec dbus-update-activation-environment DISPLAY
|
||||
|
||||
|
||||
include ~/.config/sway/config.d/*
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
exec_always --no-startup-id nm-applet &
|
||||
exec_always --no-startup-id blueman-applet &
|
||||
exec_always nm-applet &
|
||||
#exec_always blueman-applet &
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
input "type:touchpad" {
|
||||
left_handed enabled
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
scroll_factor 0.4
|
||||
dwt disable
|
||||
dwt enable
|
||||
accel_profile "adaptive"
|
||||
pointer_accel 0
|
||||
drag enabled
|
||||
drag_lock disabled
|
||||
}
|
||||
|
||||
input type:keyboard {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
set $ws1 "1: Dev"
|
||||
set $ws2 "2: Firefox"
|
||||
set $ws3 "3: Management"
|
||||
set $ws4 "4"
|
||||
set $ws4 "4: Mehscellaneous"
|
||||
set $ws5 "5: Doc"
|
||||
set $ws6 "6"
|
||||
set $ws6 "6: 3D-Printing"
|
||||
set $ws7 "7: Music"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
@@ -31,21 +31,29 @@ bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# assign [class="firefox"] $ws2
|
||||
assign [class="Spotify"] $ws7
|
||||
|
||||
exec --no-startup-id i3-msg 'workspace $ws1; exec kitty; $ws1'
|
||||
exec --no-startup-id i3-msg 'workspace $ws2; exec firefox'
|
||||
exec swaymsg 'workspace $ws1; exec kitty; $ws1'
|
||||
exec swaymsg 'workspace $ws2; exec firefox'
|
||||
|
||||
#
|
||||
## Multiple monitors
|
||||
#
|
||||
#workspace $ws1 output DP1-3 eDP1
|
||||
#workspace $ws2 output eDP1 DP1-3
|
||||
#workspace $ws3 output eDP1 DP1-3
|
||||
#workspace $ws4 output DP1-3 eDP1
|
||||
#workspace $ws5 output eDP1
|
||||
#workspace $ws6 output eDP1
|
||||
#workspace $ws7 output eDP1
|
||||
#workspace $ws8 output eDP1
|
||||
|
||||
set $this_disp "eDP-1"
|
||||
set $other_disp "DP-3"
|
||||
# set $this_disp "eDP-1"
|
||||
# set $other_disp "DP-3"
|
||||
|
||||
# output edP-1 mode 1920x1080@120Hz
|
||||
# output edP-1
|
||||
|
||||
workspace $ws1 output $other_disp $this_disp
|
||||
workspace $ws2 output $this_disp
|
||||
workspace $ws3 output $this_disp
|
||||
workspace $ws4 output $other_disp $this_disp
|
||||
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
|
||||
|
||||
@@ -11,6 +11,8 @@ set -g status-right-length 90
|
||||
set -g status-justify centre
|
||||
set -s escape-time 0
|
||||
|
||||
set -g allow-passthrough on
|
||||
|
||||
## COLORSCHEME: gruvbox dark (medium)
|
||||
set-option -g status "on"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"modules-center": [
|
||||
"clock#1",
|
||||
"clock#2",
|
||||
"clock#3",
|
||||
"custom/clock",
|
||||
],
|
||||
"modules-right": [
|
||||
"pulseaudio",
|
||||
@@ -37,9 +37,10 @@
|
||||
"format": "{:%d-%m-%Y}",
|
||||
"tooltip": false
|
||||
},
|
||||
"clock#3": {
|
||||
"format": "{:%H:%M}",
|
||||
"tooltip": false
|
||||
"custom/clock": {
|
||||
"exec": "date +\"%H:%M\"",
|
||||
"interval": 10,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
|
||||
40
zathura/.config/zathura/zathurarc
Normal file
40
zathura/.config/zathura/zathurarc
Normal file
@@ -0,0 +1,40 @@
|
||||
set notification-error-bg "rgba(29,32,33,1)" # bg
|
||||
set notification-error-fg "rgba(251,73,52,1)" # bright:red
|
||||
set notification-warning-bg "rgba(29,32,33,1)" # bg
|
||||
set notification-warning-fg "rgba(250,189,47,1)" # bright:yellow
|
||||
set notification-bg "rgba(29,32,33,1)" # bg
|
||||
set notification-fg "rgba(184,187,38,1)" # bright:green
|
||||
|
||||
set completion-bg "rgba(80,73,69,1)" # bg2
|
||||
set completion-fg "rgba(235,219,178,1)" # fg
|
||||
set completion-group-bg "rgba(60,56,54,1)" # bg1
|
||||
set completion-group-fg "rgba(146,131,116,1)" # gray
|
||||
set completion-highlight-bg "rgba(131,165,152,1)" # bright:blue
|
||||
set completion-highlight-fg "rgba(80,73,69,1)" # bg2
|
||||
|
||||
# Define the color in index mode
|
||||
set index-bg "rgba(80,73,69,1)" # bg2
|
||||
set index-fg "rgba(235,219,178,1)" # fg
|
||||
set index-active-bg "rgba(131,165,152,1)" # bright:blue
|
||||
set index-active-fg "rgba(80,73,69,1)" # bg2
|
||||
|
||||
set inputbar-bg "rgba(29,32,33,1)" # bg
|
||||
set inputbar-fg "rgba(235,219,178,1)" # fg
|
||||
|
||||
set statusbar-bg "rgba(80,73,69,1)" # bg2
|
||||
set statusbar-fg "rgba(235,219,178,1)" # fg
|
||||
|
||||
set highlight-color "rgba(250,189,47,0.5)" # bright:yellow
|
||||
set highlight-active-color "rgba(254,128,25,0.5)" # bright:orange
|
||||
|
||||
set default-bg "rgba(29,32,33,1)" # bg
|
||||
set default-fg "rgba(235,219,178,1)" # fg
|
||||
set render-loading true
|
||||
set render-loading-bg "rgba(29,32,33,1)" # bg
|
||||
set render-loading-fg "rgba(235,219,178,1)" # fg
|
||||
|
||||
# Recolor book content's color
|
||||
set recolor-lightcolor "rgba(29,32,33,1)" # bg
|
||||
set recolor-darkcolor "rgba(235,219,178,1)" # fg
|
||||
set recolor "true"
|
||||
set recolor-keephue "true" # keep original color
|
||||
101
zsh/.zshrc
101
zsh/.zshrc
@@ -1,9 +1,11 @@
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
HISTSIZE=5000
|
||||
SAVEHIST=5000
|
||||
setopt hist_ignore_all_dups
|
||||
setopt extendedglob
|
||||
unsetopt beep
|
||||
setopt interactivecomments
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
@@ -19,9 +21,10 @@ autoload -Uz vcs_info
|
||||
precmd() { vcs_info }
|
||||
zstyle ':vcs_info:git:*' formats '%b '
|
||||
setopt PROMPT_SUBST
|
||||
PROMPT='%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/fzf/completion.zsh
|
||||
|
||||
alias ssh='kitty +kitten ssh'
|
||||
|
||||
@@ -29,88 +32,30 @@ alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias ll='ls -l'
|
||||
alias la='ls -la'
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
alias ....="cd ../../.."
|
||||
|
||||
export PATH=$PATH:/home/andreas/.local/bin
|
||||
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 nc='z ~/.config/nvim'
|
||||
alias ezc='nvim ~/.zshrc'
|
||||
alias c='cd ~/.dotfiles'
|
||||
alias sc='cd ~/.config/sway && nvim'
|
||||
alias nc='cd ~/.config/nvim && nvim'
|
||||
alias flog='nvim -c "Flog -all"'
|
||||
alias bin='cd ~/.local/bin && nvim'
|
||||
|
||||
alias ait='z ~/Documents/kit/AIT && clear'
|
||||
alias kit='z ~/Documents/kit && clear'
|
||||
alias eml='z ~/Documents/kit/EMLLAB/emllab-challenge && . venv/bin/activate && clear'
|
||||
|
||||
alias hyp='z ~/git/HyperLink_SW && clear'
|
||||
export PATH=$PATH:"$HOME/.cargo/bin"
|
||||
|
||||
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"
|
||||
. "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
bindkey '^l' autosuggest-accept
|
||||
# . "$HOME/.cargo/env"
|
||||
# export PYENV_ROOT="$HOME/.pyenv"
|
||||
# [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
# eval "$(pyenv init - zsh)"
|
||||
|
||||
Reference in New Issue
Block a user