diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/BetterDiscord/plugins/BetterSearchPage.plugin.js | 51 | ||||
-rw-r--r-- | .config/BetterDiscord/plugins/PinDMs.config.json | 1 | ||||
-rw-r--r-- | .config/coc/extensions/package.json | 6 | ||||
-rw-r--r-- | .config/i3/config | 3 | ||||
-rw-r--r-- | .config/nvim/coc-settings.json | 13 | ||||
-rw-r--r-- | .config/nvim/init.vim | 7 | ||||
-rw-r--r-- | .config/startpage/index.html | 4 | ||||
-rw-r--r-- | .config/zathura/zathurarc | 1 |
8 files changed, 47 insertions, 39 deletions
diff --git a/.config/BetterDiscord/plugins/BetterSearchPage.plugin.js b/.config/BetterDiscord/plugins/BetterSearchPage.plugin.js index f74c1f1..e63763f 100644 --- a/.config/BetterDiscord/plugins/BetterSearchPage.plugin.js +++ b/.config/BetterDiscord/plugins/BetterSearchPage.plugin.js @@ -1,21 +1,29 @@ -//META{"name":"BetterSearchPage","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterSearchPage","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterSearchPage/BetterSearchPage.plugin.js"}*// +/** + * @name BetterSearchPage + * @authorId 278543574059057154 + * @invite Jx3TjNS + * @donate https://www.paypal.me/MircoWittrien + * @patreon https://www.patreon.com/MircoWittrien + * @website https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterSearchPage + * @source https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterSearchPage/BetterSearchPage.plugin.js + */ module.exports = (_ => { - const config = { + const config = { "info": { "name": "BetterSearchPage", "author": "DevilBro", - "version": "1.1.5", - "description": "Adds some extra controls to the search results page." + "version": "1.1.6", + "description": "Add some extra controls to the search results page" } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -23,23 +31,29 @@ module.exports = (_ => { confirmText: "Download Now", cancelText: "Cancel", onCancel: _ => {delete window.BDFDB_Global.downloadModal;}, - onConfirm: _ => {delete window.BDFDB_Global.downloadModal;require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (error, response, body) => {require("fs").writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), body, _ => {});});} + onConfirm: _ => { + delete window.BDFDB_Global.downloadModal; + require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => { + if (!e && b && b.indexOf(`* @name BDFDB`) > -1) require("fs").writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), b, _ => {}); + else BdApi.alert("Error", "Could not download BDFDB library plugin, try again some time later."); + }); + } }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class BetterSearchPage extends Plugin { + return class BetterSearchPage extends Plugin { onLoad() { this.defaults = { settings: { - addFirstLast: {value:true, description:"Adds a first and last page button."}, - addJumpTo: {value:true, description:"Adds a jump to input field (press enter to jump)."}, - cloneToTheTop: {value:true, description:"Clones the controls to the top of the results page."} + addFirstLast: {value:true, description:"Add a first and last page button"}, + addJumpTo: {value:true, description:"Add a jump to input field (press enter to jump)"}, + cloneToTheTop: {value:true, description:"Clone the controls to the top of the results page"} } }; @@ -63,7 +77,6 @@ module.exports = (_ => { let settingsPanel, settingsItems = []; for (let key in settings) settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, { - className: BDFDB.disCN.marginbottom8, type: "Switch", plugin: this, keys: ["settings", key], @@ -120,7 +133,7 @@ module.exports = (_ => { "aria-label": BDFDB.LanguageUtils.LibraryStrings.first, onClick: _ => {if (currentPage != 1) doJump(1);}, children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, { - className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.searchresultspaginationbutton, currentPage == 1 && BDFDB.disCN.searchresultspaginationdisabled, BDFDB.disCN.focusable), + className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.searchresultspaginationbutton, currentPage == 1 && BDFDB.disCN.searchresultspaginationdisabled), children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, { className: BDFDB.disCN.searchresultspaginationicon, name: BDFDB.LibraryComponents.SvgIcon.Names.LEFT_DOUBLE_CARET @@ -133,7 +146,7 @@ module.exports = (_ => { "aria-label": BDFDB.LanguageUtils.LibraryStrings.last, onClick: _ => {if (currentPage != maxPage) doJump(maxPage);}, children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, { - className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.searchresultspaginationbutton, currentPage >= maxPage && BDFDB.disCN.searchresultspaginationdisabled, BDFDB.disCN.focusable), + className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.searchresultspaginationbutton, currentPage >= maxPage && BDFDB.disCN.searchresultspaginationdisabled), children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, { className: BDFDB.disCN.searchresultspaginationicon, name: BDFDB.LibraryComponents.SvgIcon.Names.RIGHT_DOUBLE_CARET @@ -174,5 +187,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })();
\ No newline at end of file diff --git a/.config/BetterDiscord/plugins/PinDMs.config.json b/.config/BetterDiscord/plugins/PinDMs.config.json index 50781ea..297e056 100644 --- a/.config/BetterDiscord/plugins/PinDMs.config.json +++ b/.config/BetterDiscord/plugins/PinDMs.config.json @@ -25,7 +25,6 @@ "703197442098855997", "642833698315698232", "450987439041806346", - "606832163404644352", "590888637877452840" ], "id": "3586821958853646", diff --git a/.config/coc/extensions/package.json b/.config/coc/extensions/package.json index c5dd216..bfa87f6 100644 --- a/.config/coc/extensions/package.json +++ b/.config/coc/extensions/package.json @@ -1,13 +1,13 @@ { "dependencies": { - "coc-css": ">=1.2.4", + "coc-css": ">=1.2.5", "coc-emmet": ">=1.1.6", "coc-html": ">=1.2.4", "coc-json": ">=1.2.6", "coc-neosnippet": ">=1.2.2", "coc-python": ">=1.2.12", - "coc-snippets": ">=2.1.28", - "coc-tsserver": ">=1.5.5", + "coc-snippets": ">=2.2.1", + "coc-tsserver": ">=1.5.8", "coc-vimtex": ">=1.0.4" } }
\ No newline at end of file diff --git a/.config/i3/config b/.config/i3/config index c6badc3..edba1f3 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -9,7 +9,7 @@ gaps outer $outer_gaps # border color # pywal-start -client.focused #f0f0f0 #050505 #f0f0f0 #111111 #222222 +client.focused #222222 #222222 #f0f0f0 #111111 #222222 client.focused_inactive #050505 #050505 #f0f0f0 #050505 #050505 client.unfocused #050505 #050505 #f0f0f0 #050505 #050505 client.urgent #050505 #ac8a8c #f0f0f0 #ac8a8c #ac8a8c @@ -71,6 +71,7 @@ exec "node ~/.local/share/bin/pywal/wall.js &" exec "picom -b" exec "xbanish &" exec "redshift &" +exec "dunst &" exec --no-startup-id "xset r rate 250 40" exec --no-startup-id "autocutsel &" diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json index 70a6f34..0dcf343 100644 --- a/.config/nvim/coc-settings.json +++ b/.config/nvim/coc-settings.json @@ -1,14 +1,9 @@ { "languageserver": { - "ccls": { - "command": "ccls", - "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"], - "rootPatterns": [".ccls", "compile_commands.json", ".git/", ".hg/"], - "initializationOptions": { - "cache": { - "directory": "/tmp/ccls" - } - } + "clangd": { + "command": "clangd", + "rootPatterns": ["compile_flags.txt", "compile_commands.json"], + "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"] } } } diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 9299449..c0d46e1 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -12,6 +12,7 @@ set ignorecase set smartcase set timeoutlen=500 set mouse=a +set cino=N-s set linebreak " set wrap but don't wrap inside words set viminfo+='1000,n/home/loek/.local/nvim/viminfo set guifont=JetBrainsMono\ NF:h14 @@ -40,7 +41,6 @@ call plug#begin('~/.config/nvim/plugged') " quality of life Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-surround' -" Plug 'Chiel92/vim-autoformat' Plug 'itchyny/lightline.vim' Plug 'terryma/vim-multiple-cursors' Plug 'vim-scripts/colorizer' @@ -56,13 +56,13 @@ Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' Plug 'wellle/targets.vim' Plug 'dstein64/vim-startuptime' +Plug 'vim-scripts/DoxygenToolkit.vim' " language plugins Plug 'lervag/vimtex' Plug 'pangloss/vim-javascript' Plug 'hail2u/vim-css3-syntax' Plug 'octol/vim-cpp-enhanced-highlight' -Plug 'vim-scripts/c.vim' " 'vim=ide' Plug 'neoclide/coc.nvim', {'branch': 'release'} @@ -213,6 +213,7 @@ let g:lightline = { \ }, \ } source $HOME/.config/nvim/mountaineer-lightline.vim +hi! SignColumn guibg=NONE ctermbg=NONE " vimtex config let g:tex_flavor = 'latex' @@ -310,7 +311,7 @@ let g:which_key_map.c = { inoremap <silent><expr> <c-space> coc#refresh() " auto-comment uit -autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +" autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " which key register dict call which_key#register('<Space>', "g:which_key_map") diff --git a/.config/startpage/index.html b/.config/startpage/index.html index ae8691d..ff6d1b5 100644 --- a/.config/startpage/index.html +++ b/.config/startpage/index.html @@ -19,9 +19,9 @@ <div class="column"> <h3 style="color: var(--color4)">nerd shit</h3> <a href="https://github.com/lonkaars">github</a> - <a href="https://10fastfingers.com/typing-test/dutch">10fastfingers</a> + <a href="https://monkeytype.com/">monkey-type</a> <a href="https://frikandelbroodje:3000/">gitea</a> - <a href="https://monkey-type.com/">monkey-type</a> + <a href="https://10fastfingers.com/typing-test/dutch">10fastfingers</a> </div> <div class="column"> <h3 style="color: var(--color5)">ports</h3> diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 86b696e..fdd2203 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,5 +1,4 @@ set scroll-page-aware "true" -set smooth-scroll "true" set scroll-full-overlap 0.01 set scroll-step 100 set font "JetBrainsMono NF 10" |