dotfiles

[void/arch] linux dotfiles
git clone git://git.mdnr.space/dotfiles
Log | Files | Refs

commit a8067bf258d78500bd142da8418db77890a31d15
parent c39e5018648558a28f8aefe0b2e9063a45d2bc1a
Author: mehdi-norouzi <mehdeenoroozi@gmail.com>
Date:   Mon, 11 Sep 2023 11:21:36 +0330

Merge branch 'ati-pc'

Diffstat:
Mnewsboat/.config/newsboat/urls | 17+----------------
Mnvim/.config/nvim/after/plugin/colors.lua | 86+++++++++++++++++++++++++++++++++++++++++++------------------------------------
Dnvim/.config/nvim/after/plugin/treesitter-context.lua | 77-----------------------------------------------------------------------------
Dnvim/.config/nvim/after/plugin/treesitter.lua | 33---------------------------------
Mnvim/.config/nvim/lua/mehdi/packer.lua | 48++++++++++++++++++------------------------------
Msuckless/.local/src/dmenu/config.h | 2+-
Msuckless/.local/src/dwm/config.h | 10+++++-----
Msuckless/.local/src/dwmblocks/config.h | 2+-
Myt-dlp/.config/yt-dlp/config | 2+-
9 files changed, 74 insertions(+), 203 deletions(-)

