merged master into laptop branch
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
font:
|
||||
normal:
|
||||
family: UbuntuMonoNerdFont
|
||||
style: Regular
|
||||
|
||||
bold:
|
||||
family: UbuntuMonoNerdFont
|
||||
style: Bold
|
||||
|
||||
italic:
|
||||
family: UbuntuMonoNerdFont
|
||||
style: Italic
|
||||
|
||||
bold_italic:
|
||||
family: UbuntuMonoNerdFont
|
||||
style: Bold Italic
|
||||
|
||||
size: 11
|
||||
|
||||
# Colors (Gruvbox dark)
|
||||
colors:
|
||||
primary:
|
||||
# hard contrast background - '#1d2021'
|
||||
background: &gruvbox_dark_bg '#282828'
|
||||
# soft contrast background - '#32302f'
|
||||
foreground: '#fbf1c7'
|
||||
bright_foreground: '#f9f5d7'
|
||||
dim_foreground: '#f2e5bc'
|
||||
cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
vi_mode_cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
# search:
|
||||
# matches:
|
||||
# foreground: '#000000'
|
||||
# background: '#ffffff'
|
||||
# focused_match:
|
||||
# foreground: CellBackground
|
||||
# background: CellForeground
|
||||
# bar:
|
||||
# background: ''
|
||||
# foreground: ''
|
||||
# line_indicator:
|
||||
# foreground: None
|
||||
# background: None
|
||||
selection:
|
||||
text: CellBackground
|
||||
background: CellForeground
|
||||
bright:
|
||||
black: '#928374'
|
||||
red: '#fb4934'
|
||||
green: '#b8bb26'
|
||||
yellow: '#fabd2f'
|
||||
blue: '#83a598'
|
||||
magenta: '#d3869b'
|
||||
cyan: '#8ec07c'
|
||||
white: '#ebdbb2'
|
||||
normal:
|
||||
black: *gruvbox_dark_bg
|
||||
red: '#cc241d'
|
||||
green: '#98971a'
|
||||
yellow: '#d79921'
|
||||
blue: '#458588'
|
||||
magenta: '#b16286'
|
||||
cyan: '#689d6a'
|
||||
white: '#a89984'
|
||||
dim:
|
||||
black: '#32302f'
|
||||
red: '#9d0006'
|
||||
green: '#79740e'
|
||||
yellow: '#b57614'
|
||||
blue: '#076678'
|
||||
magenta: '#8f3f71'
|
||||
cyan: '#427b58'
|
||||
white: '#928374'
|
||||
# indexed_colors: []
|
||||
@@ -0,0 +1,205 @@
|
||||
let $MYPLUGDIRECTORY = "~/.config/nvim/plugged/"
|
||||
let $MYNVIMINIT = "~/.config/nvim/init.vim"
|
||||
let $MYCOCVIM = "~/.config/nvim/coc.vim"
|
||||
|
||||
"--------------------
|
||||
"plugins
|
||||
"--------------------
|
||||
" autoinstall vim-plug if it is not installed
|
||||
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||
silent !curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall | source $MYNVIMINIT
|
||||
endif
|
||||
|
||||
call plug#begin($MYPLUGDIRECTORY)
|
||||
" automatically install all plugins that are not already installed
|
||||
if !empty(filter(copy(g:plugs), '!isdirectory(v:val.dir)'))
|
||||
autocmd VimEnter * PlugInstall | q
|
||||
endif
|
||||
Plug 'preservim/nerdtree' " file tree
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin' " git plugin for nerdtree
|
||||
Plug 'PhilRunninger/nerdtree-visual-selection' " file manipulation in nerdtree
|
||||
Plug 'kshenoy/vim-signature' " show marks
|
||||
Plug 'ryanoasis/vim-devicons' " devicons for nerdtree
|
||||
Plug 'vim-airline/vim-airline' " statusline
|
||||
Plug 'preservim/nerdcommenter' " easier comment management
|
||||
Plug 'airblade/vim-gitgutter' " show git changes
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'} " code completion
|
||||
Plug 'jiangmiao/auto-pairs' " automatic pairs
|
||||
Plug 'machakann/vim-sandwich' " manipulate elements surrounding other elements
|
||||
Plug 'tpope/vim-fugitive' " git master tool
|
||||
Plug 'vim-scripts/colorizer' " colorize color codes
|
||||
Plug 'honza/vim-snippets' " snippets
|
||||
Plug 'rbonvall/snipmate-snippets-bib' " bib snippets
|
||||
Plug 'lervag/vimtex' " vimtex
|
||||
Plug 'morhetz/gruvbox' " gruvbox colorscheme
|
||||
Plug 'Yggdroot/indentLine' " ident guides
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||
Plug 'elkowar/yuck.vim', {'for': 'yuck'} " for yuck (eww) configuration
|
||||
call plug#end()
|
||||
|
||||
"--------------------
|
||||
" general settings
|
||||
"--------------------
|
||||
let mapleader=" " " set mapleader to space
|
||||
let maplocalleader=" " " set localleader to space
|
||||
set timeoutlen=1000 " set timeout length
|
||||
set spell " activate spell-checking
|
||||
set nocompatible " disable compatibility to old-time vi
|
||||
let g:indentLine_setConceal = 0 " disable the conceal 'feature' of indentLine plugin
|
||||
set showmatch " show matching brackets.
|
||||
set mouse=v " middle-click paste with mouse
|
||||
set hlsearch " highlight search results
|
||||
set tabstop=4 " number of columns occupied by a tab character
|
||||
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
|
||||
set expandtab " converts tabs to white space
|
||||
set shiftwidth=4 " width for autoindents
|
||||
set autoindent " indent a new line the same amount as the line just typed
|
||||
set wildmode=longest,list " get bash-like tab completions
|
||||
filetype plugin indent on " allows auto-indenting depending on file type
|
||||
syntax on " syntax highlighting
|
||||
set cc=80 " set an 80 column border for good coding style
|
||||
"toggle cc when reasonable
|
||||
augroup cctoggle
|
||||
autocmd!
|
||||
autocmd BufEnter,FocusGained * set cc=80
|
||||
autocmd BufLeave,FocusLost * set cc=0
|
||||
augroup END
|
||||
|
||||
"--------------------
|
||||
"mappings
|
||||
"--------------------
|
||||
"disable colorizer mappings
|
||||
let g:colorizer_nomap = 1
|
||||
|
||||
" enable copy and past to and fro clipboard
|
||||
vnoremap <leader>y "+y
|
||||
nnoremap <leader>Y "+yg_
|
||||
nnoremap <leader>y "+y
|
||||
nnoremap <leader>p "+p
|
||||
nnoremap <leader>P "+P
|
||||
vnoremap <leader>p "+p
|
||||
vnoremap <leader>P "+P
|
||||
"custom window commands
|
||||
nnoremap <leader>wv <C-W>v
|
||||
nnoremap <leader>ws <C-W>s
|
||||
nnoremap <leader>wc <C-W>c
|
||||
nnoremap <leader>wo <C-W>o
|
||||
nnoremap <C-h> <C-W>h
|
||||
nnoremap <C-l> <C-W>l
|
||||
nnoremap <C-j> <C-W>j
|
||||
nnoremap <C-k> <C-W>k
|
||||
nnoremap öw :w<CR>
|
||||
nnoremap öq :q<CR>
|
||||
"custom tab commands
|
||||
nnoremap <leader>tn :tabnew<space>
|
||||
nnoremap <leader>tc :tabclose<CR>
|
||||
"show buffers
|
||||
nnoremap <Leader>b :buffers<CR>:buffer<Space>
|
||||
" cycle buffers
|
||||
nnoremap <Tab> :bnext<CR>
|
||||
"reload settings
|
||||
nnoremap <leader>rl :source ~/.config/nvim/init.vim<CR>
|
||||
"NERDTree commands
|
||||
nnoremap <leader>nt :NERDTreeToggle<CR>
|
||||
nnoremap <leader>f :NERDTreeFind<CR>
|
||||
"symbol renaming
|
||||
nnoremap <leader>rn <Plug>(coc-reame)
|
||||
|
||||
"--------------------
|
||||
" coc (Conquer of Completion)
|
||||
"--------------------
|
||||
" coc plugins (will automatically install)
|
||||
let g:coc_global_extensions = ['coc-snippets', 'coc-git', 'coc-vimtex', 'coc-python', 'coc-vimlsp', 'coc-json']
|
||||
source $MYCOCVIM
|
||||
"" use <tab> for trigger completion and navigate to the next complete item
|
||||
"function! s:check_back_space() abort
|
||||
"let col = col('.')- 1
|
||||
"return !col || getline('.')[col - 1] =~ '\s'
|
||||
"endfunction
|
||||
|
||||
"" Make <tab> used for trigger completion, completion confirm, snippet expand and jump like VSCode.
|
||||
"inoremap <silent><expr> <TAB>
|
||||
"\ pumvisible() ? coc#_select_confirm() :
|
||||
"\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
|
||||
"\ <SID>check_back_space() ? "\<TAB>" :
|
||||
"\ coc#refresh()
|
||||
|
||||
"function! s:check_back_space() abort
|
||||
"let col = col('.') - 1
|
||||
"return !col || getline('.')[col - 1] =~# '\s'
|
||||
"endfunction
|
||||
|
||||
"let g:coc_snippet_next = '<tab>'
|
||||
|
||||
"--------------------
|
||||
" airline
|
||||
"--------------------
|
||||
set laststatus=2 " start in 'normal' mode
|
||||
let g:airline#extensions#tabline#enabled = 1 " enable tabline for buffers
|
||||
let g:airline#extensions#tabline#formatter = 'unique_tail' " set tabline item style
|
||||
|
||||
"--------------------
|
||||
"NERDTree
|
||||
"--------------------
|
||||
set modifiable
|
||||
let NERDTreeShowHidden=1 " show hidden files in NERDTree
|
||||
let NERDTreeAutoDeleteBuffer=1 " automatically delete the buffer of the file deleted with NERDTree
|
||||
let g:NERDTreeGitStatusUseNerdFonts=1 " enable nerdfonts for git status in nerdtree
|
||||
let NERDTreeShowLineNumbers=0 " disable line numbers
|
||||
let g:NERDTreeWinSize=50 " increase the size of the NERDTree window
|
||||
" Start NERDTree when Vim is started without file arguments.
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
||||
" Exit Vim if NERDTree is the only window left.
|
||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
||||
\ quit | endif
|
||||
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
|
||||
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
|
||||
|
||||
|
||||
"--------------------
|
||||
"colors
|
||||
"--------------------
|
||||
" set colorscheme
|
||||
let g:gruvbox_contrast_dark='hard'
|
||||
colorscheme gruvbox
|
||||
set background=dark
|
||||
" extra specified colors
|
||||
highlight ColorColumn ctermbg=236
|
||||
highlight clear SignColumn
|
||||
highlight GitGutterAdd ctermfg=142
|
||||
highlight GitGutterChange ctermfg=208
|
||||
highlight GitGutterDelete ctermfg=124
|
||||
highlight LineNr ctermfg=7
|
||||
highlight CursorLineNr ctermfg=7
|
||||
|
||||
"toggle relativenumber when reasonable
|
||||
set number relativenumber
|
||||
augroup numbertoggle
|
||||
autocmd!
|
||||
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||
augroup END
|
||||
|
||||
"--------------------
|
||||
"vimtex
|
||||
"--------------------
|
||||
let g:vimtex_compiler_progname = 'nvr' " neovim-remote for vimtex
|
||||
let g:vimtex_view_method = 'zathura' " set zathura as basic pdf viewer
|
||||
"open TOC
|
||||
nnoremap <leader>toc :VimtexTocToggle<CR>
|
||||
" latexmk parameters
|
||||
let g:vimtex_compiler_latexmk = {
|
||||
\ 'options' : [
|
||||
\ '-pdf',
|
||||
\ '-shell-escape',
|
||||
\ '-verbose',
|
||||
\ '-file-line-error',
|
||||
\ '-synctex=1',
|
||||
\ '-interaction=nonstopmode',
|
||||
\ ],
|
||||
\}
|
||||
|
||||
@@ -16,7 +16,6 @@ base
|
||||
bdf-unifont
|
||||
binutils
|
||||
bison
|
||||
bitwarden-bin
|
||||
bitwarden-rofi
|
||||
breeze-gtk
|
||||
breeze-icons
|
||||
|
||||
@@ -8,12 +8,12 @@ widget_defaults = dict(
|
||||
background=base_color,
|
||||
font='Ubuntu Mono',
|
||||
fontsize=18,
|
||||
padding=3,
|
||||
padding=1,
|
||||
)
|
||||
extension_defaults = widget_defaults.copy()
|
||||
|
||||
main_bar_fontsize=22
|
||||
main_bar_height=28
|
||||
main_bar_height=24
|
||||
secondary_bar_height=24
|
||||
secondary_bar_fontsize=18
|
||||
|
||||
|
||||
@@ -4,16 +4,18 @@ from libqtile.command import lazy
|
||||
from defines import term
|
||||
from Keys import keys
|
||||
|
||||
group_names = [("","Home", 'h',{'layout': 'monadtall'}),
|
||||
("","Coding", 'c',{'layout': 'monadtall'}),
|
||||
("","Browser", 'f',{'layout': 'monadtall'}),
|
||||
("","Mail", 'm',{'layout': 'monadtall'}),
|
||||
("","Music", 's',{'layout': 'monadtall'}),
|
||||
("","Video", 'v',{'layout': 'monadtall'}),
|
||||
("","Documents", 'l',{'layout': 'monadtall'}),
|
||||
("","Discord", 'd',{'layout': 'monadtall'}),
|
||||
("","VM's", 'o',{'layout': 'monadtall'}),
|
||||
("","Gaming", 'g',{'layout': 'monadtall'})]
|
||||
group_names = [("","Home", 'h',{'layout': 'monadtall'}),
|
||||
("","Browser", 'f',{'layout': 'monadtall'}),
|
||||
("","Mail", 'm',{'layout': 'monadtall'}),
|
||||
("","Coding", 'c',{'layout': 'monadtall'}),
|
||||
("","Documents", 'l',{'layout': 'monadtall'}),
|
||||
("ﱘ","Music", 'u',{'layout': 'monadtall'}),
|
||||
("","Video", 'v',{'layout': 'monadtall'}),
|
||||
("ﭮ","Discord", 'd',{'layout': 'monadtall'}),
|
||||
("一","etc1", '1', {'layout': 'monadtall'}),
|
||||
("二","etc2", '2', {'layout': 'monadtall'}),
|
||||
("三","etc3", '3', {'layout': 'monadtall'}),
|
||||
("四","etc4", '4', {'layout': 'monadtall'})]
|
||||
|
||||
groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
|
||||
|
||||
@@ -28,8 +30,8 @@ groups.append(
|
||||
term + ' -e htop',
|
||||
),
|
||||
DropDown(
|
||||
'sound',
|
||||
'pavucontrol'
|
||||
'sound',[[elektronik:Protokolle]]
|
||||
'pavucontrol'[[elektronik:Protokolle]]
|
||||
),
|
||||
DropDown(
|
||||
'filemanager',
|
||||
@@ -37,21 +39,46 @@ groups.append(
|
||||
on_focus_lost_hide=False
|
||||
),
|
||||
DropDown(
|
||||
'password manager',
|
||||
'keepassxc',
|
||||
'bitwarden',
|
||||
'bitwarden-desktop',
|
||||
on_focus_lost_hide=False,
|
||||
),
|
||||
DropDown(
|
||||
'WhatsApp',
|
||||
'whatsapp-for-linux',
|
||||
'whatsapp-nativefier',
|
||||
height = 0.5,
|
||||
width = 0.5,
|
||||
x = .25
|
||||
width = 0.8,
|
||||
x = .1,
|
||||
on_focus_lost_hide=False,
|
||||
opacity=1
|
||||
),
|
||||
DropDown(
|
||||
'Signal',
|
||||
'signal-desktop',
|
||||
height = 0.5,
|
||||
width = 0.8,
|
||||
x = .1,
|
||||
on_focus_lost_hide=False,
|
||||
opacity = 1
|
||||
),
|
||||
DropDown(
|
||||
'Qalculate!',
|
||||
'qalculate-gtk',
|
||||
height = 0.5,
|
||||
width = 0.5,
|
||||
x = .25,
|
||||
on_focus_lost_hide=True,
|
||||
opacity = 1
|
||||
),
|
||||
DropDown(
|
||||
'Slack',
|
||||
'slack',
|
||||
height = 0.5,
|
||||
width = 0.8,
|
||||
x = 0.1,
|
||||
on_focus_lost_hide=False,
|
||||
opacity=1
|
||||
)
|
||||
])
|
||||
)
|
||||
|
||||
@@ -73,10 +100,14 @@ keys.extend([
|
||||
desc="open the dropdown pavucontrol"),
|
||||
Key(['mod1','control'],'e',lazy.group['scratchpad'].dropdown_toggle('filemanager'),
|
||||
desc="open the dropdown filemanager"),
|
||||
Key(['mod1','control'],'p',lazy.group['scratchpad'].dropdown_toggle('password manager'),
|
||||
Key(['mod1','control'],'b',lazy.group['scratchpad'].dropdown_toggle('bitwarden'),
|
||||
desc="open the dropdown password manager KeePassXC"),
|
||||
Key(['mod1','control'],'w',lazy.group['scratchpad'].dropdown_toggle('WhatsApp'),
|
||||
desc="open the dropdown for WhatsApp"),
|
||||
Key(['mod1','control'],'i',lazy.group['scratchpad'].dropdown_toggle('Signal'),
|
||||
desc="open the dropdown for Signal"),
|
||||
])
|
||||
Key(['mod1','control'],'s',lazy.group['scratchpad'].dropdown_toggle('Slack'),
|
||||
desc="open the dropdown for Slack"),
|
||||
Key(['mod1','control'],'q',lazy.group['scratchpad'].dropdown_toggle('Qalculate!'),
|
||||
desc="open the dropdown for Qalculate!"),
|
||||
])
|
||||
|
||||
@@ -4,6 +4,9 @@ from libqtile.command import lazy
|
||||
from defines import mod, term
|
||||
|
||||
keys = [
|
||||
#screen lock
|
||||
Key([mod], "End" , lazy.spawn('dm-tool lock'),desc="locks session"),
|
||||
|
||||
#moving focus aroung
|
||||
Key([mod], "h", lazy.layout.left(),desc="move focus left"),
|
||||
Key([mod], "l", lazy.layout.right(),desc="move focus right"),
|
||||
@@ -13,12 +16,15 @@ keys = [
|
||||
Key([mod,"mod1"], "j", lazy.to_screen(2),desc="move focus to main screen"),
|
||||
Key([mod,"mod1"], "l", lazy.to_screen(2),desc="move focus to main screen"),
|
||||
Key([mod,"mod1"], "h", lazy.to_screen(1),desc="move focus to left screen"),
|
||||
Key([mod,"mod1"], "n", lazy.next_screen(),desc="move focus to left screen"),
|
||||
|
||||
# moving windows around
|
||||
Key([mod, "shift"], "h", lazy.layout.swap_left(),desc="move focused window left"),
|
||||
Key([mod, "shift"], "l", lazy.layout.swap_right(),desc="move focused window right"),
|
||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(),desc="move focused window down"),
|
||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(),desc="move focused window up"),
|
||||
Key([mod, "shift", "control"], "h", lazy.layout.swap_column_left(),desc="move focused window one column to the left"),
|
||||
Key([mod, "shift", "control"], "l", lazy.layout.swap_column_right(),desc="move focused window one column to the right"),
|
||||
|
||||
# resize windows
|
||||
Key([mod], "plus", lazy.layout.grow(),desc="increase window size"),
|
||||
@@ -32,7 +38,7 @@ keys = [
|
||||
Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"),
|
||||
Key([mod],"e", lazy.spawn("pcmanfm"),desc="Launch pcmanfm"),
|
||||
Key([mod],"c", lazy.spawn("code"),desc="Launch visual studio code"),
|
||||
Key([mod],"v", lazy.spawn(term + " -e vim"),desc="Launch Vim"),
|
||||
Key([mod],"v", lazy.spawn(term + " -e nvim"),desc="Launch NeoVim"),
|
||||
Key([mod, "shift"],"s", lazy.spawn('gscreenshot -s -o -f /tmp/screenshots'),desc="take a screenshot"),
|
||||
|
||||
# Toggle between different layouts as defined below
|
||||
@@ -59,6 +65,10 @@ keys = [
|
||||
Key([], 'XF86AudioNext', lazy.spawn('playerctl next')),
|
||||
Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')),
|
||||
Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')),
|
||||
|
||||
# backlight keys
|
||||
Key([], 'XF86MonBrightnessUp', lazy.spawn('xbacklight -inc 5')),
|
||||
Key([], 'XF86MonBrightnessDown', lazy.spawn('xbacklight -dec 5')),
|
||||
]
|
||||
|
||||
|
||||
@@ -69,4 +79,4 @@ mouse = [
|
||||
Drag([mod], "Button3", lazy.window.set_size_floating(),
|
||||
start=lazy.window.get_size()),
|
||||
Click([mod], "Button2", lazy.window.bring_to_front())
|
||||
]
|
||||
]
|
||||
|
||||
@@ -1,24 +1,34 @@
|
||||
from libqtile import layout
|
||||
from libqtile.config import Match
|
||||
|
||||
from defines import focus_color, border_width
|
||||
from defines import focus_color, border_width, window_margin
|
||||
|
||||
layouts = [
|
||||
layout.MonadTall(
|
||||
align=1,
|
||||
border_focus = focus_color,
|
||||
border_width = border_width,
|
||||
new_at_current = True,
|
||||
margin=window_margin,
|
||||
new_client_position = 'after_current',
|
||||
),
|
||||
layout.Floating(
|
||||
border_focus = focus_color,
|
||||
border_width = border_width,
|
||||
margin=window_margin,
|
||||
),
|
||||
layout.Max(),
|
||||
layout.MonadWide(
|
||||
border_focus = focus_color,
|
||||
border_width = border_width,
|
||||
new_at_current = True,
|
||||
new_client_position = 'after_current',
|
||||
margin=window_margin,
|
||||
),
|
||||
layout.Columns(
|
||||
border_focus = focus_color,
|
||||
border_width = border_width,
|
||||
num_columns = 3,
|
||||
margin = window_margin,
|
||||
)
|
||||
]
|
||||
|
||||
floating_layout = layout.Floating(
|
||||
@@ -26,18 +36,14 @@ floating_layout = layout.Floating(
|
||||
border_width = border_width,
|
||||
float_rules=[
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
{'wmclass': 'confirm'},
|
||||
{'wmclass': 'dialog'},
|
||||
{'wmclass': 'download'},
|
||||
{'wmclass': 'error'},
|
||||
{'wmclass': 'file_progress'},
|
||||
{'wmclass': 'notification'},
|
||||
{'wmclass': 'splash'},
|
||||
{'wmclass': 'toolbar'},
|
||||
{'wmclass': 'confirmreset'}, # gitk
|
||||
{'wmclass': 'makebranch'}, # gitk
|
||||
{'wmclass': 'maketag'}, # gitk
|
||||
{'wname': 'branchdialog'}, # gitk
|
||||
{'wname': 'pinentry'}, # GPG key password entry
|
||||
{'wmclass': 'ssh-askpass'}, # ssh-askpass
|
||||
])
|
||||
*layout.Floating.default_float_rules,
|
||||
Match(wm_class='confirmreset'), # gitk
|
||||
Match(wm_class='makebranch'), # gitk
|
||||
Match(wm_class='maketag'), # gitk
|
||||
Match(title='branchdialog'), # gitk
|
||||
Match(title='pinentry'), # GPG key password entry
|
||||
Match(wm_class='ssh-askpass'), # ssh-askpass
|
||||
Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab
|
||||
Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab
|
||||
Match(wm_class='Nitrogen'),
|
||||
])
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from libqtile import widget
|
||||
|
||||
from defines import base_color, term
|
||||
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color
|
||||
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color, yellow_color
|
||||
from Custom_Widgets import MemoryC, Mic
|
||||
|
||||
#region Powerline
|
||||
@@ -34,16 +34,20 @@ def powerline_arrow(direction, color1, color2,size):
|
||||
#region Left_widgets
|
||||
def Left_widgets(size,fontsize,prompt=False):
|
||||
return [
|
||||
widget.CurrentLayoutIcon(),
|
||||
widget.CurrentLayoutIcon(
|
||||
scale = 0.9,
|
||||
),
|
||||
*powerline_arrow('r',base_color,blue_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/archlinux-logo-small.png',
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
fontsize=fontsize+14,
|
||||
margin=5,
|
||||
background=blue_color
|
||||
),
|
||||
*powerline_arrow('r',blue_color,base_color,size),
|
||||
widget.GroupBox(
|
||||
fontsize=fontsize,
|
||||
fontsize=fontsize+10,
|
||||
rounded=False,
|
||||
active=light_foreground_color,
|
||||
inactive=dark_foreground_color,
|
||||
@@ -56,7 +60,9 @@ def Left_widgets(size,fontsize,prompt=False):
|
||||
urgent_alert_method='block',
|
||||
urgent_border = red_color,
|
||||
),
|
||||
widget.Spacer(),
|
||||
widget.WindowName(fontsize=fontsize-2),
|
||||
widget.Spacer(),
|
||||
]
|
||||
#endregion
|
||||
|
||||
@@ -65,25 +71,25 @@ def volume_widget(prev_color,color,size,fontsize):
|
||||
return[
|
||||
*powerline_arrow('l',prev_color,color,size),
|
||||
widget.Volume(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=color,
|
||||
emoji=True,
|
||||
fontsize=fontsize,
|
||||
),
|
||||
widget.Volume(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=color,
|
||||
fontsize=fontsize,
|
||||
padding=0
|
||||
),
|
||||
Mic(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=color,
|
||||
emoji=True,
|
||||
fontsize=fontsize,
|
||||
fontsize=fontsize + 6,
|
||||
),
|
||||
Mic(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=color,
|
||||
fontsize=fontsize,
|
||||
padding=0
|
||||
@@ -99,58 +105,58 @@ launch_htop= {'Button1': launch_htop}
|
||||
|
||||
def System_widgets(prev_color,last_color,size,fontsize):
|
||||
return [
|
||||
*powerline_arrow('l',prev_color,red_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/temp.png',
|
||||
margin=5,
|
||||
background=red_color,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',prev_color,orange_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=orange_color,
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.ThermalSensor(
|
||||
foreground=dark_foreground_color,
|
||||
background=red_color,
|
||||
foreground=light_foreground_color,
|
||||
background=orange_color,
|
||||
fontsize=fontsize,
|
||||
tag_sensor='Tctl',
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',red_color,green_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/cpu.png',
|
||||
margin=5,
|
||||
*powerline_arrow('l',orange_color,green_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=green_color,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.CPU(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=green_color,
|
||||
fontsize=fontsize,
|
||||
format='{load_percent}% @ {freq_current}GHz',
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',green_color,orange_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/ram.png',
|
||||
background=orange_color,
|
||||
margin=-10,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',green_color,yellow_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=yellow_color,
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
MemoryC(
|
||||
foreground=dark_foreground_color,
|
||||
background=orange_color,
|
||||
foreground=light_foreground_color,
|
||||
background=yellow_color,
|
||||
fontsize=fontsize,
|
||||
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)",
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',orange_color,last_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/network.png',
|
||||
*powerline_arrow('l',yellow_color,last_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=blue_color,
|
||||
margin=5,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.Net(
|
||||
background=last_color,
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
fontsize=fontsize,
|
||||
fmt='{:.9}',
|
||||
format='{down}↓',
|
||||
@@ -158,7 +164,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
||||
),
|
||||
widget.Net(
|
||||
background=last_color,
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
fontsize=fontsize,
|
||||
fmt='{:.9}',
|
||||
format='{up}↑',
|
||||
@@ -170,19 +176,20 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
||||
#region End_widgets
|
||||
def end_widgets(prev_color,size,fontsize):
|
||||
return [
|
||||
*powerline_arrow('l',prev_color,magenta_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/calendar.png',
|
||||
margin=5,
|
||||
background=magenta_color,
|
||||
),
|
||||
*powerline_arrow('l',prev_color,purple_color,size),
|
||||
widget.TextBox(
|
||||
text='ﭷ',
|
||||
foreground=light_foreground_color,
|
||||
background=purple_color,
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.Clock(
|
||||
foreground=dark_foreground_color,
|
||||
background=magenta_color,
|
||||
foreground=light_foreground_color,
|
||||
background=purple_color,
|
||||
fontsize=fontsize,
|
||||
format='%Y-%m-%d'
|
||||
),
|
||||
*powerline_arrow('l',magenta_color,base_color,size),
|
||||
*powerline_arrow('l',purple_color,base_color,size),
|
||||
widget.Clock(
|
||||
font='dseg7 classic bold',
|
||||
fontsize=16,
|
||||
@@ -194,52 +201,55 @@ def end_widgets(prev_color,size,fontsize):
|
||||
#region Laptop widgets
|
||||
def Laptop_widgets(prev_color,last_color,size,fontsize):
|
||||
return [
|
||||
*powerline_arrow('l',prev_color,red_color,size),
|
||||
*powerline_arrow('l',prev_color,orange_color,size),
|
||||
widget.Battery(
|
||||
foreground=dark_foreground_color,
|
||||
background=red_color,
|
||||
foreground=light_foreground_color,
|
||||
background=orange_color,
|
||||
fontsize=fontsize,
|
||||
update_interval=1,
|
||||
format="{percent:2.0%}",
|
||||
format="{char} {percent:2.0%}",
|
||||
low_percentage=0.2,
|
||||
notify_below=True,
|
||||
low_foreground=red_color,
|
||||
),
|
||||
*powerline_arrow('l',red_color,green_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/cpu.png',
|
||||
margin=5,
|
||||
*powerline_arrow('l',orange_color,green_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=green_color,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.CPU(
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
background=green_color,
|
||||
fontsize=fontsize,
|
||||
format='{load_percent}%',
|
||||
format='{load_percent}% @ {freq_current}GHz',
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',green_color,orange_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/ram.png',
|
||||
background=orange_color,
|
||||
margin=-10,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',green_color,yellow_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=yellow_color,
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
MemoryC(
|
||||
foreground=dark_foreground_color,
|
||||
background=orange_color,
|
||||
foreground=light_foreground_color,
|
||||
background=yellow_color,
|
||||
fontsize=fontsize,
|
||||
format=" {MemUsed}GB | {SwapUsed}GB",
|
||||
format=" {MemUsed}GB|{SwapUsed}GB",
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
*powerline_arrow('l',orange_color,last_color,size),
|
||||
widget.Image(
|
||||
filename='~/.config/qtile/icons/network.png',
|
||||
*powerline_arrow('l',yellow_color,last_color,size),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
foreground=light_foreground_color,
|
||||
background=blue_color,
|
||||
margin=5,
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
fontsize=fontsize+6
|
||||
),
|
||||
widget.Net(
|
||||
background=last_color,
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
fontsize=fontsize,
|
||||
fmt='{:.9}',
|
||||
format='{down}↓',
|
||||
@@ -247,11 +257,11 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
|
||||
),
|
||||
widget.Net(
|
||||
background=last_color,
|
||||
foreground=dark_foreground_color,
|
||||
foreground=light_foreground_color,
|
||||
fontsize=fontsize,
|
||||
fmt='{:.9}',
|
||||
format='{up}↑',
|
||||
mouse_callbacks = launch_htop,
|
||||
),
|
||||
]
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
sleep 1&
|
||||
setxkbmap de&
|
||||
nitrogen --restore &
|
||||
bash .screenlayout/layout.sh &
|
||||
pulseaudio-ctl set 50 &
|
||||
dunst &
|
||||
nextcloud &
|
||||
timeshift &
|
||||
numlockx &
|
||||
redshift-gtk -t 6500:3600 &
|
||||
udiskie -t &
|
||||
picom -b --experimental-backend &
|
||||
cbatticon &
|
||||
nm-applet &
|
||||
@@ -1,3 +0,0 @@
|
||||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhistcnt =1
|
||||
let g:netrw_dirhist_1='/home/paul/.config'
|
||||
File diff suppressed because it is too large
Load Diff
Submodule vim/.vim/plugged/lightline.vim deleted from 709b2d8dc8
Submodule vim/.vim/plugged/nerdcommenter deleted from f02686f2f6
Submodule vim/.vim/plugged/nerdtree deleted from 14af89743a
Submodule vim/.vim/plugged/rainbow deleted from 4d15633cda
Submodule vim/.vim/plugged/vim-fugitive deleted from 7bcfe539be
-45
@@ -1,45 +0,0 @@
|
||||
let $MYPLUGDIRECTORY = "~/.vim/plugged"
|
||||
|
||||
call plug#begin($MYPLUGDIRECTORY)
|
||||
|
||||
Plug 'scrooloose/nerdtree'
|
||||
|
||||
Plug 'luochen1990/rainbow'
|
||||
|
||||
Plug 'itchyny/lightline.vim'
|
||||
|
||||
Plug 'preservim/nerdcommenter'
|
||||
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
call plug#end()
|
||||
|
||||
"line numbering
|
||||
set relativenumber
|
||||
set number
|
||||
|
||||
"cursor
|
||||
autocmd InsertEnter * set cul
|
||||
autocmd InsertLeave * set nocul
|
||||
|
||||
"lightline
|
||||
set laststatus=2
|
||||
|
||||
"NERDTree
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
"set UTF-8
|
||||
setglobal termencoding=utf-8 fileencodings=
|
||||
scriptencoding utf-8
|
||||
set encoding=utf-8
|
||||
|
||||
autocmd BufNewFile,BufRead * try
|
||||
autocmd BufNewFile,BufRead * set encoding=utf-8
|
||||
autocmd BufNewFile,BufRead * endtry
|
||||
|
||||
"convert to UNIX fileformat
|
||||
set fileformat=unix
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
#
|
||||
# ~/.zshrc
|
||||
#
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="/home/paul/.oh-my-zsh"
|
||||
|
||||
# set default text editor
|
||||
export EDITOR="nvim"
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# 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
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="robbyrussell"
|
||||
function powerline_precmd() {
|
||||
PS1="$(powerline-shell --shell zsh $?)"
|
||||
}
|
||||
|
||||
function install_powerline_precmd() {
|
||||
for s in "${precmd_functions[@]}"; do
|
||||
if [ "$s" = "powerline_precmd" ]; then
|
||||
return
|
||||
fi
|
||||
done
|
||||
precmd_functions+=(powerline_precmd)
|
||||
}
|
||||
|
||||
if [ "$TERM" != "linux" ]; then
|
||||
install_powerline_precmd
|
||||
fi
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
CASE_SENSITIVE="false"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
export UPDATE_ZSH_DAYS=3
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
git
|
||||
svn
|
||||
themes
|
||||
command-not-found
|
||||
vi-mode
|
||||
extract
|
||||
# non oh-my-zsh plugins
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# additional path variables
|
||||
export PATH=$PATH:~/.local/bin
|
||||
|
||||
### ALIAS' ###
|
||||
#jokes
|
||||
alias dog='cat'
|
||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #rickroll
|
||||
|
||||
#shutdown and reboot
|
||||
alias sn='shutdown now'
|
||||
alias rb='reboot'
|
||||
|
||||
# navigation
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias .3='cd ../../..'
|
||||
alias .4='cd ../../../..'
|
||||
alias .5='cd ../../../../..'
|
||||
|
||||
#libreoffice
|
||||
alias writer='libreoffice --writer'
|
||||
alias calc='libreoffice --calc'
|
||||
alias impress='libreoffice --impress'
|
||||
|
||||
# pacman and pikaur
|
||||
alias install='sudo pacman -S'
|
||||
alias uninstall='sudo pacman -Rns'
|
||||
alias search='sudo pacman -Ss'
|
||||
alias install-all='sudo pikaur'
|
||||
alias update='sudo pacman -Syyu' # update only standard pkgs
|
||||
alias update-all="pikaur -Syu" # update standard pkgs and AUR pkgs
|
||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa --icons -lF --color=always --group-directories-first --git' # my preferred listing
|
||||
alias la='exa --icons -aF --color=always --group-directories-first --git' # all files and dirs
|
||||
alias ll='exa --icons -alF --color=always --group-directories-first --git' # long format
|
||||
alias lt='exa --icons -aTF --color=always --group-directories-first --git' # tree listing
|
||||
alias lx='exa --icons -lF --color=always --group-directories-first --git --extended' # extended info
|
||||
alias l.='exa -a | egrep "^\."' # list dotfiles
|
||||
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# confirm before overwriting something
|
||||
alias cp="cp -i"
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
|
||||
# git
|
||||
alias add='git add'
|
||||
alias addup='git add -u'
|
||||
alias addall='git add .'
|
||||
alias branch='git branch'
|
||||
alias checkout='git checkout'
|
||||
alias co='git checkout'
|
||||
alias clone='git clone'
|
||||
alias commit='git commit -m'
|
||||
alias fetch='git fetch'
|
||||
alias pull='git pull origin'
|
||||
alias push='git push origin'
|
||||
alias status='git status'
|
||||
alias diff='git diff'
|
||||
alias remote='git remote'
|
||||
alias ftemplate='git fetch template'
|
||||
alias mtemplate='git merge template/master --allow-unrelated-histories'
|
||||
alias log='git log'
|
||||
|
||||
### AUTOSTART ###
|
||||
|
||||
#neofetch
|
||||
neofetch
|
||||
|
||||
Reference in New Issue
Block a user