1. Qtile panel theme with images, 2. Adding to Neovim config.
This commit is contained in:
parent
805bda3c9d
commit
9c2121348d
6
.bashrc
6
.bashrc
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
||||||
EDITOR="nvim"
|
EDITOR="nvim"
|
||||||
export TERM="st"
|
export TERM="st-256color"
|
||||||
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
@ -145,8 +145,8 @@ ex ()
|
||||||
alias doas="doas --"
|
alias doas="doas --"
|
||||||
|
|
||||||
# navigation
|
# navigation
|
||||||
alias ..='cd ..' \
|
alias ..='cd ..'
|
||||||
...='cd ../..'
|
alias ...='cd ../..'
|
||||||
|
|
||||||
# vim
|
# vim
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
|
|
|
@ -1,34 +1,52 @@
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
" ____ _____
|
||||||
" => Vundle For Managing Plugins
|
" | _ \_ _| Derek Taylor (DistroTube)
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
" | | | || | http://www.youtube.com/c/DistroTube
|
||||||
|
" | |_| || | http://www.gitlab.com/dwt1/
|
||||||
|
" |____/ |_|
|
||||||
|
"
|
||||||
|
" A customized init.vim for neovim (https://neovim.io/)
|
||||||
|
|
||||||
set nocompatible " be iMproved, required
|
set nocompatible " be iMproved, required
|
||||||
filetype off " required
|
filetype off " required
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => Vundle For Managing Plugins
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
|
||||||
call vundle#begin() " required, all plugins must appear after this line.
|
call vundle#begin() " required, all plugins must appear after this line.
|
||||||
|
"{{ The Basics }}
|
||||||
Plugin 'gmarik/Vundle.vim' " Vundle
|
Plugin 'gmarik/Vundle.vim' " Vundle
|
||||||
Plugin 'itchyny/lightline.vim' " Lightline statusbar
|
Plugin 'itchyny/lightline.vim' " Lightline statusbar
|
||||||
Plugin 'vifm/vifm.vim'
|
Plugin 'suan/vim-instant-markdown', {'rtp': 'after'} " Markdown Preview
|
||||||
Plugin 'vimwiki/vimwiki' " Vim wiki
|
Plugin 'frazrepo/vim-rainbow'
|
||||||
Plugin 'scrooloose/nerdtree' " added nerdtree
|
"{{ File management }}
|
||||||
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight'
|
Plugin 'vifm/vifm.vim' " Vifm
|
||||||
Plugin 'ryanoasis/vim-devicons'
|
Plugin 'scrooloose/nerdtree' " Nerdtree
|
||||||
Plugin 'frazrepo/vim-rainbow'
|
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' " Highlighting Nerdtree
|
||||||
Plugin 'vim-python/python-syntax'
|
Plugin 'ryanoasis/vim-devicons' " Icons for Nerdtree
|
||||||
Plugin 'jreybert/vimagit'
|
"{{ Productivity }}
|
||||||
Plugin 'severin-lemaignan/vim-minimap'
|
Plugin 'vimwiki/vimwiki' " VimWiki
|
||||||
Plugin 'ap/vim-css-color' " Color previews for CSS
|
Plugin 'jreybert/vimagit' " Magit-like plugin for vim
|
||||||
Plugin 'tpope/vim-surround' " Change surrounding marks
|
"{{ Tim Pope Plugins }}
|
||||||
|
Plugin 'tpope/vim-surround' " Change surrounding marks
|
||||||
|
"{{ Syntax Highlighting and Colors }}
|
||||||
|
Plugin 'PotatoesMaster/i3-vim-syntax' " i3 config highlighting
|
||||||
|
Plugin 'kovetskiy/sxhkd-vim' " sxhkd highlighting
|
||||||
|
Plugin 'vim-python/python-syntax' " Python highlighting
|
||||||
|
Plugin 'ap/vim-css-color' " Color previews for CSS
|
||||||
|
"{{ Junegunn Choi Plugins }}
|
||||||
|
Plugin 'junegunn/goyo.vim' " Distraction-free viewing
|
||||||
|
Plugin 'junegunn/limelight.vim' " Hyperfocus on a range
|
||||||
|
Plugin 'junegunn/vim-emoji' " Vim needs emojis!
|
||||||
|
|
||||||
call vundle#end() " required, all plugins must appear before this line.
|
call vundle#end() " required, all plugins must appear before this line.
|
||||||
|
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
" To ignore plugin indent changes, instead use:
|
" To ignore plugin indent changes, instead use:
|
||||||
"filetype plugin on
|
" filetype plugin on
|
||||||
|
|
||||||
" Brief help
|
" Brief help
|
||||||
" :PluginList - lists configured plugins
|
" :PluginList - lists configured plugins
|
||||||
|
@ -46,8 +64,9 @@ filetype plugin indent on " required
|
||||||
:imap ii <Esc>
|
:imap ii <Esc>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Powerline
|
" => Status Line
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" The lightline.vim theme
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'darcula',
|
\ 'colorscheme': 'darcula',
|
||||||
\ }
|
\ }
|
||||||
|
@ -92,25 +111,25 @@ let NERDTreeMinimalUI = 1
|
||||||
let g:NERDTreeWinSize=38
|
let g:NERDTreeWinSize=38
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Colors
|
" => Colors and Theming
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
highlight LineNr ctermfg=8 ctermbg=none cterm=none
|
highlight LineNr ctermfg=8 ctermbg=none cterm=none
|
||||||
highlight CursorLineNr ctermfg=7 ctermbg=8 cterm=none
|
highlight CursorLineNr ctermfg=7 ctermbg=8 cterm=none
|
||||||
highlight VertSplit ctermfg=0 ctermbg=8 cterm=none
|
highlight VertSplit ctermfg=0 ctermbg=8 cterm=none
|
||||||
highlight Statement ctermfg=2 ctermbg=none cterm=none
|
highlight Statement ctermfg=2 ctermbg=none cterm=none
|
||||||
highlight Directory ctermfg=4 ctermbg=none cterm=none
|
highlight Directory ctermfg=4 ctermbg=none cterm=none
|
||||||
highlight StatusLine ctermfg=7 ctermbg=8 cterm=none
|
highlight StatusLine ctermfg=7 ctermbg=8 cterm=none
|
||||||
highlight StatusLineNC ctermfg=7 ctermbg=8 cterm=none
|
highlight StatusLineNC ctermfg=7 ctermbg=8 cterm=none
|
||||||
highlight NERDTreeClosable ctermfg=2
|
highlight NERDTreeClosable ctermfg=2
|
||||||
highlight NERDTreeOpenable ctermfg=8
|
highlight NERDTreeOpenable ctermfg=8
|
||||||
highlight Comment ctermfg=4 ctermbg=none cterm=none
|
highlight Comment ctermfg=4 ctermbg=none cterm=none
|
||||||
highlight Constant ctermfg=12 ctermbg=none cterm=none
|
highlight Constant ctermfg=12 ctermbg=none cterm=none
|
||||||
highlight Special ctermfg=4 ctermbg=none cterm=none
|
highlight Special ctermfg=4 ctermbg=none cterm=none
|
||||||
highlight Identifier ctermfg=6 ctermbg=none cterm=none
|
highlight Identifier ctermfg=6 ctermbg=none cterm=none
|
||||||
highlight PreProc ctermfg=5 ctermbg=none cterm=none
|
highlight PreProc ctermfg=5 ctermbg=none cterm=none
|
||||||
highlight String ctermfg=12 ctermbg=none cterm=none
|
highlight String ctermfg=12 ctermbg=none cterm=none
|
||||||
highlight Number ctermfg=1 ctermbg=none cterm=none
|
highlight Number ctermfg=1 ctermbg=none cterm=none
|
||||||
highlight Function ctermfg=1 ctermbg=none cterm=none
|
highlight Function ctermfg=1 ctermbg=none cterm=none
|
||||||
" highlight WildMenu ctermfg=0 ctermbg=80 cterm=none
|
" highlight WildMenu ctermfg=0 ctermbg=80 cterm=none
|
||||||
" highlight Folded ctermfg=103 ctermbg=234 cterm=none
|
" highlight Folded ctermfg=103 ctermbg=234 cterm=none
|
||||||
" highlight FoldColumn ctermfg=103 ctermbg=234 cterm=none
|
" highlight FoldColumn ctermfg=103 ctermbg=234 cterm=none
|
||||||
|
@ -138,6 +157,8 @@ let g:NERDTreeWinSize=38
|
||||||
" highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none
|
" highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none
|
||||||
" highlight xmlEndTag ctermfg=114 ctermbg=none cterm=none
|
" highlight xmlEndTag ctermfg=114 ctermbg=none cterm=none
|
||||||
|
|
||||||
|
" Removes pipes | that act as seperators on splits
|
||||||
|
set fillchars+=vert:\
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Vifm
|
" => Vifm
|
||||||
|
@ -154,6 +175,19 @@ map <Leader>tv :TabVifm<CR>
|
||||||
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
||||||
\ 'syntax': 'markdown', 'ext': '.md'}]
|
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => Vim-Instant-Markdown
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
let g:instant_markdown_autostart = 0 " Turns off auto preview
|
||||||
|
let g:instant_markdown_browser = "surf" " Uses surf for preview
|
||||||
|
map <Leader>md :InstantMarkdownPreview<CR> " Previews .md file
|
||||||
|
map <Leader>ms :InstantMarkdownStop<CR> " Kills the preview
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => Open terminal inside Vim
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
map <Leader>tt :vnew term://bash<CR>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Mouse Scrolling
|
" => Mouse Scrolling
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -170,8 +204,6 @@ set incsearch
|
||||||
set nobackup
|
set nobackup
|
||||||
set noswapfile
|
set noswapfile
|
||||||
|
|
||||||
let g:minimap_highlight='Visual'
|
|
||||||
|
|
||||||
let g:python_highlight_all = 1
|
let g:python_highlight_all = 1
|
||||||
|
|
||||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||||
|
@ -182,9 +214,3 @@ set guioptions-=T "remove toolbar
|
||||||
set guioptions-=r "remove right-hand scroll bar
|
set guioptions-=r "remove right-hand scroll bar
|
||||||
set guioptions-=L "remove left-hand scroll bar
|
set guioptions-=L "remove left-hand scroll bar
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" => Removes pipes | that act as seperators on splits
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
set fillchars+=vert:\
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -39,186 +39,186 @@ myConfig = "/home/dt/.config/qtile/config.py" # The Qtile config file locatio
|
||||||
|
|
||||||
##### KEYBINDINGS #####
|
##### KEYBINDINGS #####
|
||||||
keys = [
|
keys = [
|
||||||
### The essentials
|
### The essentials
|
||||||
Key(
|
Key(
|
||||||
[mod], "Return",
|
[mod], "Return",
|
||||||
lazy.spawn(myTerm) # Open terminal
|
lazy.spawn(myTerm) # Open terminal
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "Return", # Dmenu Run Launcher
|
[mod, "shift"], "Return", # Dmenu Run Launcher
|
||||||
lazy.spawn("dmenu_run -p 'Run: '")
|
lazy.spawn("dmenu_run -p 'Run: '")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "Tab",
|
[mod], "Tab",
|
||||||
lazy.next_layout() # Toggle through layouts
|
lazy.next_layout() # Toggle through layouts
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "c",
|
[mod, "shift"], "c",
|
||||||
lazy.window.kill() # Kill active window
|
lazy.window.kill() # Kill active window
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "r",
|
[mod, "shift"], "r",
|
||||||
lazy.restart() # Restart Qtile
|
lazy.restart() # Restart Qtile
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "q",
|
[mod, "shift"], "q",
|
||||||
lazy.shutdown() # Shutdown Qtile
|
lazy.shutdown() # Shutdown Qtile
|
||||||
),
|
),
|
||||||
### Switch focus to specific monitor (out of three)
|
### Switch focus to specific monitor (out of three)
|
||||||
Key([mod], "w",
|
Key([mod], "w",
|
||||||
lazy.to_screen(0) # Keyboard focus to screen(0)
|
lazy.to_screen(0) # Keyboard focus to screen(0)
|
||||||
),
|
),
|
||||||
Key([mod], "e",
|
Key([mod], "e",
|
||||||
lazy.to_screen(1) # Keyboard focus to screen(1)
|
lazy.to_screen(1) # Keyboard focus to screen(1)
|
||||||
),
|
),
|
||||||
Key([mod], "r",
|
Key([mod], "r",
|
||||||
lazy.to_screen(2) # Keyboard focus to screen(2)
|
lazy.to_screen(2) # Keyboard focus to screen(2)
|
||||||
),
|
),
|
||||||
### Switch focus of monitors
|
### Switch focus of monitors
|
||||||
Key([mod], "period",
|
Key([mod], "period",
|
||||||
lazy.next_screen() # Move monitor focus to next screen
|
lazy.next_screen() # Move monitor focus to next screen
|
||||||
),
|
),
|
||||||
Key([mod], "comma",
|
Key([mod], "comma",
|
||||||
lazy.prev_screen() # Move monitor focus to prev screen
|
lazy.prev_screen() # Move monitor focus to prev screen
|
||||||
),
|
),
|
||||||
### Treetab controls
|
### Treetab controls
|
||||||
Key([mod, "control"], "k",
|
Key([mod, "control"], "k",
|
||||||
lazy.layout.section_up() # Move up a section in treetab
|
lazy.layout.section_up() # Move up a section in treetab
|
||||||
),
|
),
|
||||||
Key([mod, "control"], "j",
|
Key([mod, "control"], "j",
|
||||||
lazy.layout.section_down() # Move down a section in treetab
|
lazy.layout.section_down() # Move down a section in treetab
|
||||||
),
|
),
|
||||||
### Window controls
|
### Window controls
|
||||||
Key(
|
Key(
|
||||||
[mod], "k",
|
[mod], "k",
|
||||||
lazy.layout.down() # Switch between windows in current stack pane
|
lazy.layout.down() # Switch between windows in current stack pane
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "j",
|
[mod], "j",
|
||||||
lazy.layout.up() # Switch between windows in current stack pane
|
lazy.layout.up() # Switch between windows in current stack pane
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "k",
|
[mod, "shift"], "k",
|
||||||
lazy.layout.shuffle_down() # Move windows down in current stack
|
lazy.layout.shuffle_down() # Move windows down in current stack
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "j",
|
[mod, "shift"], "j",
|
||||||
lazy.layout.shuffle_up() # Move windows up in current stack
|
lazy.layout.shuffle_up() # Move windows up in current stack
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "h",
|
[mod], "h",
|
||||||
lazy.layout.grow(), # Grow size of current window (XmonadTall)
|
lazy.layout.grow(), # Grow size of current window (XmonadTall)
|
||||||
lazy.layout.increase_nmaster(), # Increase number in master pane (Tile)
|
lazy.layout.increase_nmaster(), # Increase number in master pane (Tile)
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "l",
|
[mod], "l",
|
||||||
lazy.layout.shrink(), # Shrink size of current window (XmonadTall)
|
lazy.layout.shrink(), # Shrink size of current window (XmonadTall)
|
||||||
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile)
|
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile)
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "n",
|
[mod], "n",
|
||||||
lazy.layout.normalize() # Restore all windows to default size ratios
|
lazy.layout.normalize() # Restore all windows to default size ratios
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "m",
|
[mod], "m",
|
||||||
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
|
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "f",
|
[mod, "shift"], "f",
|
||||||
lazy.window.toggle_floating() # Toggle floating
|
lazy.window.toggle_floating() # Toggle floating
|
||||||
),
|
),
|
||||||
### Stack controls
|
### Stack controls
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"], "space",
|
[mod, "shift"], "space",
|
||||||
lazy.layout.rotate(), # Swap panes of split stack (Stack)
|
lazy.layout.rotate(), # Swap panes of split stack (Stack)
|
||||||
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
|
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "space",
|
[mod], "space",
|
||||||
lazy.layout.next() # Switch window focus to other pane(s) of stack
|
lazy.layout.next() # Switch window focus to other pane(s) of stack
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "control"], "Return",
|
[mod, "control"], "Return",
|
||||||
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
|
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
|
||||||
),
|
),
|
||||||
### Dmenu scripts launched with ALT + CTRL + KEY
|
### Dmenu scripts launched with ALT + CTRL + KEY
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "e",
|
["mod1", "control"], "e",
|
||||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh")
|
lazy.spawn("./.dmenu/dmenu-edit-configs.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "m",
|
["mod1", "control"], "m",
|
||||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh")
|
lazy.spawn("./.dmenu/dmenu-sysmon.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "p",
|
["mod1", "control"], "p",
|
||||||
lazy.spawn("passmenu")
|
lazy.spawn("passmenu")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "r",
|
["mod1", "control"], "r",
|
||||||
lazy.spawn("./.dmenu/dmenu-reddio.sh")
|
lazy.spawn("./.dmenu/dmenu-reddio.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "s",
|
["mod1", "control"], "s",
|
||||||
lazy.spawn("./.dmenu/dmenu-surfraw.sh")
|
lazy.spawn("./.dmenu/dmenu-surfraw.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "t",
|
["mod1", "control"], "t",
|
||||||
lazy.spawn("./.dmenu/dmenu-trading.sh")
|
lazy.spawn("./.dmenu/dmenu-trading.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "i",
|
["mod1", "control"], "i",
|
||||||
lazy.spawn("./.dmenu/dmenu-scrot.sh")
|
lazy.spawn("./.dmenu/dmenu-scrot.sh")
|
||||||
),
|
),
|
||||||
### My applications launched with SUPER + ALT + KEY
|
### My applications launched with SUPER + ALT + KEY
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "l",
|
[mod, "mod1"], "l",
|
||||||
lazy.spawn(myTerm+" -e lynx gopher://distro.tube")
|
lazy.spawn(myTerm+" -e lynx gopher://distro.tube")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "n",
|
[mod, "mod1"], "n",
|
||||||
lazy.spawn(myTerm+" -e newsboat")
|
lazy.spawn(myTerm+" -e newsboat")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "r",
|
[mod, "mod1"], "r",
|
||||||
lazy.spawn(myTerm+" -e rtv")
|
lazy.spawn(myTerm+" -e rtv")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "e",
|
[mod, "mod1"], "e",
|
||||||
lazy.spawn(myTerm+" -e neomutt")
|
lazy.spawn(myTerm+" -e neomutt")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "m",
|
[mod, "mod1"], "m",
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh")
|
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "t",
|
[mod, "mod1"], "t",
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh")
|
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "f",
|
[mod, "mod1"], "f",
|
||||||
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun")
|
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "j",
|
[mod, "mod1"], "j",
|
||||||
lazy.spawn(myTerm+" -e joplin")
|
lazy.spawn(myTerm+" -e joplin")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "c",
|
[mod, "mod1"], "c",
|
||||||
lazy.spawn(myTerm+" -e cmus")
|
lazy.spawn(myTerm+" -e cmus")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "i",
|
[mod, "mod1"], "i",
|
||||||
lazy.spawn(myTerm+" -e irssi")
|
lazy.spawn(myTerm+" -e irssi")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "y",
|
[mod, "mod1"], "y",
|
||||||
lazy.spawn(myTerm+" -e youtube-viewer")
|
lazy.spawn(myTerm+" -e youtube-viewer")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "a",
|
[mod, "mod1"], "a",
|
||||||
lazy.spawn(myTerm+" -e ncpamixer")
|
lazy.spawn(myTerm+" -e ncpamixer")
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
##### GROUPS #####
|
##### GROUPS #####
|
||||||
|
@ -236,8 +236,7 @@ groups = [Group(name, **kwargs) for name, kwargs in group_names]
|
||||||
|
|
||||||
for i, (name, kwargs) in enumerate(group_names, 1):
|
for i, (name, kwargs) in enumerate(group_names, 1):
|
||||||
keys.append(Key([mod], str(i), lazy.group[name].toscreen())) # Switch to another group
|
keys.append(Key([mod], str(i), lazy.group[name].toscreen())) # Switch to another group
|
||||||
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) # Send current window to another group
|
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) # Send current window to another group
|
||||||
|
|
||||||
|
|
||||||
##### DEFAULT THEME SETTINGS FOR LAYOUTS #####
|
##### DEFAULT THEME SETTINGS FOR LAYOUTS #####
|
||||||
layout_theme = {"border_width": 2,
|
layout_theme = {"border_width": 2,
|
||||||
|
@ -248,19 +247,18 @@ layout_theme = {"border_width": 2,
|
||||||
|
|
||||||
##### THE LAYOUTS #####
|
##### THE LAYOUTS #####
|
||||||
layouts = [
|
layouts = [
|
||||||
layout.Max(),
|
#layout.MonadWide(**layout_theme),
|
||||||
layout.Stack(num_stacks=2),
|
|
||||||
#layout.MonadWide(**layout_theme),
|
|
||||||
#layout.Bsp(**layout_theme),
|
#layout.Bsp(**layout_theme),
|
||||||
#layout.Stack(stacks=2, **layout_theme),
|
#layout.Stack(stacks=2, **layout_theme),
|
||||||
#layout.Columns(**layout_theme),
|
#layout.Columns(**layout_theme),
|
||||||
#layout.RatioTile(**layout_theme),
|
#layout.RatioTile(**layout_theme),
|
||||||
#layout.VerticalTile(**layout_theme),
|
#layout.VerticalTile(**layout_theme),
|
||||||
#layout.Tile(shift_windows=True, **layout_theme),
|
|
||||||
#layout.Matrix(**layout_theme),
|
#layout.Matrix(**layout_theme),
|
||||||
#layout.Zoomy(**layout_theme),
|
#layout.Zoomy(**layout_theme),
|
||||||
layout.MonadTall(**layout_theme),
|
layout.MonadTall(**layout_theme),
|
||||||
layout.Max(**layout_theme),
|
layout.Max(**layout_theme),
|
||||||
|
layout.Tile(shift_windows=True, **layout_theme),
|
||||||
|
layout.Stack(num_stacks=2),
|
||||||
layout.TreeTab(
|
layout.TreeTab(
|
||||||
font = "Ubuntu",
|
font = "Ubuntu",
|
||||||
fontsize = 10,
|
fontsize = 10,
|
||||||
|
@ -282,13 +280,14 @@ layouts = [
|
||||||
colors = [["#282a36", "#282a36"], # panel background
|
colors = [["#282a36", "#282a36"], # panel background
|
||||||
["#434758", "#434758"], # background for current screen tab
|
["#434758", "#434758"], # background for current screen tab
|
||||||
["#ffffff", "#ffffff"], # font color for group names
|
["#ffffff", "#ffffff"], # font color for group names
|
||||||
["#ff5555", "#ff5555"], # background color for layout widget
|
["#ff5555", "#ff5555"], # border line color for current tab
|
||||||
["#A77AC4", "#A77AC4"], # dark green gradiant for other screen tabs
|
["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets
|
||||||
["#7197E7", "#7197E7"]] # background color for pacman widget
|
["#668bd7", "#668bd7"], # color for the even widgets
|
||||||
|
["#e1acff", "#e1acff"]] # window name
|
||||||
|
|
||||||
##### PROMPT #####
|
##### PROMPT #####
|
||||||
prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
|
prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
|
||||||
|
|
||||||
##### DEFAULT WIDGET SETTINGS #####
|
##### DEFAULT WIDGET SETTINGS #####
|
||||||
widget_defaults = dict(
|
widget_defaults = dict(
|
||||||
font="Ubuntu Mono",
|
font="Ubuntu Mono",
|
||||||
|
@ -310,17 +309,18 @@ def init_widgets_list():
|
||||||
),
|
),
|
||||||
widget.GroupBox(font="Ubuntu Bold",
|
widget.GroupBox(font="Ubuntu Bold",
|
||||||
fontsize = 9,
|
fontsize = 9,
|
||||||
margin_y = 0,
|
margin_y = 1,
|
||||||
margin_x = 0,
|
margin_x = 0,
|
||||||
padding_y = 5,
|
padding_y = 5,
|
||||||
padding_x = 5,
|
padding_x = 5,
|
||||||
borderwidth = 1,
|
borderwidth = 3,
|
||||||
active = colors[2],
|
active = colors[2],
|
||||||
inactive = colors[2],
|
inactive = colors[2],
|
||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_method = "block",
|
highlight_color = colors[1],
|
||||||
this_current_screen_border = colors[4],
|
highlight_method = "line",
|
||||||
this_screen_border = colors [1],
|
this_current_screen_border = colors[3],
|
||||||
|
this_screen_border = colors [4],
|
||||||
other_current_screen_border = colors[0],
|
other_current_screen_border = colors[0],
|
||||||
other_screen_border = colors[0],
|
other_screen_border = colors[0],
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
|
@ -335,25 +335,64 @@ def init_widgets_list():
|
||||||
),
|
),
|
||||||
widget.Sep(
|
widget.Sep(
|
||||||
linewidth = 0,
|
linewidth = 0,
|
||||||
padding = 10,
|
padding = 40,
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[0]
|
background = colors[0]
|
||||||
),
|
),
|
||||||
widget.WindowName(
|
widget.WindowName(
|
||||||
foreground = colors[4],
|
foreground = colors[6],
|
||||||
background = colors[0],
|
background = colors[0],
|
||||||
|
padding = 0
|
||||||
|
),
|
||||||
|
widget.Systray(
|
||||||
|
background=colors[0],
|
||||||
padding = 5
|
padding = 5
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/black-purple.png',
|
||||||
background = colors[0],
|
background = colors[0],
|
||||||
foreground = colors[4],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
|
),
|
||||||
|
widget.TextBox(
|
||||||
|
text=" ₿",
|
||||||
|
padding = 0,
|
||||||
|
foreground=colors[2],
|
||||||
|
background=colors[4],
|
||||||
|
fontsize=12
|
||||||
|
),
|
||||||
|
widget.BitcoinTicker(
|
||||||
|
foreground=colors[2],
|
||||||
|
background=colors[4],
|
||||||
|
padding = 5
|
||||||
|
),
|
||||||
|
widget.Image(
|
||||||
|
filename='/home/dt/.config/qtile/purple-blue.png',
|
||||||
|
background = colors[0],
|
||||||
|
padding=0,
|
||||||
|
scale=0.7
|
||||||
|
),
|
||||||
|
widget.TextBox(
|
||||||
|
text=" 🌡",
|
||||||
|
padding = 2,
|
||||||
|
foreground=colors[2],
|
||||||
|
background=colors[5],
|
||||||
|
fontsize=11
|
||||||
|
),
|
||||||
|
widget.ThermalSensor(
|
||||||
|
foreground=colors[2],
|
||||||
|
background=colors[5],
|
||||||
|
padding = 5
|
||||||
|
),
|
||||||
|
widget.Image(
|
||||||
|
filename='/home/dt/.config/qtile/blue-purple.png',
|
||||||
|
background = colors[0],
|
||||||
|
padding=0,
|
||||||
|
scale=0.7
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text=" ⟳",
|
text=" ⟳",
|
||||||
padding = 5,
|
padding = 2,
|
||||||
foreground=colors[2],
|
foreground=colors[2],
|
||||||
background=colors[4],
|
background=colors[4],
|
||||||
fontsize=14
|
fontsize=14
|
||||||
|
@ -370,12 +409,11 @@ def init_widgets_list():
|
||||||
foreground=colors[2],
|
foreground=colors[2],
|
||||||
background=colors[4]
|
background=colors[4]
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/purple-blue.png',
|
||||||
background = colors[4],
|
background = colors[0],
|
||||||
foreground = colors[5],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text=" 🖬",
|
text=" 🖬",
|
||||||
|
@ -389,19 +427,11 @@ def init_widgets_list():
|
||||||
background = colors[5],
|
background = colors[5],
|
||||||
padding = 5
|
padding = 5
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/blue-purple.png',
|
||||||
background = colors[5],
|
background = colors[0],
|
||||||
foreground = colors[4],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
),
|
|
||||||
widget.TextBox(
|
|
||||||
text=" ↯",
|
|
||||||
foreground=colors[2],
|
|
||||||
background=colors[4],
|
|
||||||
padding = 0,
|
|
||||||
fontsize=14
|
|
||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
interface = "enp6s0",
|
interface = "enp6s0",
|
||||||
|
@ -409,93 +439,63 @@ def init_widgets_list():
|
||||||
background = colors[4],
|
background = colors[4],
|
||||||
padding = 5
|
padding = 5
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/purple-blue.png',
|
||||||
background = colors[4],
|
background = colors[0],
|
||||||
foreground = colors[5],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text=" ♫",
|
text=" Vol:",
|
||||||
padding = 5,
|
|
||||||
foreground=colors[2],
|
foreground=colors[2],
|
||||||
background=colors[5],
|
background=colors[5],
|
||||||
fontsize=14
|
padding = 0
|
||||||
),
|
|
||||||
widget.Cmus(
|
|
||||||
max_chars = 40,
|
|
||||||
update_interval = 0.5,
|
|
||||||
background=colors[5],
|
|
||||||
play_color = colors[2],
|
|
||||||
noplay_color = colors[2]
|
|
||||||
),
|
|
||||||
widget.TextBox(
|
|
||||||
text='',
|
|
||||||
background = colors[5],
|
|
||||||
foreground = colors[4],
|
|
||||||
padding=0,
|
|
||||||
fontsize=37
|
|
||||||
),
|
|
||||||
widget.TextBox(
|
|
||||||
text=" 🔊",
|
|
||||||
foreground=colors[2],
|
|
||||||
background=colors[4],
|
|
||||||
padding = 0,
|
|
||||||
fontsize=14
|
|
||||||
),
|
),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[4],
|
background = colors[5],
|
||||||
padding = 5
|
padding = 5
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/blue-purple.png',
|
||||||
background = colors[4],
|
background = colors[0],
|
||||||
foreground = colors[5],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.CurrentLayoutIcon(
|
||||||
text=" ☵",
|
custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
|
||||||
padding = 5,
|
foreground = colors[0],
|
||||||
foreground=colors[2],
|
background = colors[4],
|
||||||
background=colors[5],
|
padding = 0,
|
||||||
fontsize=14
|
scale=0.7
|
||||||
),
|
),
|
||||||
widget.CurrentLayout(
|
widget.CurrentLayout(
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[5],
|
background = colors[4],
|
||||||
padding = 5
|
padding = 5
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
filename='/home/dt/.config/qtile/purple-black.png',
|
||||||
background = colors[5],
|
background = colors[0],
|
||||||
foreground = colors[4],
|
|
||||||
padding=0,
|
padding=0,
|
||||||
fontsize=37
|
scale=0.7
|
||||||
),
|
|
||||||
widget.TextBox(
|
|
||||||
text=" 🕒",
|
|
||||||
foreground=colors[2],
|
|
||||||
background=colors[4],
|
|
||||||
padding = 5,
|
|
||||||
fontsize=14
|
|
||||||
),
|
|
||||||
widget.Clock(
|
|
||||||
foreground = colors[2],
|
|
||||||
background = colors[4],
|
|
||||||
format="%A, %B %d - %H:%M"
|
|
||||||
),
|
),
|
||||||
widget.Sep(
|
widget.Sep(
|
||||||
linewidth = 0,
|
linewidth = 0,
|
||||||
padding = 5,
|
padding = 8,
|
||||||
foreground = colors[0],
|
foreground = colors[0],
|
||||||
background = colors[4]
|
background = colors[0]
|
||||||
),
|
),
|
||||||
widget.Systray(
|
widget.Clock(
|
||||||
background=colors[0],
|
foreground = colors[2],
|
||||||
padding = 5
|
background = colors[0],
|
||||||
|
format="%A, %B %d - [ %H:%M ]"
|
||||||
|
),
|
||||||
|
widget.Sep(
|
||||||
|
linewidth = 0,
|
||||||
|
padding = 10,
|
||||||
|
foreground = colors[0],
|
||||||
|
background = colors[0]
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
|
@ -572,3 +572,4 @@ def start_once():
|
||||||
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
||||||
# java that happens to be on java's whitelist.
|
# java that happens to be on java's whitelist.
|
||||||
wmname = "LG3D"
|
wmname = "LG3D"
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -1,5 +1,8 @@
|
||||||
|
" ____ _____
|
||||||
|
" | _ \_ _| Derek Taylor (DistroTube)
|
||||||
" | | | || | http://www.youtube.com/c/DistroTube
|
" | | | || | http://www.youtube.com/c/DistroTube
|
||||||
" | |_| || | http://www.gitlab.com/dwt1/
|
" | |_| || | http://www.gitlab.com/dwt1/
|
||||||
|
" |____/ |_|
|
||||||
" |____/ |_|
|
" |____/ |_|
|
||||||
|
|
||||||
" vim: filetype=vifm :
|
" vim: filetype=vifm :
|
||||||
|
@ -11,8 +14,7 @@
|
||||||
" Since emacs is a GUI app and not a terminal app like vim, append the command
|
" Since emacs is a GUI app and not a terminal app like vim, append the command
|
||||||
" with an ampersand (&).
|
" with an ampersand (&).
|
||||||
|
|
||||||
" set vicmd=emacsclient\ -c\ &
|
set vicmd=nvim
|
||||||
set vicmd=vim
|
|
||||||
|
|
||||||
" This makes vifm perform file operations on its own instead of relying on
|
" This makes vifm perform file operations on its own instead of relying on
|
||||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||||
|
@ -62,8 +64,9 @@ set novimhelp
|
||||||
set norunexec
|
set norunexec
|
||||||
|
|
||||||
" Selected color scheme
|
" Selected color scheme
|
||||||
|
" The following line will cause issues if using vifm.vim with regular vim.
|
||||||
colorscheme Default
|
" Either use neovim or comment out the following line.
|
||||||
|
colorscheme distrotube
|
||||||
|
|
||||||
" Format for displaying time in file list. For example:
|
" Format for displaying time in file list. For example:
|
||||||
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
||||||
|
|
|
@ -21,14 +21,18 @@ dwm
|
||||||
emacs.d/init.el
|
emacs.d/init.el
|
||||||
herbstluftwm
|
herbstluftwm
|
||||||
i3
|
i3
|
||||||
|
neovim
|
||||||
polybar
|
polybar
|
||||||
qtile
|
qtile
|
||||||
st
|
st
|
||||||
stumpwm
|
stumpwm
|
||||||
|
surf
|
||||||
sxhkd
|
sxhkd
|
||||||
|
tabbed
|
||||||
termite
|
termite
|
||||||
vifm
|
vifm
|
||||||
vim
|
vim
|
||||||
|
vimb
|
||||||
xmobar
|
xmobar
|
||||||
xmonad
|
xmonad
|
||||||
xresources
|
xresources
|
||||||
|
@ -69,7 +73,7 @@ case "$choice" in
|
||||||
choice="$HOME/.config/dunst/dunstrc"
|
choice="$HOME/.config/dunst/dunstrc"
|
||||||
;;
|
;;
|
||||||
dwm)
|
dwm)
|
||||||
choice="$HOME/dwm/config.h"
|
choice="$HOME/dwm-distrotube/config.h"
|
||||||
;;
|
;;
|
||||||
emacs.d/init.el)
|
emacs.d/init.el)
|
||||||
choice="$HOME/.emacs.d/init.el"
|
choice="$HOME/.emacs.d/init.el"
|
||||||
|
@ -80,6 +84,9 @@ case "$choice" in
|
||||||
i3)
|
i3)
|
||||||
choice="$HOME/.i3/config"
|
choice="$HOME/.i3/config"
|
||||||
;;
|
;;
|
||||||
|
neovim)
|
||||||
|
choice="$HOME/.config/nvim/init.vim"
|
||||||
|
;;
|
||||||
polybar)
|
polybar)
|
||||||
choice="$HOME/.config/polybar/config"
|
choice="$HOME/.config/polybar/config"
|
||||||
;;
|
;;
|
||||||
|
@ -87,14 +94,20 @@ case "$choice" in
|
||||||
choice="$HOME/.config/qtile/config.py"
|
choice="$HOME/.config/qtile/config.py"
|
||||||
;;
|
;;
|
||||||
st)
|
st)
|
||||||
choice="$HOME/st/config.h"
|
choice="$HOME/st-distrotube/config.h"
|
||||||
;;
|
;;
|
||||||
stumpwm)
|
stumpwm)
|
||||||
choice="$HOME/.config/stumpwm/config"
|
choice="$HOME/.config/stumpwm/config"
|
||||||
;;
|
;;
|
||||||
|
surf)
|
||||||
|
choice="$HOME/surf-distrotube/config.h"
|
||||||
|
;;
|
||||||
sxhkd)
|
sxhkd)
|
||||||
choice="$HOME/.config/sxhkd/sxhkdrc"
|
choice="$HOME/.config/sxhkd/sxhkdrc"
|
||||||
;;
|
;;
|
||||||
|
tabbed)
|
||||||
|
choice="$HOME/tabbed-distrotube/config.h"
|
||||||
|
;;
|
||||||
termite)
|
termite)
|
||||||
choice="$HOME/.config/termite/config"
|
choice="$HOME/.config/termite/config"
|
||||||
;;
|
;;
|
||||||
|
@ -104,6 +117,9 @@ case "$choice" in
|
||||||
vim)
|
vim)
|
||||||
choice="$HOME/.vimrc"
|
choice="$HOME/.vimrc"
|
||||||
;;
|
;;
|
||||||
|
vimb)
|
||||||
|
choice="$HOME/.config/vimb/config"
|
||||||
|
;;
|
||||||
xmobar)
|
xmobar)
|
||||||
choice="$HOME/.config/xmobar/xmobarrc2"
|
choice="$HOME/.config/xmobar/xmobarrc2"
|
||||||
;;
|
;;
|
||||||
|
|
81
.vimrc
81
.vimrc
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Vundle For Managing Plugins
|
" => Vundle For Managing Plugins
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -13,16 +12,17 @@ call vundle#begin() " required, all plugins must appear after this line.
|
||||||
|
|
||||||
Plugin 'gmarik/Vundle.vim' " Vundle
|
Plugin 'gmarik/Vundle.vim' " Vundle
|
||||||
Plugin 'itchyny/lightline.vim' " Lightline statusbar
|
Plugin 'itchyny/lightline.vim' " Lightline statusbar
|
||||||
|
Plugin 'vifm/vifm.vim'
|
||||||
|
Plugin 'vimwiki/vimwiki' " Vim wiki
|
||||||
Plugin 'scrooloose/nerdtree' " added nerdtree
|
Plugin 'scrooloose/nerdtree' " added nerdtree
|
||||||
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight'
|
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight'
|
||||||
Plugin 'ryanoasis/vim-devicons'
|
Plugin 'ryanoasis/vim-devicons'
|
||||||
|
Plugin 'frazrepo/vim-rainbow'
|
||||||
Plugin 'vim-python/python-syntax'
|
Plugin 'vim-python/python-syntax'
|
||||||
Plugin 'jreybert/vimagit'
|
Plugin 'jreybert/vimagit'
|
||||||
Plugin 'severin-lemaignan/vim-minimap'
|
Plugin 'severin-lemaignan/vim-minimap'
|
||||||
Plugin 'vimwiki/vimwiki' " Vim wiki
|
|
||||||
Plugin 'ap/vim-css-color' " Color previews for CSS
|
Plugin 'ap/vim-css-color' " Color previews for CSS
|
||||||
Plugin 'tpope/vim-surround' " Change surrounding marks
|
Plugin 'tpope/vim-surround' " Change surrounding marks
|
||||||
"Plugin 'klen/python-mode' " Python Mode
|
|
||||||
|
|
||||||
call vundle#end() " required, all plugins must appear before this line.
|
call vundle#end() " required, all plugins must appear before this line.
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ set laststatus=2
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
||||||
syntax enable
|
syntax enable
|
||||||
set relativenumber
|
set number relativenumber
|
||||||
let g:rehash256 = 1
|
let g:rehash256 = 1
|
||||||
|
|
||||||
" Uncomment to prevent non-normal modes showing in powerline and below powerline.
|
" Uncomment to prevent non-normal modes showing in powerline and below powerline.
|
||||||
|
@ -84,18 +84,76 @@ set tabstop=4
|
||||||
" Uncomment to autostart the NERDTree
|
" Uncomment to autostart the NERDTree
|
||||||
" autocmd vimenter * NERDTree
|
" autocmd vimenter * NERDTree
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
let g:NERDTreeDirArrowExpandable = '▸'
|
let g:NERDTreeDirArrowExpandable = '►'
|
||||||
let g:NERDTreeDirArrowCollapsible = '▾'
|
let g:NERDTreeDirArrowCollapsible = '▼'
|
||||||
let NERDTreeShowLineNumbers=1
|
let NERDTreeShowLineNumbers=1
|
||||||
let NERDTreeShowHidden=1
|
let NERDTreeShowHidden=1
|
||||||
let NERDTreeMinimalUI = 1
|
let NERDTreeMinimalUI = 1
|
||||||
|
let g:NERDTreeWinSize=38
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Colors
|
" => Colors
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
colo default
|
highlight LineNr ctermfg=8 ctermbg=none cterm=none
|
||||||
|
highlight CursorLineNr ctermfg=7 ctermbg=8 cterm=none
|
||||||
|
highlight VertSplit ctermfg=0 ctermbg=8 cterm=none
|
||||||
|
highlight Statement ctermfg=2 ctermbg=none cterm=none
|
||||||
|
highlight Directory ctermfg=4 ctermbg=none cterm=none
|
||||||
|
highlight StatusLine ctermfg=7 ctermbg=8 cterm=none
|
||||||
|
highlight StatusLineNC ctermfg=7 ctermbg=8 cterm=none
|
||||||
|
highlight NERDTreeClosable ctermfg=2
|
||||||
|
highlight NERDTreeOpenable ctermfg=8
|
||||||
|
highlight Comment ctermfg=4 ctermbg=none cterm=none
|
||||||
|
highlight Constant ctermfg=12 ctermbg=none cterm=none
|
||||||
|
highlight Special ctermfg=4 ctermbg=none cterm=none
|
||||||
|
highlight Identifier ctermfg=6 ctermbg=none cterm=none
|
||||||
|
highlight PreProc ctermfg=5 ctermbg=none cterm=none
|
||||||
|
highlight String ctermfg=12 ctermbg=none cterm=none
|
||||||
|
highlight Number ctermfg=1 ctermbg=none cterm=none
|
||||||
|
highlight Function ctermfg=1 ctermbg=none cterm=none
|
||||||
|
" highlight WildMenu ctermfg=0 ctermbg=80 cterm=none
|
||||||
|
" highlight Folded ctermfg=103 ctermbg=234 cterm=none
|
||||||
|
" highlight FoldColumn ctermfg=103 ctermbg=234 cterm=none
|
||||||
|
" highlight DiffAdd ctermfg=none ctermbg=23 cterm=none
|
||||||
|
" highlight DiffChange ctermfg=none ctermbg=56 cterm=none
|
||||||
|
" highlight DiffDelete ctermfg=168 ctermbg=96 cterm=none
|
||||||
|
" highlight DiffText ctermfg=0 ctermbg=80 cterm=none
|
||||||
|
" highlight SignColumn ctermfg=244 ctermbg=235 cterm=none
|
||||||
|
" highlight Conceal ctermfg=251 ctermbg=none cterm=none
|
||||||
|
" highlight SpellBad ctermfg=168 ctermbg=none cterm=underline
|
||||||
|
" highlight SpellCap ctermfg=80 ctermbg=none cterm=underline
|
||||||
|
" highlight SpellRare ctermfg=121 ctermbg=none cterm=underline
|
||||||
|
" highlight SpellLocal ctermfg=186 ctermbg=none cterm=underline
|
||||||
|
" highlight Pmenu ctermfg=251 ctermbg=234 cterm=none
|
||||||
|
" highlight PmenuSel ctermfg=0 ctermbg=111 cterm=none
|
||||||
|
" highlight PmenuSbar ctermfg=206 ctermbg=235 cterm=none
|
||||||
|
" highlight PmenuThumb ctermfg=235 ctermbg=206 cterm=none
|
||||||
|
" highlight TabLine ctermfg=244 ctermbg=234 cterm=none
|
||||||
|
" highlight TablineSel ctermfg=0 ctermbg=247 cterm=none
|
||||||
|
" highlight TablineFill ctermfg=244 ctermbg=234 cterm=none
|
||||||
|
" highlight CursorColumn ctermfg=none ctermbg=236 cterm=none
|
||||||
|
" highlight CursorLine ctermfg=none ctermbg=236 cterm=none
|
||||||
|
" highlight ColorColumn ctermfg=none ctermbg=236 cterm=none
|
||||||
|
" highlight Cursor ctermfg=0 ctermbg=5 cterm=none
|
||||||
|
" highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none
|
||||||
|
" highlight xmlEndTag ctermfg=114 ctermbg=none cterm=none
|
||||||
|
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => Vifm
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
map <Leader>vv :Vifm<CR>
|
||||||
|
map <Leader>vs :VsplitVifm<CR>
|
||||||
|
map <Leader>sp :SplitVifm<CR>
|
||||||
|
map <Leader>dv :DiffVifm<CR>
|
||||||
|
map <Leader>tv :TabVifm<CR>
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => VimWiki
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
||||||
|
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Mouse Scrolling
|
" => Mouse Scrolling
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -124,13 +182,10 @@ set guioptions-=T "remove toolbar
|
||||||
set guioptions-=r "remove right-hand scroll bar
|
set guioptions-=r "remove right-hand scroll bar
|
||||||
set guioptions-=L "remove left-hand scroll bar
|
set guioptions-=L "remove left-hand scroll bar
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" => Fixes mouse issues using Alacritty terminal
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
set ttymouse=sgr
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Removes pipes | that act as seperators on splits
|
" => Removes pipes | that act as seperators on splits
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
:set fillchars+=vert:\
|
set fillchars+=vert:\
|
||||||
|
|
||||||
|
|
||||||
|
|
79
.zshrc
79
.zshrc
|
@ -4,6 +4,8 @@
|
||||||
# | |_| || | http://www.gitlab.com/dwt1/
|
# | |_| || | http://www.gitlab.com/dwt1/
|
||||||
# |____/ |_|
|
# |____/ |_|
|
||||||
|
|
||||||
|
PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
||||||
|
EDITOR="nvim"
|
||||||
export TERM="st-256color"
|
export TERM="st-256color"
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
@ -16,18 +18,18 @@ ZSH=/usr/share/oh-my-zsh/
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
# ZSH_THEME="powerlevel9k"
|
ZSH_THEME="distrotube"
|
||||||
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='5'
|
# POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='5'
|
||||||
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='0'
|
# POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='0'
|
||||||
POWERLEVEL9K_STATUS_OK_BACKGROUND='8'
|
# POWERLEVEL9K_STATUS_OK_BACKGROUND='8'
|
||||||
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='11'
|
# POWERLEVEL9K_VCS_CLEAN_BACKGROUND='11'
|
||||||
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='8'
|
# POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='8'
|
||||||
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='10'
|
# POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='10'
|
||||||
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS='0.05'
|
# POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS='0.05'
|
||||||
POWERLEVEL9K_VI_INSERT_MODE_STRING='INSERT'
|
# POWERLEVEL9K_VI_INSERT_MODE_STRING='INSERT'
|
||||||
POWERLEVEL9K_VI_COMMAND_MODE_STRING='NORMAL'
|
# POWERLEVEL9K_VI_COMMAND_MODE_STRING='NORMAL'
|
||||||
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history time)
|
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history time)
|
||||||
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
|
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
|
||||||
ZLE_RPROMPT_INDENT=0
|
ZLE_RPROMPT_INDENT=0
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
|
@ -122,13 +124,23 @@ if [[ ! -d $ZSH_CACHE_DIR ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
source ~/powerlevel10k/powerlevel10k.zsh-theme
|
# source ~/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
|
||||||
# terminal rickroll!
|
### ALIASES ###
|
||||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
|
||||||
|
|
||||||
# dotfile git alias
|
# root privileges
|
||||||
alias config='/usr/bin/git --git-dir=/home/dt/dotfiles --work-tree=/home/dt'
|
alias doas="doas --"
|
||||||
|
|
||||||
|
# navigation
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
|
||||||
|
# vim
|
||||||
|
alias vim=nvim
|
||||||
|
|
||||||
|
# broot
|
||||||
|
alias br='br -dhp'
|
||||||
|
alias bs='br --sizes'
|
||||||
|
|
||||||
# Changing "ls" to "exa"
|
# Changing "ls" to "exa"
|
||||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
||||||
|
@ -136,24 +148,41 @@ alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||||
|
|
||||||
|
# adding flags
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
alias cp="cp -i" # confirm before overwriting something
|
||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias grep='grep --colour=auto'
|
alias free='free -m' # show sizes in MB
|
||||||
|
alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
|
||||||
|
alias vifm='./.config/vifm/scripts/vifmrun'
|
||||||
|
|
||||||
#alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
|
# the terminal rickroll
|
||||||
|
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
||||||
|
|
||||||
zstyle ':completion:*' completer _expand_alias _complete _ignored
|
# bare git repo alias for dotfiles
|
||||||
|
alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
||||||
|
|
||||||
|
# termbin
|
||||||
alias tb="nc termbin.com 9999"
|
alias tb="nc termbin.com 9999"
|
||||||
# alt+<- | alt+->
|
|
||||||
bindkey "^[f" forward-word # deletes everything right of the prompt.
|
|
||||||
bindkey "^[b" backward-word # deletes characters one at a time, backwards.
|
|
||||||
|
|
||||||
# bindkey -v
|
### SET VI MODE IN BASH SHELL
|
||||||
bindkey '^R' history-incremental-search-backward
|
set -o vi
|
||||||
|
|
||||||
|
### SET VIM AS MANPAGER ###
|
||||||
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
|
|
||||||
|
### BASH POWERLINE ###
|
||||||
|
source ~/.bash-powerline.sh
|
||||||
|
|
||||||
|
### BROOT ###
|
||||||
source /home/dt/.config/broot/launcher/bash/br
|
source /home/dt/.config/broot/launcher/bash/br
|
||||||
|
|
||||||
|
### BASH INSULTER ###
|
||||||
|
if [ -f /etc/bash.command-not-found ]; then
|
||||||
|
. /etc/bash.command-not-found
|
||||||
|
fi
|
||||||
|
|
||||||
|
### RANDOM COLOR SCRIPT ###
|
||||||
|
/opt/shell-color-scripts/colorscript.sh random
|
||||||
|
|
||||||
|
### SETS VI MODE ###
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
|
@ -3,7 +3,7 @@ static const Block blocks[] = {
|
||||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
{" 🐧 ", "kernel", 360, 2},
|
{" 🐧 ", "kernel", 360, 2},
|
||||||
|
|
||||||
{" ▲ ", "upt", 60, 2},
|
{" 🔺 ", "upt", 60, 2},
|
||||||
|
|
||||||
{" 📦 ", "pacupdate", 360, 9},
|
{" 📦 ", "pacupdate", 360, 9},
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue