From e8de9a14cd78c755d33e3b9876fa1d2eee1b5a2f Mon Sep 17 00:00:00 2001 From: Smirnov Olexandr Date: Sun, 27 Dec 2020 14:44:22 +0200 Subject: [PATCH] Update nvim config, qutebrowser theme --- bin/README.md | 5 +- bin/giti | 47 ++++--- config/alacritty.yml | 3 - config/berry/polybar/bar.sh | 2 - config/berry/sxhkdrc | 2 +- config/castero/castero.conf | 220 +----------------------------- config/dmenufm/dmenufm.conf | 27 ---- config/htop/htoprc | 29 ---- config/neofetch/config.conf | 68 --------- config/nvim/init.vim | 115 +++++++++------- config/openbox/README.md | 3 - config/picom.conf | 8 +- config/qtile/README.md | 56 ++++---- config/qutebrowser/config.py | 28 ++-- config/rofi/themes/solarized.rasi | 136 ------------------ config/zathura/zathurarc | 30 ++-- gitconfig | 4 +- zshrc | 2 + 18 files changed, 167 insertions(+), 618 deletions(-) delete mode 100644 config/dmenufm/dmenufm.conf delete mode 100644 config/htop/htoprc delete mode 100644 config/neofetch/config.conf delete mode 100644 config/rofi/themes/solarized.rasi diff --git a/bin/README.md b/bin/README.md index 134d47d..76d1096 100644 --- a/bin/README.md +++ b/bin/README.md @@ -1,8 +1,7 @@ - Scripts: -- `arch_upd`: Update packages(pacman, aur) base on arch. +- `arch_upd`: Update packages(pacman, aur). Only arch. - `extract`: Extract archive. -- `giti`: Gitignore manager(For help exec: giti help). +- `giti`: Gitignore manager(For help exec: __giti help__). - `kbhl`: Enable/disable keyboard highlight scrlock. - `local-ip`: Get local IP addres. - `public-ip`: Get public IP addres. diff --git a/bin/giti b/bin/giti index e5befa5..43295e8 100755 --- a/bin/giti +++ b/bin/giti @@ -1,31 +1,38 @@ #!/bin/sh -add() { +function add() { echo $1 >> .gitignore } -del() { - sed -i "/$1/d" .gitignore +function del() { + if [ -f '.gitignore' ]; then + if [ "$(cat .gitignore|wc -l)" = "1" ] + then rm .gitignore + else sed -i "/$1/d" .gitignore + fi + else echo "[.gitignore] File not found." + fi } -edit() { +function edit() { sed -in "s|$1|$2|g" .gitignore } -show() { - if [ -f '/usr/bin/bat' ] - then - bat .gitignore - else - cat .gitignore +function show() { + if [ -f '.gitignore' ]; then + if [ -f '/usr/bin/bat' ] + then bat .gitignore + else cat .gitignore + fi + else echo "[.gitignore] File not found." fi } case "$1" in - add|a) shift; add "$@" ;; - del|d) shift; del "$@" ;; - mv) shift; edit "$@" ;; - show|s) shift; show ;; - help) echo "add/a - filename add to ignore" - echo "del/d - filename del from ignore" - echo "mv - oldname newname chage file name" - echo "show - show ignore file" + add|a) shift; add "$@" ;; + del|d) shift; del "$@" ;; + mv) shift; edit "$@" ;; + show|s) shift; show ;; + help) echo "add/a - filename add to ignore" + echo "del/d - filename del from ignore" + echo "mv - oldname newname chage file name" + echo "show/s - show ignore file" ;; - *) echo "Command is not valid" -esac \ No newline at end of file + *) echo "Command is not valid" ;; +esac diff --git a/config/alacritty.yml b/config/alacritty.yml index 63b7176..df4f392 100644 --- a/config/alacritty.yml +++ b/config/alacritty.yml @@ -1,6 +1,3 @@ -env: - TERM: xterm-256color - window: title: Alacritty class: diff --git a/config/berry/polybar/bar.sh b/config/berry/polybar/bar.sh index cd8c764..e2dcd1b 100755 --- a/config/berry/polybar/bar.sh +++ b/config/berry/polybar/bar.sh @@ -1,6 +1,4 @@ #!/bin/bash killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done -#polybar -c ~/.config/berry/polybar/polybar top & -#polybar -c ~/.config/berry/polybar/polybar bom & polybar -c ~/.config/berry/polybar/polybar bar & diff --git a/config/berry/sxhkdrc b/config/berry/sxhkdrc index 228b158..03dcc59 100644 --- a/config/berry/sxhkdrc +++ b/config/berry/sxhkdrc @@ -30,7 +30,7 @@ super + control + o # ------ Berry ------ # super + control + r - pkill -USR1 -x sxhkd ; pkill polybar ; ~/.config/berry/polybar/bar.sh + pkill -USR1 -x sxhkd; pkill polybar; ~/.config/berry/polybar/bar.sh super + shift {h, j, k, l} berryc window_move {-50 0, 0 50, 0 -50, 50 0} super + control + {h, j, k, l} diff --git a/config/castero/castero.conf b/config/castero/castero.conf index 9dd61ce..3e61ba6 100644 --- a/config/castero/castero.conf +++ b/config/castero/castero.conf @@ -1,288 +1,74 @@ -# castero configuration file -# https://github.com/xgi/castero - - [client] -# Whether to ask for confirmation before deleting a feed. -# default: False delete_feed_confirmation = True - -# The minimum number of feeds before the client asks you for confirmation -# after pressing the reload key. -# default: 10 reload_feeds_threshold = 10 - -# The maximum number of episodes to retain per feed. Set to -1 for no limit. -# default: -1 max_episodes = -1 - -# Whether to keep episodes in the client even if they are no longer present on -# the feed (i.e. the RSS feed only shows the x most recent episodes). -# default: False retain_absent_episodes = False - -# Hide vertical borders between menus. -# default: False disable_vertical_borders = False - -# Whether to remove HTML tags from feed/episode descriptions. -# default: True clean_html_descriptions = True - -# The display refresh delay, in ms. Increase to reduce idle CPU usage. -# default: 30 refresh_delay = 30 - -# The external player to use for media playback. -# If the given player is not valid or a dependency is not met, the client will -# instead try to use the first valid interface. -# Available players (in order of precedence): -# mpv, vlc -# default: (blank) -player = - -# The command to run when you press key_execute (default e). All instances of -# the following tokens are replaced with the corresponding episode attributes: -# {file} - the episode enclosure, usually a remote mp3 file -# {title} - the episode name -# {description} - the episode description -# {link} - the link to the episode, which is often a blog post -# {pubdate} - the publish date/time of the episode -# {copyright} - the copyright of the episode -# Most of these attributes have spaces, so you will probably want to enclose -# the token with quotations. -# For example, `firefox "{file}"` would open the file in Firefox. -# The client executes the text you enter as a shell command. Use with caution! -# default: (blank) +player = #mpv execute_command = - -# An HTTP or SOCKS proxy to use for HTTP network requests. -# example: http://user:pass@10.10.1.10:3128 -# example: socks5://user:pass@host:port -# default: (blank) proxy_http = - -# An HTTP or SOCKS proxy to use for HTTPS network requests. -# example: http://user:pass@10.10.1.10:3128 -# example: socks5://user:pass@host:port -# default: (blank) proxy_https = - [feeds] -# Whether to reload/refresh your feeds when the client starts. Depending on how -# many feeds you have, this operation may take a long time. -# default: False reload_on_start = False - [downloads] -# The (absolute) location to save episodes downloaded for offline playback. Set -# to blank or whitespaces to disable -- the client will default to either -# $XDG_DATA_DIR, if set, otherwise ~/.local/share/castero/downloaded -# default: (blank) custom_download_dir = - -# The timeout for network requests, in seconds. The same value is used for -# connection and read timeouts. -# default: 3 request_timeout = 3 [colors] -# Available colors for all fields are: -# black, blue, cyan, green, magenta, red, white, yellow, transparent (background), -# integer from -1 to 255 if terminal supports 256 colors -# NOTE: Background transparency only works on compatible terminals with compositing - -# The foreground (text) color of the main interface. -# default: yellow color_foreground = white - -# The background color of the main interface. -# default: black color_background = default - -# The foreground (text) color of selected items. -# default: black color_foreground_alt = black - -# The background color of selected items. -# default: white color_background_alt = white - -# The foreground (text) color of marked items. Paired with color_background. -# default: green color_foreground_dim = blue - -# The foreground (text) color of status lines. Paired with color_background. -# default: white color_foreground_status = white - -# The foreground (text) color of menu headings. Paired with color_background. -# default: yellow color_foreground_heading = blue - -# The foreground (text) color of dividers. Paired with color_background. -# default: white color_foreground_dividers = white [playback] -# The distance to move forward when pressing seek keys, in seconds. -# default: 30 seek_distance_forward = 30 - -# The distance to move backward when pressing seek keys, in seconds. -# default: 10 seek_distance_backward = 10 - -# The default playback speed. See also the rate_increase/rate_decrease keys. -# default: 1.0 default_playback_speed = 1.0 - -# The default volume. Can be 0-100, inclusive. -# default: 100 default_volume = 80 - -# The amount to adjust the volume when pressing the volume up/down keys. -# default: 5 volume_adjust_distance = 5 [keys] -# Keybindings for controlling the client. Entries may not be blank, but may -# overlap -- however, only one operation will be performed for each key press. -# Please see this page for a list of available key names: -# https://docs.python.org/3/library/curses.html#constants - -# Show the help menu. -# default: h key_help = ? - -# Exit the client -# default: q key_exit = q - -# Add a feed. -# default: a key_add_feed = A - -# Remove the selected feed. -# default: d key_remove = O - -# Reload/refresh all feeds. -# default: r key_reload = r - -# Reload/refresh the selected feed. -# default: R key_reload_selected = R - -# Save episode for offline playback. -# default: s key_save = d - -# Delete downloaded episodes. -# default: x key_delete = D - -# Navigate up. -# default: UP key_up = UP - -# Navigate right. -# default: RIGHT key_right = RIGHT - -# Navigate down. -# default: DOWN key_down = DOWN - -# Navigate left. -# default: LEFT key_left = LEFT - -# Scroll menu up. -# default: PPAGE -key_scroll_up = PPAGE - -# Scroll menu down. -# default: NPAGE -key_scroll_down = NPAGE - -# Play selected feed/episode. -# default: ENTER +key_scroll_up = UP +key_scroll_down = DOWN key_play_selected = ENTER - -# Add selected feed/episode to queue. -# default: SPACE key_add_selected = SPACE - -# Clear the queue. -# default: c key_clear = c - -# Go to the next episode in the queue. -# default: n key_next = n - -# Execute a command on the selected episode. See also execute_command. key_execute = e - -# Invert the order of the menu. -# default: i key_invert = i - -# Filter the contents of the menu. Press again to clear the filter. -# default: / key_filter = / - -# Mark the episode as played/unplayed. -# default: i key_mark_played = m - -# Pause/play the current episode. -# default: p key_pause_play = p - -# Alternate binding for key_pause_play -- make identical to disable. -# default: k key_pause_play_alt = o - -# Seek forward. -# default: f key_seek_forward = f - -# Alternate binding for key_seek_forward -- make identical to disable. -# default: l key_seek_forward_alt = F - -# Seek backward. -# default: b key_seek_backward = b - -# Alternate binding for key_seek_backward -- make identical to disable. -# default: j key_seek_backward_alt = B - -# Increase playback speed. -# default: ] key_rate_increase = ] - -# Decrease playback speed. -# default: [ key_rate_decrease = [ - -# Increase volume. -# default: = key_volume_increase = = - -# Decrease volume. -# default: - key_volume_decrease = - - -# Show episode URL. -# default: u key_show_url = u diff --git a/config/dmenufm/dmenufm.conf b/config/dmenufm/dmenufm.conf deleted file mode 100644 index ffae2d0..0000000 --- a/config/dmenufm/dmenufm.conf +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -FM_PATH=$HOME/.config/dmenufm -FM_CACHE_PATH=$HOME/.cache/dmenufm -FM_BMKFILE=$FM_PATH/dmenufm_bookmark -FM_CMDFILE=$FM_PATH/dmenufm_command -FM_HISFILE=$FM_PATH/dmenufm_history -FM_SDOPROP=$FM_PATH/dmenufm_sudoprompt -FM_TRASH=${HOME}/.local/share/Trash/files -FM_LASTPATH=$FM_CACHE_PATH/dmenufm_lastpath -FM_REMFILE=$FM_CACHE_PATH/dmenufm_bulk_rename -FM_MASFILE=$FM_CACHE_PATH/dmenufm_bulk_mass -FM_ZIPATH=$FM_CACHE_PATH/compression/ - -FM_MAX_HIS_LENGTH=500 - -FM_GENERIC_FONT=Monospace-11 -FM_NOTIF_FONT=Monospace-11 -FM_DANGER_FONT=Monospace-11 - -FM_SUDO_COLOR=red -FM_GENERIC_COLOR=#008DCD -FM_ACTION_COLOR_LV1=#98BE65 -FM_ACTION_COLOR_LV2=#ECBE7B -FM_ACTION_COLOR_BULK=#C678DD -FM_OPT_GENERIC="-p -r" - -XDGDIR2=/usr/local/share/applications diff --git a/config/htop/htoprc b/config/htop/htoprc deleted file mode 100644 index 1d66767..0000000 --- a/config/htop/htoprc +++ /dev/null @@ -1,29 +0,0 @@ -# Beware! This file is rewritten by htop when settings are changed in the interface. -# The parser is also very primitive, and not human-friendly. -fields=0 48 17 18 38 39 40 2 46 47 49 1 -sort_key=38 -sort_direction=1 -hide_threads=0 -hide_kernel_threads=1 -hide_userland_threads=0 -shadow_other_users=0 -show_thread_names=0 -show_program_path=0 -highlight_base_name=1 -highlight_megabytes=1 -highlight_threads=1 -tree_view=0 -header_margin=1 -detailed_cpu_time=0 -cpu_count_from_zero=0 -show_cpu_usage=1 -show_cpu_frequency=1 -update_process_names=0 -account_guest_in_cpu_meter=0 -color_scheme=0 -enable_mouse=1 -delay=15 -left_meters=AllCPUs Memory Swap -left_meter_modes=1 1 1 -right_meters=Clock Uptime Tasks LoadAverage -right_meter_modes=2 2 2 2 diff --git a/config/neofetch/config.conf b/config/neofetch/config.conf deleted file mode 100644 index ebc1b2b..0000000 --- a/config/neofetch/config.conf +++ /dev/null @@ -1,68 +0,0 @@ -print_info() { - info title - info "OS" distro - info "Kernel" kernel - info "Uptime" uptime - info "Packages" packages - info "Shell" shell - info "Resolution" resolution - info "DE" de - info "WM" wm - info "Theme" theme - info "Icons" icons - info "CPU" cpu - info "GPU" gpu - info "Memory" memory -} - -title_fqdn="off" -kernel_shorthand="on" - -distro_shorthand="off" -os_arch="off" - -uptime_shorthand="tiny" - -memory_percent="off" -memory_unit="mib" - -package_managers="on" - -shell_path="off" -shell_version="on" - -speed_type="bios_limit" -speed_shorthand="off" - -cpu_brand="on" -cpu_speed="on" -cpu_cores="logical" -cpu_temp="off" - -gpu_brand="on" -gpu_type="all" - -refresh_rate="off" - -gtk_shorthand="off" -gtk2="on" -gtk3="on" - -de_version="on" - -block_range=(0 15) -color_blocks="on" -block_width=3 -block_height=1 - -cpu_display="off" -memory_display="off" - -image_size="auto" -gap=3 - -yoffset=0 -xoffset=0 -background_color= - -stdout="off" diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 62db85b..0e30ec3 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -1,41 +1,45 @@ call plug#begin('~/.vim/plugged') - Plug 'itchyny/lightline.vim' - Plug 'nathanaelkane/vim-indent-guides' + Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels + Plug 'voldikss/vim-floaterm' " Terminal window + Plug 'frazrepo/vim-rainbow' " Rainbow brackets + Plug 'airblade/vim-gitgutter' " Git indicator + Plug 'ap/vim-css-color' " CSS color preview + Plug 'mhinz/vim-startify' " Start page + Plug 'tpope/vim-surround' " HTML/XML tag cloaser + Plug 'itchyny/lightline.vim' " Status line + + " Color sheme Plug 'Smirnov-O/nten16.vim' - Plug 'vim-scripts/bclear' - Plug 'easymotion/vim-easymotion' - Plug 'voldikss/vim-floaterm', { 'on': 'FloatermNew' } - Plug 'mhinz/vim-startify' - Plug 'severin-lemaignan/vim-minimap' - Plug 'frazrepo/vim-rainbow' - Plug 'preservim/tagbar', { 'on': 'TagbarToggle' } - Plug 'airblade/vim-gitgutter' - " File manger & seacher - Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } - Plug 'ryanoasis/vim-devicons', { 'on': 'NERDTreeToggle' } - Plug 'kien/ctrlp.vim', { 'on': 'CtrlP' } + " Project/file nafigation + Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} + Plug 'ryanoasis/vim-devicons', {'on': 'NERDTreeToggle'} + Plug 'preservim/tagbar', {'on': 'TagbarToggle'} + Plug 'kien/ctrlp.vim', {'on': 'CtrlP'} + Plug 'easymotion/vim-easymotion' " Completion Plug 'jiangmiao/auto-pairs' Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language support - Plug 'iamcco/markdown-preview.nvim', { 'for': 'markdown' } - Plug 'dhruvasagar/vim-table-mode', { 'for': 'markdown' } - Plug 'pangloss/vim-javascript', { 'for': 'javascript' } - Plug 'PotatoesMaster/i3-vim-syntax', { 'for': 'i3' } - Plug 'kovetskiy/sxhkd-vim', { 'for': 'sxhkd' } - Plug 'mattn/emmet-vim', { 'on': 'Emmet' } - Plug 'Olical/vim-scheme', { 'for': 'scheme' } - Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' } - Plug 'vim-python/python-syntax', { 'for': 'python' } - Plug 'vim-scripts/indentpython.vim', { 'for': 'python' } - Plug 'dag/vim-fish', { 'for': 'fish' } - Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } - Plug 'ap/vim-css-color' + Plug 'pangloss/vim-javascript', {'for': 'javascript'} + Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'} + Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'} + Plug 'plasticboy/vim-markdown', {'for': 'markdown'} + Plug 'vim-python/python-syntax', {'for': 'python'} + Plug 'vim-scripts/indentpython.vim', {'for': 'python'} + Plug 'Olical/vim-scheme', {'for': 'scheme'} + Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'} + Plug 'mattn/emmet-vim', {'on': 'Emmet'} + Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} + Plug 'dag/vim-fish', {'for': 'fish'} + Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'} + Plug 'fatih/vim-go', {'for': 'go'} + "Plug 'mitsuhiko/vim-jinja' call plug#end() +" Colors set termguicolors set background=dark colorscheme nten16 @@ -106,13 +110,13 @@ let g:lightline = { \ }, } " Nerdtree -map :NERDTreeToggle -let g:NERDTreeWinPos="right" -let g:NERDTreeWinSize=28 let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store'] -let NERDTreeMinimalUI=1 -let NERDTreeShowLineNumbers=1 -let NERDTreeShowHidden=0 +let g:NERDTreeWinPos = "right" +let g:NERDTreeWinSize = 28 +let NERDTreeMinimalUI = 1 +let NERDTreeShowLineNumbers = 1 +let NERDTreeShowHidden = 0 +map :NERDTreeToggle " Coc inoremap pumvisible() ? "\" : "\" @@ -125,12 +129,11 @@ let g:vim_markdown_folding_disabled = 1 let g:EasyMotion_do_mapping = 0 let g:EasyMotion_smartcase = 1 nmap f (easymotion-s) -nmap w (easymotion-bd-w) -nmap F (easymotion-overwin-line) -nmap s (easymotion-overwin-f2) +nmap FF (easymotion-overwin-line) +nmap FD (easymotion-overwin-f2) +nmap FS (easymotion-bd-w) " CtrlP -map :CtrlP imap :CtrlP nmap :CtrlP @@ -142,15 +145,15 @@ let g:python_highlight_all = 1 " Startify let g:startify_custom_header = [ - \" _____ _____ _ ", - \" | | |___ ___| | |_|_____ ", - \" | | | | -_| . | | | | | ", - \" |_|___|___|___|\___/|_|_|_|_| ", - \ ] +\ " _____ _____ _ ", +\ " | | |___ ___| | |_|_____ ", +\ " | | | | -_| . | | | | | ", +\ " |_|___|___|___|\___/|_|_|_|_| ", +\ ] let g:startify_lists = [ - \ { 'type': 'bookmarks', 'header': ["  Bookmarks"] }, - \ { 'type': 'files', 'header': ["  Files"] }, - \ ] +\ { 'type': 'bookmarks', 'header': ["  Bookmarks"] }, +\ { 'type': 'files', 'header': ["  Files"] }, +\ ] " Rainbow let g:rainbow_active = 1 @@ -158,18 +161,24 @@ let g:rainbow_active = 1 " TagBar imap :TagbarToggle nmap :TagbarToggle -map :TagbarToggle let g:tagbar_autoclose = 1 -let g:tagbar_width = 18 -let g:tagbar_left = 1 +let g:tagbar_width = 18 +let g:tagbar_left = 1 " Floaterm -nmap :FloatermNew --title=vimterminal --position=top --autoclose=2 +let g:floaterm_title = "VimTermianl" +let g:floaterm_wintype = "floating" +let g:floaterm_position = "center" +let g:floaterm_height = 0.7 +let g:floaterm_width = 0.6 +let g:floaterm_autoclose = 2 +nmap :FloatermNew +imap :FloatermNew " == Maping let mapleader="," -" Window +" Window(s) nmap :wincmd h nmap :wincmd j nmap :wincmd k @@ -181,12 +190,12 @@ nmap :wincmd L nmap :wincmd < nmap :wincmd > -" Tab's +" Tab(s) noremap :tabnext noremap :tabprev noremap :tabnew noremap :tabnew -noremap :tabclose +noremap :tabclose noremap :tabn 1 noremap :tabn 2 noremap :tabn 3 @@ -196,5 +205,7 @@ noremap :tabn 6 noremap :tabn 7 noremap :tabn 8 noremap :tabn 9 + +" Buffer(s) noremap :bnext noremap :bprev diff --git a/config/openbox/README.md b/config/openbox/README.md index f0fd76b..f77ad07 100644 --- a/config/openbox/README.md +++ b/config/openbox/README.md @@ -7,6 +7,3 @@ sudo pacman -S openbox obconf volumeicon network-manager-applet xfce4-clipman-plugin yay -S fbxkb ~~~ - -### Hotkeys -| Key | Aсt | diff --git a/config/picom.conf b/config/picom.conf index 62ad0d0..ce1bb18 100644 --- a/config/picom.conf +++ b/config/picom.conf @@ -27,10 +27,10 @@ opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]; no-fading-openclose = true ##### Background-Blurring ##### -#blur-method = "dual_kawase"; -#blur-strength = 5; -#blur-kern = "3x3box"; -#blur-background-exclude = []; +blur-method = "dual_kawase"; +blur-strength = 5; +blur-kern = "3x3box"; +blur-background-exclude = []; ####### General Settings ###### diff --git a/config/qtile/README.md b/config/qtile/README.md index 6e22c9b..52aa3c0 100644 --- a/config/qtile/README.md +++ b/config/qtile/README.md @@ -1,43 +1,45 @@ # Qtile config -![](screen.png) ---------------- +![qtile screenhot](screen.png) +------------------------------ ### Install ----------- ~~~shell -sudo pacman -S qtile +sudo pacman -S qtile alacritty yay -S xkblayout ~~~ ### Autostart ------------- ~~~bash -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -nitrogen --restore -picom -b +xautolock -time 5 -locker "betterlockscreen --off 300 -t \"Computer is lockerd\" -l" & +setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +nitrogen --restore & +picom --experimental-backends -b & ~~~~ ### Keybindings -| Hotkey | Action | -| --- | --- | -| MOD + RETURN | Open termianl | -| MOD + SHIFT + RETURN | Open program launcher(rofi) | -| MOD + r | Open qtile spawn menu | -| MOD + TAB | Change layout | -| MOD + q | Kill focused window | -| MOD + CONTROL + r | Restart qtile | -| MOD + 1-9 | Switch focus to workspace | -| MOD + SHIFT + 1-9 | Send focused window to workspace | -| MOD + h/j/k/l | Change focus window | -| MOD + SHIFT + h/j/k/l | Move focused window | -| MOD + CONTROL + h/j/k/l | Resize focused window | -| MOD + -/+ | Plus/minus 2% volume | -| MOD + SHIFT + - | Mute volume | -| MOD + CONTROL + i | Open passmenu | +| Hotkey | Action | +| ----------------------- | -------------------------------- | +| MOD + RETURN | Open termianl | +| MOD + SHIFT + RETURN | Open program launcher(rofi) | +| MOD + f | Open filemanager | +| MOD + r | Open qtile spawn menu | +| MOD + TAB | Change layout | +| MOD + q | Kill focused window | +| MOD + CONTROL + r | Restart qtile | +| MOD + 1-9 | Switch focus to workspace | +| MOD + SHIFT + 1-9 | Send focused window to workspace | +| MOD + h/j/k/l | Change focus window | +| MOD + SHIFT + h/j/k/l | Move focused window | +| MOD + CONTROL + h/j/k/l | Resize focused window | +| MOD + -/+ | Plus/minus 2% volume | +| MOD + SHIFT + - | Mute volume | +| MOD + CONTROL + i | Open passmenu | | MOD + CONTROL + u | Open config edit Power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-config-edit.sh) | -| MOD + Escape | Open power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) | -| Print | Screenhot(scrot -s) | -| SHIFT + Print | Full screen screenhot | -| MOD + ALT + t | Open `~/.todo` file in neovim | +| MOD + Escape | Open power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) | +| Print | Screenhot | +| SHIFT + Print | Full screen screenhot | +| MOD + ALT + t | Open `~/.todo` file in neovim | diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 4e65c77..9cc2e70 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -6,7 +6,7 @@ c.completion.shrink = True config.load_autoconfig() # tabs, download -c.tabs.show = 'multiple' #always, never, multiple ,switching +c.tabs.show = 'multiple' c.tabs.position = "top" c.downloads.position = "bottom" @@ -35,15 +35,25 @@ config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko # theme ## Solarised ######### -color01 = "#002B36" -color02 = "#073642" -color03 = "#619100" -color04 = "#268BD2" -color05 = "#6C71C4" -color06 = "#dc322f" +#color01 = "#002B36" +#color02 = "#073642" +#color03 = "#619100" +#color04 = "#268BD2" +#color05 = "#6C71C4" +#color06 = "#dc322f" +#color07 = "#FFFFFF" +#color08 = "#93A1A1" +#color09 = "#2AA198" +## Ntene16 ########### +color01 = "#262A2b" +color02 = "#1F2324" +color03 = "#98BE65" +color04 = "#008DCD" +color05 = "#C678DD" +color06 = "#FF6C6B" color07 = "#FFFFFF" -color08 = "#93A1A1" -color09 = "#2AA198" +color08 = "#CED4DA" +color09 = "#ECBE7B" ###################### c.colors.completion.category.bg = color01 diff --git a/config/rofi/themes/solarized.rasi b/config/rofi/themes/solarized.rasi deleted file mode 100644 index ed56584..0000000 --- a/config/rofi/themes/solarized.rasi +++ /dev/null @@ -1,136 +0,0 @@ -* { - selected-normal-foreground: rgba ( 129, 147, 150, 100 % ); - foreground: rgba ( 129, 147, 150, 100 % ); - normal-foreground: @foreground; - alternate-normal-background: rgba ( 0, 43, 55, 100 % ); - red: rgba ( 220, 50, 47, 100 % ); - selected-urgent-foreground: rgba ( 218, 66, 129, 100 % ); - blue: rgba ( 38, 139, 210, 100 % ); - urgent-foreground: rgba ( 218, 66, 129, 100 % ); - alternate-urgent-background: rgba ( 0, 43, 55, 100 % ); - active-foreground: rgba ( 0, 142, 212, 100 % ); - lightbg: rgba ( 238, 232, 213, 100 % ); - selected-active-foreground: rgba ( 0, 142, 212, 100 % ); - alternate-active-background: rgba ( 0, 43, 55, 100 % ); - background: rgba ( 0, 43, 55, 100 % ); - bordercolor: rgba ( 0, 43, 55, 100 % ); - alternate-normal-foreground: @foreground; - normal-background: rgba ( 0, 43, 55, 100 % ); - lightfg: rgba ( 88, 104, 117, 100 % ); - selected-normal-background: rgba ( 0, 54, 66, 100 % ); - border-color: @foreground; - spacing: 2; - separatorcolor: rgba ( 0, 54, 66, 100 % ); - urgent-background: rgba ( 0, 43, 55, 100 % ); - selected-urgent-background: rgba ( 0, 54, 66, 100 % ); - alternate-urgent-foreground: @urgent-foreground; - background-color: rgba ( 0, 0, 0, 0 % ); - alternate-active-foreground: @active-foreground; - active-background: rgba ( 0, 43, 55, 100 % ); - selected-active-background: rgba ( 0, 54, 66, 100 % ); -} -#window { - background-color: @background; - border: 1; - padding: 5; -} -#mainbox { - border: 0; - padding: 0; -} -#message { - border: 1px dash 0px 0px ; - border-color: @separatorcolor; - padding: 1px ; -} -#textbox { - text-color: @foreground; -} -#listview { - fixed-height: 0; - border: 2px dash 0px 0px ; - border-color: @separatorcolor; - spacing: 2px ; - scrollbar: true; - padding: 2px 0px 0px ; -} -#element { - border: 0; - padding: 1px ; -} -#element.normal.normal { - background-color: @normal-background; - text-color: @normal-foreground; -} -#element.normal.urgent { - background-color: @urgent-background; - text-color: @urgent-foreground; -} -#element.normal.active { - background-color: @active-background; - text-color: @active-foreground; -} -#element.selected.normal { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -#element.selected.urgent { - background-color: @selected-urgent-background; - text-color: @selected-urgent-foreground; -} -#element.selected.active { - background-color: @selected-active-background; - text-color: @selected-active-foreground; -} -#element.alternate.normal { - background-color: @alternate-normal-background; - text-color: @alternate-normal-foreground; -} -#element.alternate.urgent { - background-color: @alternate-urgent-background; - text-color: @alternate-urgent-foreground; -} -#element.alternate.active { - background-color: @alternate-active-background; - text-color: @alternate-active-foreground; -} -#scrollbar { - width: 4px ; - border: 0; - handle-width: 8px ; - padding: 0; -} -#mode-switcher { - border: 2px dash 0px 0px ; - border-color: @separatorcolor; -} -#button.selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -#inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 1px ; -} -#case-indicator { - spacing: 0; - text-color: @normal-foreground; -} -#entry { - spacing: 0; - text-color: @normal-foreground; -} -#prompt { - spacing: 0; - text-color: @normal-foreground; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @normal-foreground; -} \ No newline at end of file diff --git a/config/zathura/zathurarc b/config/zathura/zathurarc index fa87a31..df04768 100644 --- a/config/zathura/zathurarc +++ b/config/zathura/zathurarc @@ -1,18 +1,18 @@ -set font "JetBrains Mono Nerd Font 10" -set default-fg "#DFDFDF" -set default-bg "#262A2B" +set font "JetBrains Mono Nerd Font 10" +set default-fg "#DFDFDF" +set default-bg "#262A2B" -set statusbar-fg "#CED4DA" -set statusbar-bg "#1F2324" -set statusbar-h-padding 10 -set statusbar-v-padding 10 +set statusbar-fg "#CED4DA" +set statusbar-bg "#1F2324" +set statusbar-h-padding 10 +set statusbar-v-padding 10 -set inputbar-fg "#FFFFFF" -set inputbar-bg "#1F2324" +set inputbar-fg "#FFFFFF" +set inputbar-bg "#1F2324" -set completion-bg "#262A2B" -set completion-fg "#FFFFFF" -set completion-highlight-bg "#262A2B" -set completion-highlight-fg "#51AFEF" -set completion-group-bg "#262A2B" -set completion-group-fg "#51AFEF" +set completion-bg "#262A2B" +set completion-fg "#FFFFFF" +set completion-highlight-bg "#262A2B" +set completion-highlight-fg "#51AFEF" +set completion-group-bg "#262A2B" +set completion-group-fg "#51AFEF" diff --git a/gitconfig b/gitconfig index 12a7c4f..e024084 100644 --- a/gitconfig +++ b/gitconfig @@ -7,10 +7,10 @@ name = Smirnov-O [web] - browser = chromium # firefox, google-chrome, + browser = firefox # chromium, google-chrome, [core] - editor = vim + editor = nvim excludesfile = ~/.gitignore_global [alias] diff --git a/zshrc b/zshrc index ed1814f..cf01892 100644 --- a/zshrc +++ b/zshrc @@ -50,3 +50,5 @@ alias .3="cd ../../.." alias .4="cd ../../../.." alias .5="cd ../../../../.." alias .6="cd ../../../../../.." + +eval $(thefuck --alias)