diff --git a/newsboat/.config/newsboat/urls b/newsboat/.config/newsboat/urls @@ -6,7 +6,6 @@ https://feeds.feedburner.com/TheHackersNews " ### BLOG ### " https://bugswriter.com/blog/atom.xml "~bugswriter" https://landchad.net/rss.xml -https://lindypress.net/rss https://lukesmith.xyz/rss.xml https://andrehessling.de/feed/ https://blog.thechases.com/rss.xml @@ -32,7 +31,6 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UClcE-kVhqyiHCcjYwcpfj9w "yt https://www.youtube.com/feeds/videos.xml?channel_id=UC3S8vxwRfqLBdIhgRlDRVzw "yt" "~stacksmashing" https://www.youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA "yt" "~Computerphile" https://www.youtube.com/feeds/videos.xml?channel_id=UCb8bmN_7d3p-Xt5GqYT2KnA "yt" "~Barry Brown" -https://www.youtube.com/feeds/videos.xml?channel_id=UCrUL8K81R4VBzm-KOYwrcxQ "yt" "~Engineer Man" https://www.youtube.com/feeds/videos.xml?channel_id=UCuWLGQB4WRBKvW1C26zA2og "yt" "~Daedalus Community" https://www.youtube.com/feeds/videos.xml?channel_id=UCvn4o822zawXQR5vl32tnwA "yt" "~TechVedas .learn" https://www.youtube.com/feeds/videos.xml?channel_id=UCK1AYe1AVziqPRZyrzbwH2g "yt" "~Andrei Litvin" @@ -43,25 +41,15 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC4KXPjmKwPutGjwFZsEXB5g "yt https://www.youtube.com/feeds/videos.xml?channel_id=UCMGXFEew8I6gzjg3tWen4Gw "yt" "~Quantum Leaps, LLC" https://www.youtube.com/feeds/videos.xml?channel_id=UCVryWqJ4cSlbTSETBHpBUWw "yt" "~Phil’s Lab" https://www.youtube.com/feeds/videos.xml?channel_id=UCY0sQ9hpSR6yZobt1qOv6DA "yt" "~Embedded Systems (book tutorials)" -https://www.youtube.com/feeds/videos.xml?channel_id=UCa1REBV9hyrzGp2mjJCagBg "yt" "~Fastbit Embedded Brain Academy" https://www.youtube.com/feeds/videos.xml?channel_id=UCjPRuknkFjqM6UxxTbCQJ5Q "yt" "~Web learning" -https://www.youtube.com/feeds/videos.xml?channel_id=UCkJm6PVFvuFoIzQ6cWYELCw "yt" "~Matej Blagšič" -https://www.youtube.com/feeds/videos.xml?channel_id=UCuigr_BEzX1g3Qvwq5QjPXg "yt" "~EmbeddedGeek" -https://www.youtube.com/feeds/videos.xml?channel_id=UCvss9daazvQMpBHelXFOaBQ "yt" "~JaJakub" " |__ Linux " https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "yt" "~Luke Smith" https://www.youtube.com/feeds/videos.xml?channel_id=UCf93fPKwotph47H3_KDcRyg "yt" "~Kris Occhipinti" https://www.youtube.com/feeds/videos.xml?channel_id=UCX_WM2O-X96URC5n66G-hvw "yt" "~EF - Linux Made Simple" https://www.youtube.com/feeds/videos.xml?channel_id=UCngn7SVujlvskHRvRKc1cTw "yt" "~BugsWriter" +https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA "yt" "~MentalOutlaw" " |__ Crypto " https://www.youtube.com/feeds/videos.xml?channel_id=UCRvqjQPSeaWn-uEx-w0XOIg "yt" "~Benjamin Cowen" -https://www.youtube.com/feeds/videos.xml?channel_id=UCSmFNmDIN1cwyAD8xGf-tBQ "yt" "~NonStopCrypto" -https://www.youtube.com/feeds/videos.xml?channel_id=UCTSU6hkLGGoZMGfU85u7gSQ "yt" "~CryptoVizArt" -https://www.youtube.com/feeds/videos.xml?channel_id=UCZHQvRWLeQq9FfSOrAwOV6g "yt" "~Channel Hitch" -https://www.youtube.com/feeds/videos.xml?channel_id=UCaLFuLgUOUr-T2uNV1UWvZA "yt" "~Persian Altcoiner " -https://www.youtube.com/feeds/videos.xml?channel_id=UChJDoitU8BCdhxeAeFOQIHg "yt" "~Ziya Sadr" -https://www.youtube.com/feeds/videos.xml?channel_id=UCnhdZlwVd6ocXGhdSyV9Axg "yt" "~CoinMarketCap" -https://www.youtube.com/feeds/videos.xml?channel_id=UCqK_GSMbpiV8spgD3ZGloSw "yt" "~Coin Bureau" " |__ Electronics " https://www.youtube.com/feeds/videos.xml?channel_id=UCBkOVp1Cqz4MR0LYR8vKpZg "yt" "~ALL ABOUT ELECTRONICS" https://www.youtube.com/feeds/videos.xml?channel_id=UCJ0-OtVpF0wOKEqT2Z1HEtA "yt" "~ElectroBOOM" @@ -78,11 +66,8 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCt7fwAhXDy3oNFTAzF2o8Pw "yt https://www.youtube.com/feeds/videos.xml?channel_id=UCRYhCg0DHloE9gn-PAiAYNg "yt" "~deep cuts" " |__ Documentry " https://www.youtube.com/feeds/videos.xml?channel_id=UCbsfyGlrjrKQC0gbzK0-EiA "yt" "~Jared Owen" -https://www.youtube.com/feeds/videos.xml?channel_id=UC9PIn6-XuRKZ5HmYeu46AIw "yt" "~Barely Sociable" -https://www.youtube.com/feeds/videos.xml?channel_id=UCJkMlOu7faDgqh4PfzbpLdg "yt" "~Nerdwriter1" https://www.youtube.com/feeds/videos.xml?channel_id=UCP5tjEmvPItGyLhmjdwP7Ww "yt" "~RealLifeLore" https://www.youtube.com/feeds/videos.xml?channel_id=UCRcgy6GzDeccI7dkbbBna3Q "yt" "~LEMMiNO" -https://www.youtube.com/feeds/videos.xml?channel_id=UCoOjH8D2XAgjzQlneM2W0EQ "yt" "~Jake Tran" " |__ Science & Engineering " https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw "yt" "-3Blue1Brown" https://www.youtube.com/feeds/videos.xml?channel_id=UCR1IuLEqb6UEA_zQ81kwXfg "yt" "~Real Engineering" diff --git a/nvim/.config/nvim/after/plugin/colors.lua b/nvim/.config/nvim/after/plugin/colors.lua @@ -1,45 +1,45 @@ -vim.g.mehdi_colorscheme = "gruvbox-material" +vim.g.mehdi_colorscheme = "monochrome" -require('rose-pine').setup({ +--[[ require('rose-pine').setup({ disable_background = true -}) +}) ]] -require('tokyonight').setup({ - style = "night", - transparent = true, - terminal_colors = true, - dim_inactive = true, - on_highlights = function(hl, c) - -- local prompt = "2d3149" - hl.TelescopeNormal = { - bg = c.bg_dark, - fg = c.fg_dark, - } - hl.TelescopeBorder = { - bg = c.bg_dark, - fg = c.bg_dark, - } - hl.TelescopePromptNormal = { - bg = bg_none, - } - -- hl.TelescopePromptBorder = { - -- bg = prompt, - -- fg = prompt, - -- } - -- hl.TelescopePromptTitle = { - -- bg = prompt, - -- fg = prompt, - -- } - hl.TelescopePreviewTitle = { - bg = c.bg_dark, - fg = c.bg_dark, - } - hl.TelescopeResultsTitle = { - bg = c.bg_dark, - fg = c.bg_dark, - } - end, -}) +-- require('tokyonight').setup({ +-- style = "night", +-- transparent = true, +-- terminal_colors = true, +-- dim_inactive = true, +-- on_highlights = function(hl, c) +-- -- local prompt = "2d3149" +-- hl.TelescopeNormal = { +-- bg = c.bg_dark, +-- fg = c.fg_dark, +-- } +-- hl.TelescopeBorder = { +-- bg = c.bg_dark, +-- fg = c.bg_dark, +-- } +-- hl.TelescopePromptNormal = { +-- bg = bg_none, +-- } +-- -- hl.TelescopePromptBorder = { +-- -- bg = prompt, +-- -- fg = prompt, +-- -- } +-- -- hl.TelescopePromptTitle = { +-- -- bg = prompt, +-- -- fg = prompt, +-- -- } +-- hl.TelescopePreviewTitle = { +-- bg = c.bg_dark, +-- fg = c.bg_dark, +-- } +-- hl.TelescopeResultsTitle = { +-- bg = c.bg_dark, +-- fg = c.bg_dark, +-- } +-- end, +-- }) function ColorMyPencils() vim.g.gruvbox_contrast_dark = 'hard' vim.g.tokyonight_transparent_sidebar = true @@ -85,6 +85,14 @@ function ColorMyPencils() bg = "none" }) + hl("Pmenu", { + bg = "none" + }) + + hl("FloatBorder", { + bg = "#a0a0a0", + fg = "#ffffff" + }) end ColorMyPencils() diff --git a/nvim/.config/nvim/after/plugin/treesitter-context.lua b/nvim/.config/nvim/after/plugin/treesitter-context.lua @@ -1,77 +0,0 @@ -require'treesitter-context'.setup{ - enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) - max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. - trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' - min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. - patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries. - -- For all filetypes - -- Note that setting an entry here replaces all other patterns for this entry. - -- By setting the 'default' entry below, you can control which nodes you want to - -- appear in the context window. - default = { - 'class', - 'function', - 'method', - 'for', - 'while', - 'if', - 'switch', - 'case', - }, - -- Patterns for specific filetypes - -- If a pattern is missing, *open a PR* so everyone can benefit. - tex = { - 'chapter', - 'section', - 'subsection', - 'subsubsection', - }, - rust = { - 'impl_item', - 'struct', - 'enum', - }, - scala = { - 'object_definition', - }, - vhdl = { - 'process_statement', - 'architecture_body', - 'entity_declaration', - }, - markdown = { - 'section', - }, - elixir = { - 'anonymous_function', - 'arguments', - 'block', - 'do_block', - 'list', - 'map', - 'tuple', - 'quoted_content', - }, - json = { - 'pair', - }, - yaml = { - 'block_mapping_pair', - }, - }, - exact_patterns = { - -- Example for a specific filetype with Lua patterns - -- Treat patterns.rust as a Lua pattern (i.e "^impl_item$" will - -- exactly match "impl_item" only) - -- rust = true, - }, - - -- [!] The options below are exposed but shouldn't require your attention, - -- you can safely ignore them. - - zindex = 20, -- The Z-index of the context window - mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' - -- Separator between context and content. Should be a single character string, like '-'. - -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. - separator = nil, -} diff --git a/nvim/.config/nvim/after/plugin/treesitter.lua b/nvim/.config/nvim/after/plugin/treesitter.lua @@ -1,33 +0,0 @@ -require'nvim-treesitter.configs'.setup { - -- A list of parser names, or "all" - ensure_installed = { "help", "c", "lua", "rust", "markdown", "comment" }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - auto_install = true, - - -- List of parsers to ignore installing (for "all") - ignore_install = { "javascript" }, - - ---- If you need to change the installation directory of the parsers (see -> Advanced Setup) - -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")! - - highlight = { - -- `false` will disable the whole extension - enable = true, - - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is - -- the name of the parser) - -- list of language that will be disabled - -- disable = { "c", "rust" }, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, -} diff --git a/nvim/.config/nvim/lua/mehdi/packer.lua b/nvim/.config/nvim/lua/mehdi/packer.lua @@ -8,23 +8,10 @@ return require('packer').startup( -- colorschemes - use 'folke/tokyonight.nvim' - use 'sainnhe/gruvbox-material' - use { "ellisonleao/gruvbox.nvim" } - use { "catppuccin/nvim", as = "catppuccin" } - use { 'tjdevries/colorbuddy.vim' } - use { 'avi-2-avi/catbuddy.nvim' } use { 'sainnhe/gruvbox-material' } use { 'rockerBOO/boo-colorscheme-nvim' } use { 'savq/melange-nvim' } - - use({ - 'rose-pine/neovim', - as = 'rose-pine', - config = function() - vim.cmd('colorscheme rose-pine') - end - }) + use { 'fxn/vim-monochrome' } -- telescope @@ -40,22 +27,22 @@ return require('packer').startup( 'VonHeikemen/lsp-zero.nvim', requires = { -- LSP Support - {'neovim/nvim-lspconfig'}, - {'williamboman/mason.nvim'}, - {'williamboman/mason-lspconfig.nvim'}, + { 'neovim/nvim-lspconfig' }, + { 'williamboman/mason.nvim' }, + { 'williamboman/mason-lspconfig.nvim' }, -- Autocompletion - {'hrsh7th/nvim-cmp'}, - {'hrsh7th/cmp-buffer'}, - {'hrsh7th/cmp-path'}, - {'saadparwaiz1/cmp_luasnip'}, - {'hrsh7th/cmp-nvim-lsp'}, - {'hrsh7th/cmp-nvim-lua'}, + { 'hrsh7th/nvim-cmp' }, + { 'hrsh7th/cmp-buffer' }, + { 'hrsh7th/cmp-path' }, + { 'saadparwaiz1/cmp_luasnip' }, + { 'hrsh7th/cmp-nvim-lsp' }, + { 'hrsh7th/cmp-nvim-lua' }, -- Snippets - {'L3MON4D3/LuaSnip'}, + { 'L3MON4D3/LuaSnip' }, -- Snippet Collection (Optional) - {'rafamadriz/friendly-snippets'}, + { 'rafamadriz/friendly-snippets' }, } } @@ -67,11 +54,11 @@ return require('packer').startup( use { 'rcarriga/nvim-dap-ui' } use { 'ravenxrz/DAPInstall.nvim' } - -- treesitter - use("nvim-treesitter/nvim-treesitter", { - run = ":TSUpdate" - }) - use { "nvim-treesitter/nvim-treesitter-context" } + -- -- treesitter + -- use("nvim-treesitter/nvim-treesitter", { + -- run = ":TSUpdate" + -- }) + -- use { "nvim-treesitter/nvim-treesitter-context" } -- undotree use { 'mbbill/undotree' } @@ -110,4 +97,5 @@ return require('packer').startup( -- tmux-vim-navigator use { 'christoomey/vim-tmux-navigator' } + end) diff --git a/suckless/.local/src/dmenu/config.h b/suckless/.local/src/dmenu/config.h @@ -4,7 +4,7 @@ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=8", + "JetBrainsMono-Regular:size=8", "NotoColorEmoji:pixelsize=8:antialias=true:autohint=true" }; static const unsigned int bgalpha = 0xe0; diff --git a/suckless/.local/src/dwm/config.h b/suckless/.local/src/dwm/config.h @@ -159,10 +159,10 @@ static const Key keys[] = { TAGKEYS( XK_9, 8) { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 5; kill -44 $(pidof dwmblocks)") }, - { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 15; kill -44 $(pidof dwmblocks)") }, - { MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") }, - { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") }, + { MODKEY, XK_minus, spawn, SHCMD("wpctl set-volume @DEFAULT_SINK@ 5%-; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("wpctl set-volume @DEFAULT_SINK@ 15%-; kill -44 $(pidof dwmblocks)") }, + { MODKEY, XK_equal, spawn, SHCMD("wpctl set-volume @DEFAULT_SINK@ 5%+; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("wpctl set-volume @DEFAULT_SINK@ 15%+; kill -44 $(pidof dwmblocks)") }, { MODKEY, XK_BackSpace, spawn, {.v = (const char*[]){ "sysact", NULL } } }, { MODKEY|ShiftMask, XK_BackSpace, spawn, {.v = (const char*[]){ "sysact", NULL } } }, @@ -230,7 +230,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_n, spawn, SHCMD(TERMINAL " -e newsboat ; pkill -RTMIN+6 dwmblocks") }, { MODKEY, XK_m, spawn, {.v = (const char*[]){ TERMINAL, "-e", "ncmpcpp", NULL } } }, - { MODKEY|ShiftMask, XK_m, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") }, + { MODKEY|ShiftMask, XK_m, spawn, SHCMD("wpctl set-mute @DEFAULT_SINK@ toggle; kill -44 $(pidof dwmblocks)") }, { MODKEY, XK_comma, spawn, {.v = (const char*[]){ "mpc", "prev", NULL } } }, { MODKEY|ShiftMask, XK_comma, spawn, {.v = (const char*[]){ "mpc", "seek", "0%", NULL } } }, { MODKEY, XK_period, spawn, {.v = (const char*[]){ "mpc", "next", NULL } } }, diff --git a/suckless/.local/src/dwmblocks/config.h b/suckless/.local/src/dwmblocks/config.h @@ -5,7 +5,7 @@ static const Block blocks[] = { {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, /* {"", "sb-tasks", 10, 26}, */ /* {"", "sb-music", 0, 11}, */ -/* {"", "sb-pacpackages", 0, 8}, */ + {"", "sb-pacpackages", 0, 8}, /* {"", "sb-news", 0, 6}, */ /* {"", "sb-price xmr Monero 🔒 24", 9000, 24}, */ /* {"", "sb-price eth Ethereum 🍸 23", 9000, 23}, */ diff --git a/yt-dlp/.config/yt-dlp/config b/yt-dlp/.config/yt-dlp/config @@ -1,3 +1,3 @@ --proxy="socks5://127.0.0.1:9050" ---path=$HOME/dl/ytdl/videos/ +--path=$HOME/extra/vids/ --output="%(epoch-3600>%d-%m)s/%(title)s.%(ext)s"