diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/dunst/dunstrc | 37 | ||||
-rw-r--r-- | .config/fontconfig/fonts.conf | 39 | ||||
-rw-r--r-- | .config/gtk-2.0/gtkrc-2.0 | 3 | ||||
-rw-r--r-- | .config/gtk-3.0/settings.ini | 4 | ||||
-rw-r--r-- | .config/mimeapps.list | 17 | ||||
-rw-r--r-- | .config/mpd/mpd.conf | 21 | ||||
-rw-r--r-- | .config/mpv/input.conf | 18 | ||||
-rw-r--r-- | .config/mpv/mpv.conf | 3 | ||||
-rw-r--r-- | .config/ncmpcpp/bindings | 410 | ||||
-rw-r--r-- | .config/ncmpcpp/config | 20 | ||||
-rw-r--r-- | .config/newsboat/config | 42 | ||||
-rw-r--r-- | .config/nvim/init.vim | 88 | ||||
-rw-r--r-- | .config/picom/picom.conf | 14 | ||||
-rw-r--r-- | .config/user-dirs.dirs | 11 | ||||
-rw-r--r-- | .config/yt-dlp/config | 3 | ||||
-rw-r--r-- | .config/zathura/zathurarc | 2 |
16 files changed, 732 insertions, 0 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..e1f3989 --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,37 @@ +# vim: filetype=cfg + +[global] + width = 300 + height = 300 + origin = top-right + offset = 0x0 + frame_width = 3 + frame_color = "#00aa55" + corner_radius = 15 + gap_size = 10 + idle_threshold = 120 + font = monospace 9 + format = "<b>%s</b>\n%b" + alignment = center + vertical_alignment = center + show_indicators = no + default_icon = ~/.local/share/icons/bell.png + icon_position = left + min_icon_size = 32 + max_icon_size = 48 + +[urgency_low] + background = "#222222" + foreground = "#ffffff" + timeout = 10 + +[urgency_normal] + background = "#222222" + foreground = "#ffffff" + timeout = 10 + +[urgency_critical] + background = "#222222" + foreground = "#ffffff" + frame_color = "#aa2222" + timeout = 0 diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..2549424 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,39 @@ +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<fontconfig> + <alias> + <family>serif</family> + <prefer> + <family>Noto Serif</family> + <family>Joy Pixels</family> + <family>Noto Color Emoji</family> + <family>FontAwesome</family> + </prefer> + </alias> + <alias> + <family>sans-serif</family> + <prefer> + <family>Noto Sans</family> + <family>Joy Pixels</family> + <family>Noto Color Emoji</family> + <family>FontAwesome</family> + </prefer> + </alias> + <alias> + <family>sans</family> + <prefer> + <family>Noto Sans</family> + <family>Joy Pixels</family> + <family>Noto Color Emoji</family> + <family>FontAwesome</family> + </prefer> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>Roboto Mono</family> + <family>Liberation Mono</family> + <family>FontAwesome</family> + </prefer> + </alias> +</fontconfig> diff --git a/.config/gtk-2.0/gtkrc-2.0 b/.config/gtk-2.0/gtkrc-2.0 new file mode 100644 index 0000000..573359b --- /dev/null +++ b/.config/gtk-2.0/gtkrc-2.0 @@ -0,0 +1,3 @@ +gtk-theme-name = "Arc-Gruvbox" +gtk-icon-theme-name = "Arc" +gtk-font-name = "Sans 11" diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..0529883 --- /dev/null +++ b/.config/gtk-3.0/settings.ini @@ -0,0 +1,4 @@ +[Settings] +gtk-theme-name = Arc-Gruvbox +gtk-icon-theme-name = Arc +gtk-font-name = Sans 11 diff --git a/.config/mimeapps.list b/.config/mimeapps.list new file mode 100644 index 0000000..7c86405 --- /dev/null +++ b/.config/mimeapps.list @@ -0,0 +1,17 @@ +[Default Applications] +text/plain=text.desktop +text/xml=text.desktop +text/csv=text.desktop +text/x-shellscript=text.desktop +image/jpeg=img.desktop +image/png=img.desktop +image/gif=img.desktop +image/webp=img.desktop +video/x-matroska=vid.desktop +video/webm=vid.desktop +video/mp4=vid.desktop +application/pdf=pdf.desktop +application/postscript=pdf.desktop; +x-scheme-handler/mailto=mail.desktop; +x-scheme-handler/magnet=torrent.desktop; +application/x-bittorrent=torrent.desktop; diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf new file mode 100644 index 0000000..9e9ff53 --- /dev/null +++ b/.config/mpd/mpd.conf @@ -0,0 +1,21 @@ +music_directory "~/mus" +playlist_directory "~/.local/share/playlists" + +auto_update "yes" +bind_to_address "127.0.0.1" +restore_paused "yes" +max_output_buffer_size "16384" + +audio_output { + type "pulse" + name "pulse" + # type "alsa" + # name "ALSA" +} + +audio_output { + type "fifo" + name "Visualizer feed" + path "/tmp/mpd.fifo" + format "44100:16:2" +} diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf new file mode 100644 index 0000000..921cb19 --- /dev/null +++ b/.config/mpv/input.conf @@ -0,0 +1,18 @@ +l seek 5 +h seek -5 +L seek 2 exact +H seek -2 exact +j add volume -2 +k add volume +2 +a cycle audio +A cycle audio down +c cycle sub +C cycle sub down +b ab-loop +Ctrl+l seek 60 +Ctrl+h seek -60 +Ctrl+a cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" +WHEEL_UP add volume 2 +WHEEL_DOWN add volume -2 +WHEEL_LEFT ignore +WHEEL_RIGHT ignore diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..5de0234 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,3 @@ +osd-on-seek=msg-bar +volume-max=150 +ytdl-format=bestvideo[height<=?1080]+bestaudio/best diff --git a/.config/ncmpcpp/bindings b/.config/ncmpcpp/bindings new file mode 100644 index 0000000..b2c33e5 --- /dev/null +++ b/.config/ncmpcpp/bindings @@ -0,0 +1,410 @@ +def_key "j" + scroll_down + +def_key "k" + scroll_up + +def_key "h" + previous_column + +def_key "h" + master_screen + +def_key "l" + next_column + +def_key "l" + slave_screen + +def_key "mouse" + mouse_event + +def_key "up" + scroll_up + +def_key "shift-up" + select_item + scroll_up + +def_key "down" + scroll_down + +def_key "shift-down" + select_item + scroll_down + +def_key "[" + scroll_up_album + +def_key "]" + scroll_down_album + +def_key "{" + scroll_up_artist + +def_key "}" + scroll_down_artist + +def_key "page_up" + page_up + +def_key "page_down" + page_down + +def_key "home" + move_home + +def_key "end" + move_end + +def_key "insert" + select_item + +def_key "enter" + enter_directory + +def_key "enter" + toggle_output + +def_key "enter" + run_action + +def_key "enter" + play_item + +def_key "p" + add_item_to_playlist + +def_key "p" + toggle_lyrics_update_on_song_change + +def_key "p" + toggle_visualization_type + +def_key "d" + delete_playlist_items + +def_key "d" + delete_browser_items + +def_key "d" + delete_stored_playlist + +def_key "right" + next_column + +def_key "right" + slave_screen + +def_key "right" + volume_up + +def_key "+" + volume_up + +def_key "left" + previous_column + +def_key "left" + master_screen + +def_key "left" + volume_down + +def_key "-" + volume_down + +def_key ":" + execute_command + +def_key "tab" + next_screen + +def_key "shift-tab" + previous_screen + +def_key "f1" + show_help + +def_key "1" + show_playlist + +def_key "2" + show_browser + +def_key "2" + change_browse_mode + +def_key "3" + show_search_engine + +def_key "3" + reset_search_engine + +def_key "4" + show_media_library + +def_key "4" + toggle_media_library_columns_mode + +def_key "5" + show_playlist_editor + +def_key "6" + show_tag_editor + +def_key "7" + show_outputs + +def_key "8" + show_visualizer + +def_key "=" + show_clock + +def_key "@" + show_server_info + +def_key "s" + stop + +def_key "space" + pause + +def_key "J" + next + +def_key "K" + previous + +def_key "ctrl-h" + jump_to_parent_directory + +def_key "ctrl-h" + replay_song + +def_key "backspace" + jump_to_parent_directory + +def_key "backspace" + replay_song + +def_key "f" + seek_forward + +def_key "b" + seek_backward + +def_key "r" + toggle_repeat + +def_key "z" + toggle_random + +def_key "y" + save_tag_changes + +def_key "y" + start_searching + +def_key "y" + toggle_single + +def_key "R" + toggle_consume + +def_key "Y" + toggle_replay_gain_mode + +def_key "T" + toggle_add_mode + +def_key "|" + toggle_mouse + +def_key "#" + toggle_bitrate_visibility + +def_key "Z" + shuffle + +def_key "x" + toggle_crossfade + +def_key "X" + set_crossfade + +def_key "u" + update_database + +def_key "ctrl-s" + sort_playlist + +def_key "ctrl-s" + toggle_browser_sort_mode + +def_key "ctrl-s" + toggle_media_library_sort_mode + +def_key "ctrl-r" + reverse_playlist + +def_key "ctrl-f" + apply_filter + +def_key "ctrl-_" + select_found_items + +def_key "/" + find + +def_key "/" + find_item_forward + +def_key "?" + find + +def_key "?" + find_item_backward + +def_key "." + next_found_item + +def_key "," + previous_found_item + +def_key "w" + toggle_find_mode + +def_key "e" + edit_song + +def_key "e" + edit_library_tag + +def_key "e" + edit_library_album + +def_key "e" + edit_directory_name + +def_key "e" + edit_playlist_name + +def_key "e" + edit_lyrics + +def_key "i" + show_song_info + +def_key "I" + show_artist_info + +def_key "g" + jump_to_position_in_song + +def_key "L" + show_lyrics + +def_key "ctrl-v" + select_range + +def_key "v" + reverse_selection + +def_key "V" + remove_selection + +def_key "B" + select_album + +def_key "a" + add_selected_items + +def_key "c" + clear_playlist + +def_key "c" + clear_main_playlist + +def_key "C" + crop_playlist + +def_key "C" + crop_main_playlist + +def_key "m" + move_sort_order_up + +def_key "m" + move_selected_items_up + +def_key "n" + move_sort_order_down + +def_key "n" + move_selected_items_down + +def_key "M" + move_selected_items_to + +def_key "A" + add + +def_key "S" + save_playlist + +def_key "o" + jump_to_playing_song + +def_key "G" + jump_to_browser + +def_key "G" + jump_to_playlist_editor + +def_key "~" + jump_to_media_library + +def_key "E" + jump_to_tag_editor + +def_key "U" + toggle_playing_song_centering + +def_key "P" + toggle_display_mode + +def_key "\\" + toggle_interface + +def_key "!" + toggle_separators_between_albums + +# def_key "L" +# toggle_lyrics_fetcher + +def_key "F" + fetch_lyrics_in_background + +def_key "alt-l" + toggle_fetching_lyrics_in_background + +def_key "ctrl-l" + toggle_screen_lock + +def_key "`" + toggle_library_tag_type + +def_key "`" + refetch_lyrics + +def_key "`" + add_random_items + +def_key "ctrl-p" + set_selected_items_priority + +def_key "q" + quit + diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config new file mode 100644 index 0000000..30f9c06 --- /dev/null +++ b/.config/ncmpcpp/config @@ -0,0 +1,20 @@ +ncmpcpp_directory = ~/.local/share/ncmpcpp +lyrics_directory = ~/.local/share/lyrics +mpd_music_dir = ~/mus +mpd_host = localhost +mpd_port = 6600 +visualizer_type = spectrum +visualizer_look = ▮▮ +visualizer_color = 47, 83, 119, 155, 191, 227, 221, 215, 209, 203, 197, 161 +song_columns_list_format = (20)[]{a} (6f)[green]{NE} (30)[white]{t|f:Title} (30)[cyan]{b} (10)[blue]{y} (7f)[red]{l} +playlist_display_mode = columns +browser_display_mode = columns +seek_time = 5 +volume_change_step = 5 +progressbar_look = || +cyclic_scrolling = no +display_volume_level = yes +display_bitrate = yes +mouse_support = yes +lines_scrolled = 5 +external_editor = nvim diff --git a/.config/newsboat/config b/.config/newsboat/config new file mode 100644 index 0000000..a176f2b --- /dev/null +++ b/.config/newsboat/config @@ -0,0 +1,42 @@ +auto-reload no +notify-always yes +notify-program notify-send +notify-format "newsboat: finished reload\n(%d new articles, %n unread articles, %f unread feeds)" +reload-threads 8 +text-width 150 +scrolloff 5 +history-limit 0 +player "mpv --no-video" +download-path "~/other/podcasts/%n" + +browser "surf %u" +macro m set browser "mpv --really-quiet %u" ; open-in-browser ; set browser "surf %u" +macro d set browser "setsid -f st -e yt-dlp %u" ; open-in-browser ; set browser "surf %u" + +bind-key j down +bind-key k up +bind-key J next-feed articlelist +bind-key K prev-feed articlelist +bind-key G end +bind-key g home +bind-key d pagedown +bind-key u pageup +bind-key l open +bind-key h quit +bind-key a toggle-article-read +bind-key n next-unread +bind-key N prev-unread +bind-key U show-urls +bind-key w pb-download + +color listfocus cyan black standout bold +color listnormal_unread yellow default bold +color listfocus_unread cyan black standout bold +color info default red bold +highlight article "(^Feed:.*|^Title:.*|^Author:.*)" yellow default +highlight article "(^Link:.*|^Date:.*)" cyan default +highlight article "\\[[0-9][0-9]*\\]" green default bold +highlight article "\\[image\\ [0-9]+\\]" yellow default bold +highlight article ":.*\\(link\\)$" blue default +highlight article ":.*\\(image\\)$" yellow default +highlight article ":.*\\(video\\)$" cyan default diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..42e76be --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,88 @@ +let mapleader="," + +if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif + +call plug#begin() +Plug 'morhetz/gruvbox' +Plug 'navarasu/onedark.nvim' +Plug 'preservim/nerdtree' +Plug 'jreybert/vimagit' +Plug 'tpope/vim-commentary' +Plug 'ap/vim-css-color' +" Plug 'ervandew/supertab' +" Plug 'neovim/nvim-lspconfig' +call plug#end() + +let g:gruvbox_termcolors = 16 +let g:gruvbox_italic = 1 +let g:onedark_config = { 'style': 'dark', 'term_colors': 'true', 'transparent': 'true' } +" let g:SuperTabDefaultCompletionType = "context" +" let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>" + +colorscheme gruvbox +syntax on +set number relativenumber +set splitbelow splitright +set clipboard+=unnamedplus +set encoding=utf-8 +set cursorline +set nohlsearch +set ignorecase +set smartcase +set mouse=a +set scroll=10 +set scrolloff=5 +set tabstop=4 +set shiftwidth=4 +set laststatus=2 +set completeopt=menuone,noinsert +" set omnifunc=v:lua.vim.lsp.omnifunc + +set statusline+=%< +set statusline+=\ %F%r%m +set statusline+=%= +set statusline+=\ %l/%L,\ %v +set statusline+=\ +set statusline+=%#StatusLineNC# +set statusline+=\ %Y +set statusline+=\ %{&fileencoding?&fileencoding:&encoding} +set statusline+=\[%{&fileformat}\] +set statusline+=\ + +set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯХЪБЮ;ABCDEFGHIJKLMNOPQRSTUVWXYZ{}<>,фисвуапршолдьтщзйкыегмцчняхъэ;abcdefghijklmnopqrstuvwxyz[]' + +imap ;j <Esc> +map <C-h> <C-w>h +map <C-j> <C-w>j +map <C-k> <C-w>k +map <C-l> <C-w>l +nnoremap <leader>f :NERDTreeToggle<CR> + +" lua require('lspconfig').pylsp.setup{} +" lua require('lspconfig').clangd.setup{filetypes = { "c", "cpp", "objc", "objcpp", "ch" }} +" lua require('lspconfig').gopls.setup{} +" lua require('lspconfig').rls.setup{} +" lua require('lspconfig').quick_lint_js.setup{} + +" nmap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR> +" nmap <silent> gD <cmd>lua vim.lsp.buf.declaration()<CR> +" nmap <silent> gK <cmd>lua vim.lsp.buf.hover()<CR> +" nmap <silent> gz <cmd>lua vim.lsp.buf.references()<CR> +" nmap <silent> <leader>n <cmd>lua vim.lsp.buf.rename()<CR> +" nmap <silent> <leader>b <cmd>lua vim.lsp.buf.formatting()<CR> +" nmap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<CR> +" nmap <silent> <leader>w <cmd>lua vim.lsp.buf.workspace_symbol()<CR> +" nmap <silent> <leader>l <cmd>lua vim.diagnostic.setloclist()<CR> +" nmap <silent> ]g <cmd>lua vim.diagnostic.goto_next()<CR> +" nmap <silent> [g <cmd>lua vim.diagnostic.goto_prev()<CR> + +autocmd FileType c map <buffer> <leader>e :w<CR>:exec '!gcc' shellescape(@%, 1) '-o out; ./out'<CR> +autocmd FileType python map <buffer> <leader>e :w<CR>:exec '!python' shellescape(@%, 1)<CR> +autocmd FileType sh map <buffer> <leader>e :w<CR>:exec '!sh' shellescape(@%, 1)<CR> +" autocmd VimEnter * hi Normal guibg=NONE ctermbg=NONE +autocmd VimLeave,VimSuspend * set guicursor=a:block-blinkon250 diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..17b0b29 --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,14 @@ +backend = "glx"; +vsync = true; +corner-radius = 20; + +rounded-corners-exclude = [ + "window_type = 'menu'", + "window_type = 'dropdown_menu'", + "window_type = 'popup_menu'", + "window_type = 'tooltip'", + "window_type = 'dnd'", + "class_g = 'dwm'", + "class_g = 'dmenu'", + "class_g = 'Dunst'" +]; diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..98724c9 --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1,11 @@ +XDG_CONFIG_HOME="$HOME/.config" +XDG_CACHE_HOME="$HOME/.cache" +XDG_DATA_HOME="$HOME/.local/share" +XDG_DOWNLOAD_DIR="$HOME/dl" +XDG_DOCUMENTS_DIR="$HOME/doc" +XDG_PICTURES_DIR="$HOME/pic" +XDG_MUSIC_DIR="$HOME/mus" +XDG_VIDEOS_DIR="$HOME/vid" +XDG_DESKTOP_DIR="$HOME/.local/share/desktop" +XDG_PUBLICSHARE_DIR="$HOME/.local/share/public" +XDG_TEMPLATES_DIR="$HOME/.local/share/templates" diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config new file mode 100644 index 0000000..b26b3b5 --- /dev/null +++ b/.config/yt-dlp/config @@ -0,0 +1,3 @@ +--restrict-filenames +-f 'bestvideo[height<=?1080]+bestaudio/best' +-o $HOME/vid/"%(uploader)s--%(title)s.%(ext)s" diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100644 index 0000000..cf4874f --- /dev/null +++ b/.config/zathura/zathurarc @@ -0,0 +1,2 @@ +set selection-clipboard clipboard +set window-title-basename |