Merge remote-tracking branch 'origin/laptop'

This commit is contained in:
paul-loedige
2022-01-12 21:50:30 +01:00
24 changed files with 389 additions and 3015 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
*__pycache__ *__pycache__
.vim/plugged/* .vim/plugged/*
neovim/.config/nvim/plugged neovim/.config/nvim/plugged
neovim/.config/nvim/spell/ neovim/.config/nvim/spell/
git/.git-credentials
Binary file not shown.

After

Width:  |  Height:  |  Size: 994 KiB

+97
View File
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html *{
font-size: xx-large;
color: #000;
font-family: 'Courier New', Courier, monospace !important;
}
body {
background-image: url(./background.jpg);
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
* {
box-sizing: border-box;
}
/* Create three equal columns that floats next to each other */
.column {
float: left;
width: 30.33%;
padding: 10px;
text-align: center;
border-radius: 10px;
margin: 1.5%;
background-color: #ffffffc0;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 900px) {
.column {
width: 100%;
}
}
#clock {
font-size: 120px;
text-align: center;
font-weight: bold;
}
</style>
</head>
<body>
<div id="clock">00:00</div>
<div class="row">
<div class="column">
<h2>KA-RaceIng</h2>
<a href="https://wiki.ka-raceing.de/">Wiki</a><br><br>
<a href="https://gitlab.ka-raceing.de/">Gitlab</a><br><br>
<a href="https://cloud.ka-raceing.de/">Cloud</a><br>
</div>
<div class="column">
<h2>KIT</h2>
<a href="https://ilias.studium.kit.edu">ILIAS</a><br><br>
<a href="https://campus.studium.kit.edu/events/timetable.php">Stundenplan</a><br>
</div>
<div class="column">
<h2>Loedige-Server</h2>
<a href="https://cloud.ploedige.com">Cloud</a><br><br>
<a href="https://git.ploedige.com">Git</a><br><br>
<a href="https://ploedige.com">Blog</a><br>
</div>
</div>
<script>
setInterval(showTime, 1000);
function showTime() {
let time = new Date();
let hour = time.getHours();
let min = time.getMinutes();
hour = hour < 10 ? "0" + hour : hour;
min = min < 10 ? "0" + min : min;
let currentTime = hour + ":"
+ min;
document.getElementById("clock")
.innerHTML = currentTime;
}
showTime();
</script>
</body>
</html>
-27
View File
@@ -1,27 +0,0 @@
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */
#tabbar { border: 0; overflow-y: scroll !important; margin-left: -12px !important; scrollbar-width: auto; }
/* Hide .twisty and adjust margins so favicons have 7px on left. */
tab-item .twisty {
visibility: hidden;
margin-left: -12px;
}
/* Push tab labels slightly to the right so they're completely hidden in collapsed state */
tab-item .label {
margin-left: 7px;
}
/* Hide close buttons on tabs. */
tab-item .closebox {
visibility: collapse;
}
tab-item:hover .closebox {
visibility: initial;
}
/* Hide sound playing/muted button. */
.sound-button::before {
display: none !important;
}
-45
View File
@@ -1,45 +0,0 @@
/* Hide main tabs toolbar */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
/* Sidebar min and max width removal */
#sidebar {
max-width: none !important;
min-width: 0px !important;
}
/* Hide splitter, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter {
display: none !important;
}
/* Hide sidebar header, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
visibility: collapse;
}
/* Shrink sidebar until hovered, when using Tree Style Tab. */
:root {
--thin-tab-width: 30px;
--wide-tab-width: 200px;
}
#sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
min-width: var(--wide-tab-width) !important;
max-width: none !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
position: relative !important;
transition: all 100ms !important;
min-width: var(--thin-tab-width) !important;
max-width: var(--thin-tab-width) !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
transition: all 200ms !important;
min-width: var(--wide-tab-width) !important;
max-width: var(--wide-tab-width) !important;
margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
z-index: 1;
}
-3
View File
@@ -1,3 +0,0 @@
https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de
https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com
https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de
@@ -0,0 +1,29 @@
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
#
# Snippet options:
#
# b - Beginning of line.
# i - In-word expansion.
# w - Word boundary.
# r - Regular expression
# e - Custom context snippet
# A - Snippet will be triggered automatically, when condition matches.
#
# Basic example:
#
# snippet emitter "emitter properties" b
# private readonly ${1} = new Emitter<$2>()
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
# endsnippet
#
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
snippet gqq "German quotation with babel"
"\`$1"'
endsnippet
+4 -2
View File
@@ -1,8 +1,10 @@
{ {
"git.removedSign.text": "✗",
"git.addedSign.hlGroup": "GitGutterAdd", "git.addedSign.hlGroup": "GitGutterAdd",
"git.changedSign.hlGroup": "GitGutterChange", "git.changedSign.hlGroup": "GitGutterChange",
"git.removedSign.hlGroup": "GitGutterDelete", "git.removedSign.hlGroup": "GitGutterDelete",
"git.topRemovedSign.hlGroup": "GitGutterDelete", "git.topRemovedSign.hlGroup": "GitGutterDelete",
"git.changeRemovedSign.hlGroup": "GitGutterChangeDelete" "git.changeRemovedSign.hlGroup": "GitGutterChangeDelete",
"snippets.extends":{
"latex":["tex","texmath"]
}
} }
-9
View File
@@ -15,15 +15,6 @@ set updatetime=300
" Don't pass messages to |ins-completion-menu|. " Don't pass messages to |ins-completion-menu|.
set shortmess+=c set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("nvim-0.5.0") || has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" Use tab for trigger completion with characters ahead and navigate. " Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config. " other plugin before putting this into your config.
+7
View File
@@ -0,0 +1,7 @@
" set german as default
setlocal spelllang=de
" folding
setlocal foldmethod=expr
setlocal foldexpr=vimtex#fold#level(v:lnum)
setlocal foldtext=vimtex#fold#text()
setlocal foldlevel=99
+84 -57
View File
@@ -2,15 +2,14 @@ let $MYPLUGDIRECTORY = "~/.config/nvim/plugged/"
let $MYNVIMINIT = "~/.config/nvim/init.vim" let $MYNVIMINIT = "~/.config/nvim/init.vim"
let $MYCOCVIM = "~/.config/nvim/coc.vim" let $MYCOCVIM = "~/.config/nvim/coc.vim"
"-------------------- " Plugins {{{ "
"plugins " automatic vim-plug install {{{ "
"--------------------
" autoinstall vim-plug if it is not installed
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) 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 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 \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYNVIMINIT autocmd VimEnter * PlugInstall | source $MYNVIMINIT
endif endif
" }}} automatic vim-plug install "
call plug#begin($MYPLUGDIRECTORY) call plug#begin($MYPLUGDIRECTORY)
" automatically install all plugins that are not already installed " automatically install all plugins that are not already installed
@@ -36,11 +35,21 @@ Plug 'lervag/vimtex' " vimtex
Plug 'morhetz/gruvbox' " gruvbox colorscheme Plug 'morhetz/gruvbox' " gruvbox colorscheme
Plug 'Yggdroot/indentLine' " ident guides Plug 'Yggdroot/indentLine' " ident guides
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'elkowar/yuck.vim', {'for': 'yuck'} " for yuck (eww) configuration
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
"Plug 'jghauser/mkdir.nvim' " automatic mkdir -p for new directories (e.g. for diary)
"Plug 'ray-x/lsp_signature.nvim' " display signature of a function
"Plug 'akinsho/toggleterm.nvim' " a terminal inside nvim that can be toggled
" fuzzy finders
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
" cheat sheet
Plug 'sudormrfbin/cheatsheet.nvim'
Plug 'nvim-lua/popup.nvim'
call plug#end() call plug#end()
" }}} Plugins "
"-------------------- " General Settings {{{ "
" general settings
"--------------------
let mapleader=" " " set mapleader to space let mapleader=" " " set mapleader to space
let maplocalleader=" " " set localleader to space let maplocalleader=" " " set localleader to space
set timeoutlen=1000 " set timeout length set timeoutlen=1000 " set timeout length
@@ -59,20 +68,30 @@ set wildmode=longest,list " get bash-like tab completions
filetype plugin indent on " allows auto-indenting depending on file type filetype plugin indent on " allows auto-indenting depending on file type
syntax on " syntax highlighting syntax on " syntax highlighting
set cc=80 " set an 80 column border for good coding style set cc=80 " set an 80 column border for good coding style
" folding
set foldmethod=marker
set foldtext=gitgutter#fold#foldtext()
"toggle cc when reasonable "toggle cc when reasonable
augroup cctoggle augroup cctoggle
autocmd! autocmd!
autocmd BufEnter,FocusGained * set cc=80 autocmd BufEnter,FocusGained * set cc=80
autocmd BufLeave,FocusLost * set cc=0 autocmd BufLeave,FocusLost * set cc=0
augroup END augroup END
"toggle relativenumber when reasonable
set number relativenumber
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
" sign column
set signcolumn=yes
" }}} General Settings "
"-------------------- " Mappings {{{ "
"mappings
"--------------------
"disable colorizer mappings "disable colorizer mappings
let g:colorizer_nomap = 1 let g:colorizer_nomap = 1
" copy paste to and fro clipboard {{{ "
" enable copy and past to and fro clipboard
vnoremap <leader>y "+y vnoremap <leader>y "+y
nnoremap <leader>Y "+yg_ nnoremap <leader>Y "+yg_
nnoremap <leader>y "+y nnoremap <leader>y "+y
@@ -80,7 +99,9 @@ nnoremap <leader>p "+p
nnoremap <leader>P "+P nnoremap <leader>P "+P
vnoremap <leader>p "+p vnoremap <leader>p "+p
vnoremap <leader>P "+P vnoremap <leader>P "+P
"custom window commands " }}} copy paste to and fro clipboard "
" custom window commands {{{ "
nnoremap <leader>wv <C-W>v nnoremap <leader>wv <C-W>v
nnoremap <leader>ws <C-W>s nnoremap <leader>ws <C-W>s
nnoremap <leader>wc <C-W>c nnoremap <leader>wc <C-W>c
@@ -91,6 +112,15 @@ nnoremap <C-j> <C-W>j
nnoremap <C-k> <C-W>k nnoremap <C-k> <C-W>k
nnoremap öw :w<CR> nnoremap öw :w<CR>
nnoremap öq :q<CR> nnoremap öq :q<CR>
" }}} custom window commands "
" Telescope {{{ "
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" }}} Telescope "
"custom tab commands "custom tab commands
nnoremap <leader>tn :tabnew<space> nnoremap <leader>tn :tabnew<space>
nnoremap <leader>tc :tabclose<CR> nnoremap <leader>tc :tabclose<CR>
@@ -105,43 +135,28 @@ nnoremap <leader>nt :NERDTreeToggle<CR>
nnoremap <leader>f :NERDTreeFind<CR> nnoremap <leader>f :NERDTreeFind<CR>
"symbol renaming "symbol renaming
nnoremap <leader>rn <Plug>(coc-reame) nnoremap <leader>rn <Plug>(coc-reame)
" }}} Mappings "
"-------------------- " CoC (Conquer of Completion) {{{ "
" coc (Conquer of Completion)
"--------------------
" coc plugins (will automatically install) " coc plugins (will automatically install)
let g:coc_global_extensions = ['coc-snippets', 'coc-git', 'coc-vimtex', 'coc-python', 'coc-vimlsp', 'coc-json'] let g:coc_global_extensions = [
\'coc-texlab',
\'coc-snippets',
\'coc-git',
\'coc-vimtex',
\'coc-python',
\'coc-vimlsp',
\'coc-json']
source $MYCOCVIM source $MYCOCVIM
"" use <tab> for trigger completion and navigate to the next complete item " }}} CoC (Conquer of Completion) "
"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. " Airline {{{ "
"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 set laststatus=2 " start in 'normal' mode
let g:airline#extensions#tabline#enabled = 1 " enable tabline for buffers let g:airline#extensions#tabline#enabled = 1 " enable tabline for buffers
let g:airline#extensions#tabline#formatter = 'unique_tail' " set tabline item style let g:airline#extensions#tabline#formatter = 'unique_tail' " set tabline item style
" }}} Airline "
"-------------------- " NERDTree {{{ "
"NERDTree
"--------------------
set modifiable set modifiable
let NERDTreeShowHidden=1 " show hidden files in NERDTree let NERDTreeShowHidden=1 " show hidden files in NERDTree
let NERDTreeAutoDeleteBuffer=1 " automatically delete the buffer of the file deleted with NERDTree let NERDTreeAutoDeleteBuffer=1 " automatically delete the buffer of the file deleted with NERDTree
@@ -157,11 +172,9 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree. " 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 | 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 \ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" }}} NERDTree "
" Color Scheme {{{ "
"--------------------
"colors
"--------------------
" set colorscheme " set colorscheme
let g:gruvbox_contrast_dark='hard' let g:gruvbox_contrast_dark='hard'
colorscheme gruvbox colorscheme gruvbox
@@ -174,18 +187,32 @@ highlight GitGutterChange ctermfg=208
highlight GitGutterDelete ctermfg=124 highlight GitGutterDelete ctermfg=124
highlight LineNr ctermfg=7 highlight LineNr ctermfg=7
highlight CursorLineNr ctermfg=7 highlight CursorLineNr ctermfg=7
" }}} Color Scheme "
"toggle relativenumber when reasonable " Tree-Sitter {{{ "
set number relativenumber lua <<EOF
augroup numbertoggle require'nvim-treesitter.configs'.setup {
autocmd! -- One of "all", "maintained" (parsers with maintainers), or a list of languages
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber ensure_installed = "maintained",
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
"-------------------- -- Install languages synchronously (only applied to `ensure_installed`)
"vimtex sync_install = false,
"--------------------
highlight = {
-- `false` will disable the whole extension
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
}
EOF
" }}} Tree-Sitter "
" VimTeX {{{ "
let g:vimtex_compiler_progname = 'nvr' " neovim-remote for vimtex let g:vimtex_compiler_progname = 'nvr' " neovim-remote for vimtex
let g:vimtex_view_method = 'zathura' " set zathura as basic pdf viewer let g:vimtex_view_method = 'zathura' " set zathura as basic pdf viewer
"open TOC "open TOC
@@ -201,4 +228,4 @@ let g:vimtex_compiler_latexmk = {
\ '-interaction=nonstopmode', \ '-interaction=nonstopmode',
\ ], \ ],
\} \}
" }}} VimTeX "
-1
View File
@@ -23,7 +23,6 @@ bdf-unifont
biber biber
binutils binutils
bison bison
bitwarden-bin
bitwarden-rofi bitwarden-rofi
borg borg
capitaine-cursors capitaine-cursors
+1
View File
@@ -1,6 +1,7 @@
import subprocess import subprocess
import psutil import psutil
import re import re
import os
from libqtile import widget, bar from libqtile import widget, bar
+44 -17
View File
@@ -1,4 +1,5 @@
from libqtile.config import Group, ScratchPad, DropDown, Key from typing import Match
from libqtile.config import Group, ScratchPad, DropDown, Key, Match
from libqtile.command import lazy from libqtile.command import lazy
from defines import term from defines import term
@@ -6,16 +7,17 @@ from Keys import keys
group_names = [("","Home", 'h',{'layout': 'monadtall'}), group_names = [("","Home", 'h',{'layout': 'monadtall'}),
("","Browser", 'f',{'layout': 'monadtall'}), ("","Browser", 'f',{'layout': 'monadtall'}),
("","Mail", 'm',{'layout': 'monadtall'}), ("","Mail", 'm',{'layout': 'monadtall', 'matches':[Match(wm_class="Mail")]}),
("","Coding", 'c',{'layout': 'monadtall'}), ("","Coding", 'c',{'layout': 'monadtall', 'matches' : [Match(wm_class="code")]}),
("","Documents", 'l',{'layout': 'monadtall'}), ("","Documents", 'l',{'layout': 'monadtall'}),
("","Tor Browser", 't',{'layout': 'monadtall'}), ("","Music", 'u',{'layout': 'monadtall', 'matches' : [Match(wm_class="spotify")]}),
("","Music", 's',{'layout': 'monadtall'}), ("","Video", 'v',{'layout': 'monadtall', 'matches' : [Match(wm_class="vlc")]}),
("","Video", 'v',{'layout': 'monadtall'}), ("","Discord", 'd',{'layout': 'monadtall', 'matches':[Match(wm_class="discord")]}),
("","Discord", 'd',{'layout': 'monadtall'}), ("","ClickUp", 'k',{'layout': 'monadtall', 'matches' : [Match(wm_class="clickup")]}),
("1","etc1", '1', {'layout': 'monadtall'}), ("","etc1", '1', {'layout': 'monadtall'}),
("2","etc2", '2', {'layout': 'monadtall'}), ("","etc2", '2', {'layout': 'monadtall'}),
("3","etc3", '3', {'layout': 'monadtall'})] ("","etc3", '3', {'layout': 'monadtall'}),
("","etc4", '4', {'layout': 'monadtall'})]
groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names] groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
@@ -42,13 +44,14 @@ groups.append(
'bitwarden', 'bitwarden',
'bitwarden-desktop', 'bitwarden-desktop',
on_focus_lost_hide=False, on_focus_lost_hide=False,
match = Match(wm_class='bitwarden')
), ),
DropDown( DropDown(
'WhatsApp', 'WhatsApp',
'whatsapp-for-linux', 'whatsapp-nativefier',
height = 0.5, height = 0.5,
width = 0.5, width = 0.8,
x = .25, x = .1,
on_focus_lost_hide=False, on_focus_lost_hide=False,
opacity=1 opacity=1
), ),
@@ -56,10 +59,11 @@ groups.append(
'Signal', 'Signal',
'signal-desktop', 'signal-desktop',
height = 0.5, height = 0.5,
width = 0.5, width = 0.8,
x = .25, x = .1,
on_focus_lost_hide=False, on_focus_lost_hide=False,
opacity = 1 opacity = 1,
match = Match(wm_class='signal')
), ),
DropDown( DropDown(
'Qalculate!', 'Qalculate!',
@@ -70,12 +74,31 @@ groups.append(
on_focus_lost_hide=True, on_focus_lost_hide=True,
opacity = 1 opacity = 1
), ),
DropDown(
'Slack',
'slack',
height = 0.5,
width = 0.8,
x = 0.1,
on_focus_lost_hide=False,
opacity=1
),
DropDown(
'Telegram',
'telegram-desktop',
height = 0.5,
width = 0.8,
x = 0.1,
on_focus_lost_hide=False,
opacity=1,
match = Match(wm_class='telegram-desktop')
)
]) ])
) )
for (icon,name,key, kwargs) in group_names: for (icon,name,key, kwargs) in group_names:
keys.extend([ keys.extend([
Key(["mod1","control"], str(key), lazy.group[icon].toscreen(), Key(["mod1","control"], str(key), lazy.group[icon].toscreen(toggle=True),
desc="Switch to group {}".format(name)), desc="Switch to group {}".format(name)),
Key(['mod1','control', "shift"], str(key), lazy.window.togroup(icon), Key(['mod1','control', "shift"], str(key), lazy.window.togroup(icon),
@@ -97,6 +120,10 @@ keys.extend([
desc="open the dropdown for WhatsApp"), desc="open the dropdown for WhatsApp"),
Key(['mod1','control'],'i',lazy.group['scratchpad'].dropdown_toggle('Signal'), Key(['mod1','control'],'i',lazy.group['scratchpad'].dropdown_toggle('Signal'),
desc="open the dropdown for 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'],'t',lazy.group['scratchpad'].dropdown_toggle('Telegram'),
desc="open the dropdown for Telegram"),
Key(['mod1','control'],'q',lazy.group['scratchpad'].dropdown_toggle('Qalculate!'), Key(['mod1','control'],'q',lazy.group['scratchpad'].dropdown_toggle('Qalculate!'),
desc="open the dropdown for Qalculate!"), desc="open the dropdown for Qalculate!"),
]) ])
+9 -4
View File
@@ -5,6 +5,7 @@ from defines import mod, term
keys = [ keys = [
#screen lock #screen lock
Key([mod], "End" , lazy.spawn('dm-tool lock'),desc="locks session"),
Key([], "Pause" , lazy.spawn('dm-tool lock'),desc="locks session"), Key([], "Pause" , lazy.spawn('dm-tool lock'),desc="locks session"),
#moving focus aroung #moving focus aroung
@@ -54,17 +55,21 @@ keys = [
Key([mod],'p',lazy.spawn("bwmenu --auto-lock -1"),desc="launch bwmenu"), Key([mod],'p',lazy.spawn("bwmenu --auto-lock -1"),desc="launch bwmenu"),
# audio hotkeys # audio hotkeys
Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1'), desc="increase speaker volume"), Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 5'), desc="increase speaker volume"),
Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1'), desc="decrease speaker volume"), Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 5'), desc="decrease speaker volume"),
Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute'), desc="toggle speaker mute"), Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute'), desc="toggle speaker mute"),
Key(['control'], 'XF86AudioRaiseVolume', lazy.spawn('amixer set Capture 1%+'), desc="increase mic volume"), Key(['control'], 'XF86AudioRaiseVolume', lazy.spawn('amixer set Capture 5%+'), desc="increase mic volume"),
Key(['control'], 'XF86AudioLowerVolume', lazy.spawn('amixer set Capture 1%-'), desc="decrease mic volume"), Key(['control'], 'XF86AudioLowerVolume', lazy.spawn('amixer set Capture 5%-'), desc="decrease mic volume"),
Key(['control'], 'XF86AudioMute', lazy.spawn('amixer set Capture toggle'), desc="toggle mic mute"), Key(['control'], 'XF86AudioMute', lazy.spawn('amixer set Capture toggle'), desc="toggle mic mute"),
Key([], 'XF86AudioMicMute', lazy.spawn('amixer set Capture toggle'), desc="toggle mic mute"),
# Media hotkeys # Media hotkeys
Key([], 'XF86AudioNext', lazy.spawn('playerctl next')), Key([], 'XF86AudioNext', lazy.spawn('playerctl next')),
Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')), Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')),
Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')), Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')),
Key([mod], 'Right', lazy.spawn('playerctl next')),
Key([mod], 'Left', lazy.spawn('playerctl previous')),
Key([mod], 'Down', lazy.spawn('playerctl play-pause')),
# backlight keys # backlight keys
Key([], 'XF86MonBrightnessUp', lazy.spawn('xbacklight -inc 5')), Key([], 'XF86MonBrightnessUp', lazy.spawn('xbacklight -inc 5')),
+1
View File
@@ -45,4 +45,5 @@ floating_layout = layout.Floating(
Match(wm_class='ssh-askpass'), # ssh-askpass Match(wm_class='ssh-askpass'), # ssh-askpass
Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab
Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab
Match(wm_class='Nitrogen'),
]) ])
+2 -4
View File
@@ -60,9 +60,7 @@ def Left_widgets(size,fontsize,prompt=False):
urgent_alert_method='block', urgent_alert_method='block',
urgent_border = red_color, urgent_border = red_color,
), ),
widget.Spacer(),
widget.WindowName(fontsize=fontsize-2), widget.WindowName(fontsize=fontsize-2),
widget.Spacer(),
] ]
#endregion #endregion
@@ -207,7 +205,7 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
background=orange_color, background=orange_color,
fontsize=fontsize, fontsize=fontsize,
update_interval=1, update_interval=1,
format=" {percent:2.0%}", format="{char} {percent:2.0%}",
low_percentage=0.2, low_percentage=0.2,
notify_below=True, notify_below=True,
low_foreground=red_color, low_foreground=red_color,
@@ -237,7 +235,7 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
foreground=light_foreground_color, foreground=light_foreground_color,
background=yellow_color, background=yellow_color,
fontsize=fontsize, fontsize=fontsize,
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)", format=" {MemUsed}GB|{SwapUsed}GB",
mouse_callbacks = launch_htop, mouse_callbacks = launch_htop,
), ),
*powerline_arrow('l',yellow_color,last_color,size), *powerline_arrow('l',yellow_color,last_color,size),
+5
View File
@@ -11,3 +11,8 @@ numlockx &
redshift-gtk -t 6500:3600 & redshift-gtk -t 6500:3600 &
udiskie -t & udiskie -t &
picom -b --experimental-backend & picom -b --experimental-backend &
cbatticon &
nm-applet &
blueman-applet &
thunderbird &
clickup &
+1 -2
View File
@@ -2,5 +2,4 @@
import os import os
import subprocess import subprocess
home = os.path.expanduser('~/.config/qtile/autostart.sh') subprocess.call([os.path.expanduser('~/.config/qtile/mic_led.sh'), "0"])
subprocess.call([home])
+99
View File
@@ -0,0 +1,99 @@
# Don't ask for confirmations
assume_yes = false
# Disable specific steps - same options as the command line flag
disable = ["gitrepos"]
# Ignore failures for these steps
#ignore_failures = ["powershell"]
# Run specific steps - same options as the command line flag
#only = ["system", "emacs"]
# Do not ask to retry failed steps (default: false)
#no_retry = true
# Run inside tmux
#run_in_tmux = true
# List of remote machines with Topgrade installed on them
#remote_topgrades = ["toothless", "pi", "parnas"]
# Arguments to pass SSH when upgrading remote systems
#ssh_arguments = "-o ConnectTimeout=2"
# Path to Topgrade executable on remote machines
#remote_topgrade_path = ".cargo/bin/topgrade"
# Arguments to pass tmux when pulling Repositories
#tmux_arguments = "-S /var/tmux.sock"
# Do not set the terminal title
#set_title = false
# Cleanup temporary or old files
#cleanup = true
[git]
#max_concurrency = 5
# Additional git repositories to pull
#repos = [
# "~/src/*/",
# "~/.config/something"
#]
# Don't pull the predefined git repos
#predefined_repos = false
# Arguments to pass Git when pulling Repositories
#arguments = "--rebase --autostash"
[composer]
#self_update = true
# Commands to run before anything
[pre_commands]
#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
# Custom commands
[commands]
#"Python Environment" = "~/dev/.env/bin/pip install -i https://pypi.python.org/simple -U --upgrade-strategy eager jupyter"
[brew]
#greedy_cask = true
[linux]
# Arch Package Manager to use. Allowed values: autodetect, trizen, paru, yay, pacman.
arch_package_manager = "yay"
# Arguments to pass yay (or paru) when updating packages
#yay_arguments = "--nodevel"
#show_arch_news = true
#trizen_arguments = "--devel"
enable_tlmgr = true
#emerge_sync_flags = "-q"
#emerge_update_flags = "-uDNa --with-bdeps=y world"
#redhat_distro_sync = false
#rpm_ostree = false
[windows]
# Manually select Windows updates
#accept_all_updates = false
#open_remotes_in_new_terminal = true
# Causes Topgrade to rename itself during the run to allow package managers
# to upgrade it. Use this only if you installed Topgrade by using a package
# manager such as Scoop to Cargo
#self_rename = true
[npm]
# Use sudo if the NPM directory isn't owned by the current user
#use_sudo = true
[firmware]
# Offer to update firmware; if false just check for and display available updates
upgrade = true
[flatpak]
# Use sudo for updating the system-wide installation
#use_sudo = true
-3
View File
@@ -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
-52
View File
@@ -1,52 +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()
"remap leader
let mapleader=","
set timeout timeoutlen=1500
"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
"NERDCommenter
filetype plugin on
"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
+4
View File
@@ -5,6 +5,9 @@
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/paul/.oh-my-zsh" 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 # 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, # 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
@@ -82,6 +85,7 @@ alias ...='cd ../..'
alias .3='cd ../../..' alias .3='cd ../../..'
alias .4='cd ../../../..' alias .4='cd ../../../..'
alias .5='cd ../../../../..' alias .5='cd ../../../../..'
alias dotfiles='cd ~/.dotfiles'
#libreoffice #libreoffice
alias writer='libreoffice --writer' alias writer='libreoffice --writer'