Browse Source

Added dots for bird

main
Yigit Colakoglu 2 years ago
parent
commit
bfd0799ab3
74 changed files with 640 additions and 4813 deletions
  1. +1
    -0
      .config/calcurse/keys
  2. +0
    -4
      .config/coc/extensions/.snyk
  3. +10
    -10
      .config/coc/extensions/package.json
  4. +0
    -4062
      .config/coc/extensions/yarn.lock
  5. +5
    -3
      .config/dunst/dunstrc
  6. +1
    -0
      .config/gdb/pwninit
  7. +32
    -10
      .config/htop/htoprc
  8. +1
    -1
      .config/isync/mbsyncrc
  9. +5
    -3
      .config/mimeapps.list
  10. +1
    -0
      .config/mutt/mailcap
  11. +0
    -0
      .config/nvim/autoload/plug.vim
  12. +0
    -25
      .config/nvim/coc-settings.json
  13. +0
    -6
      .config/nvim/colors/material.vim
  14. +16
    -0
      .config/nvim/init.lua
  15. +0
    -1
      .config/nvim/plugin/YCM.vim
  16. +0
    -138
      .config/nvim/plugin/coc.vim
  17. +0
    -10
      .config/nvim/plugin/ctrlp.vim
  18. +3
    -0
      .config/nvim/plugin/lightline-bufferline.vim
  19. +6
    -6
      .config/nvim/plugin/lightline.vim
  20. +0
    -9
      .config/nvim/plugin/nerdcommenter.vim
  21. +0
    -4
      .config/nvim/plugin/nerdtree.vim
  22. +0
    -59
      .config/nvim/plugin/plugins.vim
  23. +0
    -3
      .config/nvim/plugin/vim-ripgrep.vim
  24. +0
    -7
      .config/nvim/plugin/vim-test.vim
  25. +0
    -9
      .config/nvim/plugin/vimux.vim
  26. +89
    -0
      .config/nvim/plugins.vim
  27. +182
    -0
      .config/nvim/syntax/java.vim
  28. +0
    -0
      .config/nvim/templates/skeleton.c
  29. +0
    -0
      .config/nvim/templates/skeleton.cpp
  30. +0
    -0
      .config/nvim/templates/skeleton.h
  31. +0
    -0
      .config/nvim/templates/skeleton.hpp
  32. +0
    -0
      .config/nvim/templates/skeleton.html
  33. +0
    -0
      .config/nvim/templates/skeleton.java
  34. +0
    -0
      .config/nvim/templates/skeleton.py
  35. +0
    -0
      .config/nvim/templates/skeleton.s
  36. +0
    -0
      .config/nvim/templates/skeleton.sh
  37. +0
    -0
      .config/nvim/templates/skeleton.tex
  38. +0
    -240
      .config/vim/vimrc
  39. +6
    -0
      .config/zsh/aliases
  40. +5
    -0
      .config/zsh/cmds
  41. +1
    -1
      .local/bin/compiler
  42. +50
    -19
      .local/bin/dmenu-books
  43. +35
    -0
      .local/bin/dmenu-hamster
  44. +8
    -4
      .local/bin/dmenu-refresh
  45. +22
    -0
      .local/bin/dmenu-sessions
  46. +23
    -0
      .local/bin/dmenu-timer
  47. +39
    -0
      .local/bin/dmenu-toolkit
  48. +0
    -73
      .local/bin/dmenu-wallabag
  49. +1
    -37
      .local/bin/dmenu-web
  50. +8
    -1
      .local/bin/lf-ueberzug
  51. +3
    -3
      .local/bin/pacontrol.sh
  52. +10
    -0
      .local/bin/status-bar/hamster
  53. +5
    -18
      .local/bin/status-bar/network
  54. +30
    -0
      .local/bin/status-bar/timer
  55. +2
    -2
      .local/bin/status-bar/todo
  56. +1
    -1
      .local/bin/ytfzf_dmenu
  57. +1
    -0
      .local/share/bookmarks
  58. +5
    -4
      .local/share/dwm/autostart.sh
  59. +2
    -1
      .local/share/gnupg/gpg-agent.conf
  60. +3
    -3
      .local/share/startpage/src/index.pug
  61. +2
    -1
      .local/src/dmenu/config.h
  62. +7
    -31
      .local/src/dwm/keybinds.h
  63. +6
    -0
      .local/src/dwm/rules.h
  64. +2
    -0
      .local/src/dwmblocks/config.h
  65. BIN
      .local/src/slock/explicit_bzero.o
  66. BIN
      .local/src/slock/slock
  67. BIN
      .local/src/slock/slock.o
  68. +2
    -1
      .local/src/st/config.h
  69. BIN
      .local/src/st/st
  70. BIN
      .local/src/st/st.o
  71. BIN
      .local/src/st/x.o
  72. BIN
      .local/src/sxiv/sxiv
  73. BIN
      .local/src/xbanish/xbanish
  74. +9
    -3
      .profile

+ 1
- 0
.config/calcurse/keys View File

@ -16,6 +16,7 @@ generic-reload R
generic-copy c
generic-paste p ^V
generic-change-view TAB
generic-prev-view KEY_BTAB
generic-import i I
generic-export x X
generic-goto g G


+ 0
- 4
.config/coc/extensions/.snyk View File

@ -1,4 +0,0 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.19.0
ignore: {}
patch: {}

+ 10
- 10
.config/coc/extensions/package.json View File

@ -1,15 +1,15 @@
{
"dependencies": {
"coc-css": ">=1.2.6",
"coc-html": ">=1.4.1",
"coc-java": ">=1.5.3",
"coc-jedi": ">=0.25.2",
"coc-json": ">=1.3.4",
"coc-markdownlint": ">=1.11.1",
"coc-prettier": ">=1.1.23",
"coc-css": ">=1.3.0",
"coc-html": ">=1.6.1",
"coc-java": ">=1.5.5",
"coc-java-lombok": ">=1.0.0",
"coc-jedi": ">=0.30.1",
"coc-json": ">=1.4.1",
"coc-markdownlint": ">=1.12.4",
"coc-prettier": ">=9.2.2",
"coc-tailwindcss": ">=0.7.0",
"coc-tsserver": ">=1.6.8",
"coc-vetur": ">=1.2.4",
"coc-vimtex": ">=1.0.4"
"coc-tsserver": ">=1.9.13",
"coc-vimtex": ">=1.1.1"
}
}

+ 0
- 4062
.config/coc/extensions/yarn.lock
File diff suppressed because it is too large
View File


+ 5
- 3
.config/dunst/dunstrc View File

@ -18,7 +18,9 @@
word_wrap = yes
ignore_newline = no
geometry = "500x8-8+50"
width=(0,350)
height=100
notification_limit=8
indicate_hidden = yes
shrink = yes
@ -34,8 +36,8 @@
padding = 8
horizontal_padding = 10
separator_color = auto
startup_notification = false
dmenu = /usr/local/bin/dmenu -p dmenu:
startup_notification = true
dmenu = /usr/local/bin/dmenu -p context:
browser = /bin/firefox
icon_position = left
#icon_path = /home/yigit/.icons/Tela-dark/16/actions:/home/yigit/.icons/Tela-dark/16/apps:/home/yigit/.icons/Tela-dark/16/devices:/home/yigit/.icons/Tela-dark/16/mimetypes:/home/yigit/.icons/Tela-dark/16/panel:/home/yigit/.icons/Tela-dark/16/places:/home/yigit/.icons/Tela-dark/16/status


+ 1
- 0
.config/gdb/pwninit View File

@ -1,3 +1,4 @@
set disassembly-flavor intel
source /usr/share/pwndbg/gdbinit.py
source /home/yigit/.local/share/splitmind/gdbinit.py
python


+ 32
- 10
.config/htop/htoprc View File

@ -1,16 +1,15 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.2.0
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
tree_sort_key=0
tree_sort_direction=1
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_deleted_exe=1
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
@ -18,9 +17,8 @@ highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
tree_view=0
tree_view_always_by_pid=0
header_margin=1
screen_tabs=0
detailed_cpu_time=0
cpu_count_from_one=1
show_cpu_usage=1
@ -32,8 +30,32 @@ account_guest_in_cpu_meter=0
color_scheme=0
enable_mouse=1
delay=15
left_meters=LeftCPUs2 CPU Battery Blank Blank Blank Memory NetworkIO DiskIO
left_meter_modes=1 1 1 2 2 2 3 4 4
right_meters=RightCPUs2 Memory Swap Blank Blank Blank LoadAverage Uptime Tasks
right_meter_modes=1 1 1 2 2 2 3 4 4
hide_function_bar=0
header_layout=two_50_50
column_meters_0=LeftCPUs2 CPU Battery Blank Blank Blank Memory NetworkIO DiskIO
column_meter_modes_0=1 1 1 2 2 2 3 4 4
column_meters_1=RightCPUs2 Memory Swap Blank Blank Blank LoadAverage Uptime Tasks
column_meter_modes_1=1 1 1 2 2 2 3 4 4
tree_view=0
sort_key=46
tree_sort_key=0
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_CPU
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0

+ 1
- 1
.config/isync/mbsyncrc View File

@ -79,7 +79,7 @@ IMAPStore Y.Colakoglu@student.tudelft.nl-remote
Host imap.tudelft.nl
Port 993
User ycolakoglu@tudelft.net
PassCmd "pass University/password.tudelft.nl/ycolakoglu"
PassCmd "pass University/login.tudelft.nl/ycolakoglu"
AuthMechs LOGIN
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt


+ 5
- 3
.config/mimeapps.list View File

@ -1,8 +1,8 @@
[Default Applications]
x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
x-scheme-handler/mailspring=mailspring.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/http=chromium.desktop
x-scheme-handler/https=chromium.desktop
image/png=sxiv.desktop
image/jpeg=sxiv.desktop
text/plain=vim.desktop
@ -11,7 +11,7 @@ x-scheme-handler/gitkraken=GitKraken.desktop
x-scheme-handler/ssh=ktelnetservice5.desktop
video/mp4=mpv.desktop
video/x-matroska=mpv.desktop
text/html=firefox.desktop
text/html=chromium.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
application/x-shellscript=vim.desktop
inode/directory=lf.desktop
@ -26,6 +26,8 @@ message/rfc822=userapp-neomutt.desktop
application/x-directory=lf.desktop
x-scheme-handler/discord-474605546457137157=discord-474605546457137157.desktop
x-scheme-handler/msteams=teams.desktop
x-scheme-handler/discord-402572971681644545=discord-402572971681644545.desktop
x-scheme-handler/discord-378347429537251328=discord-378347429537251328.desktop
[Added Associations]
application/rtf=libreoffice-writer.desktop;nvim.desktop;


+ 1
- 0
.config/mutt/mailcap View File

@ -1,5 +1,6 @@
text/plain; $EDITOR %s ;
text/html; openfile %s ; nametemplate=%s.html
#text/html; html2text --ignore-images --unicode-snob --reference-links --pad-tables %s; nametemplate=%s.html; copiousoutput;
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
#text/html; firefox-developer-edition %s;
image/*; openfile %s ;


.local/share/vim/autoload/plug.vim → .config/nvim/autoload/plug.vim View File


+ 0
- 25
.config/nvim/coc-settings.json View File

@ -1,25 +0,0 @@
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": [
"c",
"cpp",
"objc",
"objcpp"
],
"rootPatterns": [
".ccls",
"compile_commands.json",
".vim/",
".git/",
".hg/"
],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
}
}

.config/vim/colors/material.vim → .config/nvim/colors/material.vim View File


+ 16
- 0
.config/nvim/init.lua View File

@ -0,0 +1,16 @@
-- Source the plug.vim plugin
vim.cmd('source ~/.config/nvim/colors/material.vim')
vim.cmd('source ~/.vimrc')
-- Load plugins
require('plugin.init')
-- Initialize Keybinds
require('config.init')
-- Initialize LSP
require('lsp.init')
-- Initialize Keybinds
require('keybinds.init')

+ 0
- 1
.config/nvim/plugin/YCM.vim View File

@ -1 +0,0 @@
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>

+ 0
- 138
.config/nvim/plugin/coc.vim View File

@ -1,138 +0,0 @@
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <c-space> to trigger completion.
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" Use `[g` and `]g` to navigate diagnostics
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
" Coc Prettier
vmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
" Formatting selected code.
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
" Applying codeAction to the selected region.
" Example: `<leader>aap` for current paragraph
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
" Remap keys for applying codeAction to the current buffer.
nmap <leader>ac <Plug>(coc-codeaction)
" Apply AutoFix to problem on the current line.
nmap <leader>qf <Plug>(coc-fix-current)
" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if <Plug>(coc-funcobj-i)
omap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap af <Plug>(coc-funcobj-a)
xmap ic <Plug>(coc-classobj-i)
omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Use CTRL-S for selections ranges.
" Requires 'textDocument/selectionRange' support of language server.
nmap <silent> <C-s> <Plug>(coc-range-select)
xmap <silent> <C-s> <Plug>(coc-range-select)
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.
nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list.
nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>

+ 0
- 10
.config/nvim/plugin/ctrlp.vim View File

@ -1,10 +0,0 @@
" Use ripgrep if available
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': [],
\ 'AcceptSelection("t")': ['<cr>'],
\ }
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 1
endif

+ 3
- 0
.config/nvim/plugin/lightline-bufferline.vim View File

@ -7,6 +7,7 @@ let g:lightline#bufferline#unnamed = '[No Name]'
let g:lightline#bufferline#enable_nerdfont = 1
let g:lightline#bufferline#modified = ' *'
let g:lightline#bufferline#read_only = ' '
let g:lightline#bufferline#enable_devicons = 1
" Movement bindings
nmap <Leader>1 <Plug>lightline#bufferline#go(1)
@ -31,3 +32,5 @@ nmap <Leader>c7 <Plug>lightline#bufferline#delete(7)
nmap <Leader>c8 <Plug>lightline#bufferline#delete(8)
nmap <Leader>c9 <Plug>lightline#bufferline#delete(9)
nmap <Leader>c0 <Plug>lightline#bufferline#delete(10)

+ 6
- 6
.config/nvim/plugin/lightline.vim View File

@ -1,15 +1,13 @@
let g:lightline = {
\ 'colorscheme': 'material_vim',
\ 'active': {
\ 'right': [ [ 'lineinfo' ], [ 'percent', 'wordcount' ], [ 'fileformat', 'fileencoding', 'filetype' ] ],
\ 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'filename', 'modified' ] ],
\ },
\ 'component_function': {
\ 'wordcount': 'WordCount',
\ 'right': [ [ 'lineinfo' ], [ 'percent' ], [ 'fileformat', 'fileencoding', 'filetype' ] ],
\ 'left': [ [ 'mode', 'paste' ], [ 'lsp_status' ], [ 'readonly', 'filename' ], [ 'lsp_info', 'lsp_hints', 'lsp_errors', 'lsp_warnings', 'lsp_ok' ] ],
\ },
\ 'component_function': { },
\ 'tabline': {
\ 'left': [ ['buffers'] ],
\ 'right': [ ['close'] ],
\ 'right': [ ],
\ },
\ 'component_expand': {
\ 'buffers': 'lightline#bufferline#buffers',
@ -51,3 +49,5 @@ function! WordCount()
endfunction
let g:lightline#trailing_whitespace#indicator = ''
call lightline#lsp#register()

+ 0
- 9
.config/nvim/plugin/nerdcommenter.vim View File

@ -1,9 +0,0 @@
let g:NERDCreateDefaultMappings = 1
let g:NERDSpaceDelims = 1
let g:NERDCompactSexyComs = 1
let g:NERDDefaultAlign = 'left'
let g:NERDAltDelims_java = 1
let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
let g:NERDCommentEmptyLines = 1
let g:NERDTrimTrailingWhitespace = 1
let g:NERDToggleCheckAllLines = 1

+ 0
- 4
.config/nvim/plugin/nerdtree.vim View File

@ -1,4 +0,0 @@
" Toggle nerdtree with F10
map <F10> :NERDTreeToggle<CR>
" Current file in nerdtree
map <F9> :NERDTreeFind<CR>

+ 0
- 59
.config/nvim/plugin/plugins.vim View File

@ -1,59 +0,0 @@
call plug#begin('~/.local/share/vim/plugged')
" Look & Feel
Plug 'kaicataldo/material.vim'
Plug 'itchyny/lightline.vim'
Plug 'mengelbrecht/lightline-bufferline'
Plug 'lambdalisue/nerdfont.vim'
" Addons
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-surround'
Plug 'jremmen/vim-ripgrep'
Plug 'blarghmatey/split-expander'
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/goyo.vim'
Plug 'vim-scripts/indentpython.vim'
Plug 'preservim/nerdcommenter'
Plug 'mileszs/ack.vim'
Plug 'yegappan/taglist'
"Plug 'puremourning/vimspector'
Plug 'lervag/vimtex'
Plug 'gu-fan/riv.vim'
Plug 'isene/hyperlist.vim'
Plug 'neomutt/neomutt.vim'
Plug 'VebbNix/lf-vim'
" Tmux integration
Plug 'benmills/vimux'
Plug 'christoomey/vim-tmux-navigator'
" Neuron
Plug 'oberblastmeister/neuron.nvim', { 'branch' : 'unstable' }
Plug 'nvim-lua/popup.nvim'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" File system navigation
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
" OCS Yank PLugin for use with Blink Shell
Plug 'ojroques/vim-oscyank'
" Syntax highlighting
Plug 'joelbeedle/pseudo-syntax'
Plug 'rhysd/vim-wasm'
Plug 'elzr/vim-json'
Plug 'tpope/vim-markdown'
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'vim-scripts/cool.vim'
Plug 'justinmk/vim-syntax-extra'
Plug 'arrufat/vala.vim'
Plug 'Shirk/vim-gas'
call plug#end()

+ 0
- 3
.config/nvim/plugin/vim-ripgrep.vim View File

@ -1,3 +0,0 @@
" bind K to search word under cursor
nnoremap ,K :Rg <C-R><C-W><CR>
cnoreabbrev <expr> Ag ((getcmdtype() is# ':' && getcmdline() is# 'Ag')?('Rg'):('Ag')) " Map Ag to Rg as well

+ 0
- 7
.config/nvim/plugin/vim-test.vim View File

@ -1,7 +0,0 @@
let test#strategy = "vimux"
let test#runners = {}
nmap <silent> <leader>s :TestNearest<CR>
nmap <silent> <leader>t :TestFile<CR>
nmap <silent> <leader>a :TestSuite<CR>
nmap <silent> <leader>l :TestLast<CR>

+ 0
- 9
.config/nvim/plugin/vimux.vim View File

@ -1,9 +0,0 @@
function! RunCommand()
call inputsave()
let replacement = input('Enter Command: ')
call inputrestore()
execute 'call VimuxRunCommand("'.replacement.'")'
endfunction
nnoremap <F5> :call RunCommand()<CR>
nnoremap <F6> :VimuxRunLastCommand<CR>

+ 89
- 0
.config/nvim/plugins.vim View File

@ -0,0 +1,89 @@
call plug#begin('~/.local/share/vim/plugged')
" Look & Feel
Plug 'kaicataldo/material.vim'
Plug 'itchyny/lightline.vim'
Plug 'mengelbrecht/lightline-bufferline'
Plug 'kyazdani42/nvim-tree.lua'
" Addons
Plug 'mhinz/vim-signify' " Signs
Plug 'tpope/vim-surround' " Surround pieces of text with symbols
Plug 'jremmen/vim-ripgrep' " Better Grep
" Plug 'blarghmatey/split-expander'
Plug 'sheerun/vim-polyglot' " Language Packs
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neovim/nvim-lspconfig' " LSP!!!
Plug 'junegunn/goyo.vim' " Center writing
" Autocomplete
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/cmp-cmdline'
Plug 'Dosx001/cmp-commit'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp-signature-help'
Plug 'neomutt/neomutt.vim' " Neomuttrc syntex highlighting
Plug 'VebbNix/lf-vim'
" Tmux integration
Plug 'benmills/vimux'
Plug 'christoomey/vim-tmux-navigator'
" File system navigation
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-file-browser.nvim'
Plug 'gnfisher/nvim-telescope-ctags-plus'
Plug 'jreybert/vimagit'
Plug 'ojroques/vim-oscyank' " OCS Yank PLugin for use with Blink Shell
Plug 'folke/which-key.nvim' " Emacs like keybind suggestions
Plug 'ferrine/md-img-paste.vim'
" === Language Servers ===
Plug 'mfussenegger/nvim-jdtls'
" ==== Syntax highlighting ====
Plug 'joelbeedle/pseudo-syntax' " Pseudocode
Plug 'rhysd/vim-wasm' " Web Assembly
Plug 'elzr/vim-json' " JSON
Plug 'tpope/vim-markdown' "Markdown
Plug 'pangloss/vim-javascript' "Javascript
Plug 'leafgarland/typescript-vim' "Typescript
Plug 'vim-scripts/cool.vim' "COOL, Stanford Compiler Course
Plug 'justinmk/vim-syntax-extra' " A bunch of extra languages
Plug 'arrufat/vala.vim' " Vala
Plug 'Shirk/vim-gas' "GAS Assembly
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
Plug 'nicwest/vim-http'
" === Snippets ===
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
Plug 'rafamadriz/friendly-snippets' " Some snippets for ultisnips
Plug 'folke/zen-mode.nvim'
Plug 'goolord/alpha-nvim' " Welcome screen
Plug 'onsails/lspkind.nvim' " Completion icons
" Telescope extensions
Plug 'nvim-telescope/telescope-ui-select.nvim'
Plug 'mickael-menu/zk-nvim'
Plug 'folke/trouble.nvim'
Plug 'josa42/nvim-lightline-lsp'
Plug 'willchao612/vim-diagon'
Plug 'tpope/vim-fugitive'
Plug 'lervag/vimtex'
Plug 'mfussenegger/nvim-dap'
call plug#end()

+ 182
- 0
.config/nvim/syntax/java.vim View File

@ -0,0 +1,182 @@
" note do not change the order...
" some of them are overridding privous regrex
"this code made with build-in syntax regrex(and key words), and with some custome regrex(and
"key words)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" gruvbox (dark)
"let orange = "#d65d0e" "special color for numbers
"let black = "#282828"
"let red = "#cc241d"
"let green = "#98971a"
"let yellow = "#d79921"
"let blue = "#458588"
"let purple = "#b16286"
"let cyan = "#689d6a"
"let white = "#a89984"
" one dark
let orange = "#d19a66" "special color for numbers
let black = "#282c34"
let red = "#E06C75"
let green = "#98c379"
let yellow = "#E5C07B"
let blue = "#61AFEF"
let purple = "#C678DD"
let cyan = "#56B6C2"
let white = "#ABB2BF"
" you may chage the color according to your will :)
" main color (for left over words)
syn match main "\w"
execute "highlight main ctermfg=4 guifg=".red
" numbers
syn match posNum "\d"
execute "highlight posNum ctermfg=4 guifg=".orange
" method names()
syn match class ".\w*\((\)\@="
execute "highlight class ctermfg=4 guifg=".blue
"execute "highlight names which contains numbers
syn match main "\v(\a)\w*\d"
execute "highlight main ctermfg=4 guifg=".red
"all regrex works
" /^import (+);$/mg
" import \zs.*\ze
" \v(^import\s+)@<=.*;
" imported packages
syn match importName "\v(^import\s+)@<=.*;"
execute "highlight importName ctermfg=4 guifg=".yellow
" import
syn match importWord "import "
execute "highlight importWord ctermfg=4 guifg=".purple
" package name
syn match packageName "\v(^package\s+)@<=.*;"
execute "highlight packageName ctermfg=4 guifg=".yellow
" package
syn match packageWord "package "
execute "highlight packageWord ctermfg=4 guifg=".purple
"ex: int, double, char
execute "highlight javaType ctermfg=4 guifg=".purple
"ex: static, throws
execute "highlight javaStorageClass ctermfg=4 guifg=".purple
"class name... basically starts with caps letter
syntax match ClassName display '\<\([A-Z][a-z0-9]*\)\+\>'
syntax match ClassName display '\.\@<=\*'
highlight link ClassName Identifier
execute "highlight ClassName ctermfg=4 guifg=".yellow
" Just some special color, why not?
syn match print " System.out."
execute "highlight print ctermfg=4 guifg=".yellow
"objects (ex: String)
execute "highlight Constant ctermfg=4 guifg=".yellow
" class
syn match javaClassDecl2 " class\> "
execute "highlight javaClassDecl2 ctermfg=4 guifg=".purple
" package
execute "highlight javaExternal ctermfg=4 guifg=".purple
"if else switch
execute "highlight javaConditional ctermfg=4 guifg=".purple
"while for do
execute "highlight javaRepeat ctermfg=4 guifg=".purple
"true flase
execute "highlight javaBoolean ctermfg=4 guifg=".orange
" null
syn match null "\v[ =]null[; ]"
execute "highlight null ctermfg=4 guifg=".orange
" this super
execute "highlight javaTypedef ctermfg=4 guifg=".purple
" var new instanceof
execute "highlight javaOperator ctermfg=4 guifg=".purple
" return
execute "highlight javaStatement ctermfg=4 guifg=".purple
" static synchronized transient volatile final strictfp serializable
execute "highlight javaStorageClass ctermfg=4 guifg=".purple
"throw try catch finally
execute "highlight javaExceptions ctermfg=4 guifg=".purple
" assert
execute "highlight javaAssert ctermfg=4 guifg=".purple
" synchronized throws
execute "highlight javaMethodDecl ctermfg=4 guifg=".red
" extends implements interface
execute "highlight javaClassDecl ctermfg=4 guifg=".red
" interface
execute "highlight javaClassDecl ctermfg=4 guifg=".purple
" break continue skipwhite
execute "highlight javaBranch ctermfg=4 guifg=".purple
" public protected private abstract
execute "highlight javaScopeDecl ctermfg=4 guifg=".purple
""""""""""""""""""""""""""""""""""""""'
" java 9...
" module transitive
execute "highlight javaModuleStorageClass ctermfg=4 guifg=".purple
" open requires exports opens uses provides
execute "highlight javaModuleStmt ctermfg=4 guifg=".yellow
" to with
execute "highlight javaModuleExternal ctermfg=4 guifg=".red
"""""""""""""""""""""""""""""""""""""""""
" lambda
execute "highlight javaLambdaDef ctermfg=4 guifg=".cyan
""""""""""""""""""""""""""""""""""""""""""
" clone equals finalize getClass hashCode
" notify notifyAll toString wait
execute "highlight javaLangObject ctermfg=4 guifg=".yellow
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

.config/vim/templates/skeleton.c → .config/nvim/templates/skeleton.c View File


.config/vim/templates/skeleton.cpp → .config/nvim/templates/skeleton.cpp View File


.config/vim/templates/skeleton.h → .config/nvim/templates/skeleton.h View File


.config/vim/templates/skeleton.hpp → .config/nvim/templates/skeleton.hpp View File


.config/vim/templates/skeleton.html → .config/nvim/templates/skeleton.html View File


.config/vim/templates/skeleton.java → .config/nvim/templates/skeleton.java View File


.config/vim/templates/skeleton.py → .config/nvim/templates/skeleton.py View File


.config/vim/templates/skeleton.s → .config/nvim/templates/skeleton.s View File


.config/vim/templates/skeleton.sh → .config/nvim/templates/skeleton.sh View File


.config/vim/templates/skeleton.tex → .config/nvim/templates/skeleton.tex View File


+ 0
- 240
.config/vim/vimrc View File

@ -1,240 +0,0 @@
"" __ _______ _____ _____
"" \ \ / / ____| ____|_ _|
"" \ V /| _| | _| | |
"" | | | |___| |___ | |
"" |_| |_____|_____| |_|
"" Yeet's vim configuration
" XDG Base Directory Specification
set runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath+=$XDG_DATA_HOME/vim
set runtimepath+=$XDG_CONFIG_HOME/vim/after
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
let g:netrw_home = $XDG_DATA_HOME."/vim"
call mkdir($XDG_DATA_HOME."/vim/spell", 'p')
set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p')
set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p')
set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p')
set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p')
let s:MRU_File = $XDG_CACHE_HOME."/vim/mru"
if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif
" Set leader
let mapleader = ","
" Leader Mappings
nnoremap <Leader>c :w! \| !compiler "<c-r>%"<CR>
map <Leader>w :update<CR>
map <Leader>q :qall<CR>
map <Leader>gs :Gstatus<CR>
" map Q to gq for line formatting cuz Q is useless
nnoremap Q gq
" Recently edited files
map <Leader>h :History<CR>
" CtrlP use FZF (faster!)
nnoremap <C-p> :Telescope find_files<cr>
" ,b Buffers
nnoremap <Leader>b :Buffers<CR>
" ,u urlview
noremap <Leader>u :w<Home>silent <End> !urlview<CR>
" System clipboard copy
nnoremap <Leader>y "+y
nnoremap <Leader>p "+p
vnoremap <Leader>y "+y
vnoremap <Leader>p "+p
nnoremap <Leader>Y "+Y
nnoremap <Leader>P "+P
vnoremap <Leader>d "+d
nnoremap <Leader>D "+D
if has('nvim')
source ~/.config/nvim/plugin/plugins.vim
endif
syntax on
filetype plugin on
set autoread " Auto reload changed files
set wildmenu " Tab autocomplete in command mode
set backspace=indent,eol,start " http://vi.stackexchange.com/a/2163
set laststatus=2 " Show status line on startup
set splitright " Open new splits to the right
set splitbelow " Open new splits to the bottom
set lazyredraw " Reduce the redraw frequency
set ttyfast " Send more characters in fast terminals
set nowrap " Don't wrap long lines
set listchars=extends:→ " Show arrow if line continues rightwards
set listchars+=precedes:← " Show arrow if line continues leftwards
set nobackup nowritebackup noswapfile " Turn off backup files
set noerrorbells novisualbell " Turn off visual and audible bells
set expandtab shiftwidth=2 tabstop=2 " Two spaces for tabs everywhere
set history=500
set hidden " Save buffers automatically
set ignorecase smartcase " Search queries intelligently set case
set incsearch " Show search results as you type
set timeoutlen=1000 ttimeoutlen=0 " Remove timeout when hitting escape
set showcmd " Show size of visual selection
set cmdheight=2
set t_Co=256
noh
" set clipboard=unnamedplus
set shortmess+=c
set updatetime=300
if has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" Persistent undo
set undodir=~/.local/share/vim/undo/
set undofile
set undolevels=1000
set undoreload=10000
" Ignored files/directories from autocomplete (and CtrlP)
set wildignore+=*/tmp/*
set wildignore+=*.so
set wildignore+=*.zip
set wildignore+=*/vendor/bundle/*
set wildignore+=*/node_modules/
" Enable autocompletion:
set wildmode=longest,list,full
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
vnoremap . :normal .<CR>
map <leader>f :Goyo \| set linebreak<CR>
map <leader>o :setlocal spell! spelllang=en_us<CR>
set splitbelow splitright
map <leader>s :!clear && shellcheck -x %<CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
"-------------------------------------------------------------------------------
" Interface
"-------------------------------------------------------------------------------
set number " Enable line numbers
set scrolloff=5 " Leave 5 lines of buffer when scrolling
set sidescrolloff=10 " Leave 10 characters of horizontal buffer when scrolling
"-------------------------------------------------------------------------------
" Colors & Formatting
"-------------------------------------------------------------------------------
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
if (has("termguicolors"))
set termguicolors
endif
let g:material_theme_style='ocean-community'
set background=dark
try
colorscheme material
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
endtry
" Showcase comments in italics
highlight Comment cterm=italic gui=italic
" Easy tab navigation
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
" Find/replace
vnoremap <C-r> "hy:%s/<C-r>h//g<left><left><left>
" DON'T USE ARROWS NORMIE
nnoremap <C-c> :echoe "Use Esc"<CR>
nnoremap <Left> :echoe "Use h"<CR>
nnoremap <Right> :echoe "Use l"<CR>
nnoremap <Up> :echoe "Use k"<CR>
nnoremap <Down> :echoe "Use j"<CR>
" Split resize
nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
" Make vim obey transparency
hi! Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE
"-------------------------------------------------------------------------------
" Neovim-specific configurations
if has('nvim')
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set termguicolors
" Fix vim-tmux-navigator <C-h> https://git.io/viGRU
nmap <BS> <C-W>h
" Fix vim-tmux-navigator <C-h> https://git.io/vS5QH
nmap <BS> :<C-u>TmuxNavigateLeft<CR>
" The following require plugins to be loaded so they should only be set in neovim
let g:vimtex_view_general_viewer = 'zathura'
" Syntastic max file size for python
let g:syntastic_python_pylint_post_args="--max-line-length=120"
" Widths fot several plugins
let g:goyo_width = 120 " Goyo
let g:Tlist_WinWidth = 40 " Tlist
lua <<EOF
require'neuron'.setup {
virtual_titles = true,
mappings = true,
run = nil, -- function to run when in neuron dir
neuron_dir = "~/Projects/Neocortex", -- the directory of all of your notes, expanded by default (currently supports only one directory for notes, find a way to detect neuron.dhall to use any directory)
leader = "gz", -- the leader key to for all mappings, remember with 'go zettel'
}
EOF
endif
" Don't clear clipboard on exit
autocmd VimLeave * call system("xsel -ib", getreg('+'))
" Useful for GDB debugging
packadd termdebug
" File Specific Settings
if has("autocmd")
" Use skeleton files
augroup templates
autocmd BufNewFile *.* silent! execute '0r ~/.config/vim/templates/skeleton.'.expand("<afile>:e")
autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
augroup END
autocmd BufWinLeave *.tex !texclear %:p " Run texclear on exit
autocmd BufRead calcurse-note.* :set filetype=markdown " Use markdown for calcurse notes
endif

+ 6
- 0
.config/zsh/aliases View File

@ -53,6 +53,7 @@ alias dignore="dots update-index --assume-unchanged {pkg.list,install.sh,README.
alias da="dots add -u"
alias dcm="dots commit"
alias pwndbg="gdb -nh -x \"$XDG_CONFIG_HOME\"/gdb/pwninit"
alias gef="gdb -nh -x \"$XDG_CONFIG_HOME\"/gdb/gefinit"
alias bon="sudo bash -c 'rc-service bluetooth start && rfkill unblock bluetooth'"
@ -66,3 +67,8 @@ alias m='e --eval "(progn (magit-status) (delete-other-windows))"'
alias mt="m -t"
alias et="e -t"
alias eduvpn="sudo openvpn ~/Documents/eduVPN.ovpn"
alias sshlogin="ssh -o IdentitiesOnly=yes"
alias scplogin="scp -o IdentitiesOnly=yes"
alias pastebin="curl -F 'sprunge=<-' http://sprunge.us"

+ 5
- 0
.config/zsh/cmds View File

@ -145,6 +145,10 @@ tmate-unpair() {
fi
}
transfer() {
curl --upload-file "$1" "https://transfer.sh/$1"
}
rawurlencode() {
local string="${1}:$(cat -)"
@ -169,3 +173,4 @@ rawurldecode() {
echo "${REPLY}" #+or echo the result (EASIER)... or both... :p
}

+ 1
- 1
.local/bin/compiler View File

@ -29,7 +29,7 @@ textype() { \
case "$ext" in
# Try to keep these cases in alphabetical order.
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;;
c) cc "$file" -o "$base" && "$base" ;;
c) gcc -g "$file" -o "$base" && "$base" ;;
cpp) g++ "$file" -o "$base" && "$base" ;;
cs) mcs "$file" && mono "$base".exe ;;
go) go run "$file" ;;


+ 50
- 19
.local/bin/dmenu-books View File

@ -9,31 +9,62 @@ HOST="https://calibre.fr1nge.xyz"
function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
query=$(printf "" | dmenu -p "Please enter the book's name")
[ -z $query ] && exit
rawurlencode() {
local string="${1}"
local strlen=${#string}
local encoded=""
local pos c o
XML=$(curl -s -u "$USERNAME:$PASSWORD" "$HOST/opds/search?query=$query")
for (( pos=0 ; pos<strlen ; pos++ )); do
c=${string:$pos:1}
case "$c" in
[-_.~a-zA-Z0-9] ) o="${c}" ;;
* ) printf -v o '%%%02x' "'$c"
esac
encoded+="${o}"
done
echo "${encoded}" # You can either set a return variable (FASTER)
REPLY="${encoded}" #+or echo the result (EASIER)... or both... :p
}
menu=$(echo $XML | xpath -q -e '//entry/title | //entry/author/name | //entry/link[@type="application/pdf"]/@href')
book=$(echo "$menu" | \
sed 's/<title>\(.*\)<\/title>/\1|/;N;s/<name>\(.*\)<\/name>/\1|/;N;s/href="\(.*\)"/\1/;s/\n/ /g' | \
column -s '|' -t | dmenu -p "Please select the book" -l 5)
if [ -d "$XDG_RUNTIME_DIR/books" ]; then
selection="$(find "$XDG_RUNTIME_DIR/books" -type f | dmenu -l 5 -p "Please enter the book's name")"
else
selection="$(printf "" | dmenu -p "Please enter the book's name")"
fi
[ -z "$book" ] && exit
if [ -f "$selection" ]; then
filename="$selection"
else
bookname="$selection"
query=$(rawurlencode "$bookname")
[ -z "$query" ] && exit
name=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | head -n 1)
author=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | head -n 2 | tail -n 1)
path=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | tail -n 1)
XML=$(curl -s -u "$USERNAME:$PASSWORD" "$HOST/opds/search?query=$query")
mkdir -p "$XDG_RUNTIME_DIR/books"
notify-send -a " Downloading" "$(printf "%s\n%s" "$name" "$author")"
menu=$(echo $XML | xpath -q -e '//entry/title | //entry/author/name | //entry/link[@rel="http://opds-spec.org/acquisition"][position()<=1]/@href')
wget -nc -P "$XDG_RUNTIME_DIR/books" -q --content-disposition \
--user "$USERNAME" --password "$PASSWORD" "$HOST$path"
book=$(echo "$menu" | \
sed 's/<title>\(.*\)<\/title>/\1|/;N;s/<name>\(.*\)<\/name>/\1|/;N;s/href="\(.*\)"/\1/;s/\n/ /g' | \
column -s '|' -t -T 1 -c 200| dmenu -i -p "Please select the book" -l 5)
filename=$(curl -s --head -u "$USERNAME:$PASSWORD" "$HOST$path" | \
grep "Content-Disposition" |\
sed -E 's/Content-Disposition:.*filename=([^;]*);.*/\1/g')
[ -z "$book" ] && exit
xdg-open "$XDG_RUNTIME_DIR/books/$(urldecode $filename)"
name=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | head -n 1)
author=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | head -n 2 | tail -n 1)
path=$(echo "$book" | sed 's/\s\{2,\}/\n/g' | tail -n 1)
mkdir -p "$XDG_RUNTIME_DIR/books"
notify-send -a " Downloading" "$(printf "%s\n%s" "$name" "$author")"
wget -nc -P "$XDG_RUNTIME_DIR/books" -q --content-disposition \
--user "$USERNAME" --password "$PASSWORD" "$HOST$path"
out=$(curl -s --head -u "$USERNAME:$PASSWORD" "$HOST$path" | \
grep "Content-Disposition" |\
sed -E 's/Content-Disposition:.*filename=([^;]*);.*/\1/g')
filename="$XDG_RUNTIME_DIR/books/$(urldecode $out)"
fi
xdg-open "$filename"

+ 35
- 0
.local/bin/dmenu-hamster View File

@ -0,0 +1,35 @@
#!/bin/sh
function menu {
dmenu -i -l 20 $@
}
function refresh {
echo "refresh"
}
current=$(hamster current)
# choose an action
if [ "No activity" = "$current" ]; then
action="start"
else
action=$(echo -e -n "start\nstop $current" | menu -p Action)
fi
[ -z "$action" ] && exit 1
case "$action" in
start)
activity=$(hamster activities | menu -p Start)
[ -z "$activity" ] && exit 1
hamster start $activity
notify-send "Started $activity"
refresh
;;
stop*)
hamster stop
notify-send "Stopped $current"
refresh
;;
esac

+ 8
- 4
.local/bin/dmenu-refresh View File

@ -16,7 +16,7 @@ dunst
clipmenud
darkhttpd
devmon
emacs
activitywatcher
spotifyd"
# Open menu
@ -46,9 +46,13 @@ case $selection in
kill -9 $(pidof dunst)
dunst &
;;
emacs)
emacsclient -e '(kill-emacs)'
emacs --daemon && emacsclient -c --eval "(delete-frame)"
activitywatcher)
pkill -f aw-watcher-window
pkill -f aw-watcher-afk
pkill -f aw-server
aw-server &
aw-watcher-window &
aw-watcher-afk &
;;
devmon)
pkill -f devmon


+ 22
- 0
.local/bin/dmenu-sessions View File

@ -0,0 +1,22 @@
#!/bin/sh
if [ ! -d "$XDG_CONFIG_HOME/sessions" ]; then
mkdir -p "$XDG_CONFIG_HOME/sessions"
fi
list=""
for i in $(ls -1 "$XDG_CONFIG_HOME/sessions/"); do
list="${list}${i} : $(head -n 1 "$XDG_CONFIG_HOME/sessions/$i" | sed 's/# //g')\n"
done
selection=$(printf "$list" | dmenu -l 4 | sed 's/ :.*//g')
echo "$selection"
if [ ! -f "$XDG_CONFIG_HOME/sessions/$selection" ]; then
touch "$XDG_CONFIG_HOME/sessions/$selection"
st -c vim -n vim -e "$EDITOR" "$XDG_CONFIG_HOME/sessions/$selection"
else
bash "$XDG_CONFIG_HOME/sessions/$selection"
fi

+ 23
- 0
.local/bin/dmenu-timer View File

@ -0,0 +1,23 @@
#!/bin/sh
if [ ! -f $XDG_RUNTIME_DIR/timer ] || [ -z $(cat $XDG_RUNTIME_DIR/timer) ]; then
duration="$(printf "" | dmenu -p "Please enter duration:")"
[ -z "$duration" ] && exit 1
timestamp="$(date -d "$duration" '+%s')"
[ -z "$timestamp" ] && notify-send -a "Timer utility" "Time format not recognized" && exit 1
printf "$timestamp" > $XDG_RUNTIME_DIR/timer
else
operation=$(printf "Cancel" | dmenu -p "Please select action:")
case $operation in
Cancel)
echo "" > $XDG_RUNTIME_DIR/timer
;;
esac
fi
kill -64 $(pidof dwmblocks)

+ 39
- 0
.local/bin/dmenu-toolkit View File

@ -0,0 +1,39 @@
#!/bin/sh
read -r -d '' MENU << EOM
Arch Wiki | Open an entry from the Arch Wiki (offline) | dmenu-ambient
Bluetooth | Manage bluetooth and bluetooth devices | dmenu-bluetooth
Read Books | Connect to calibre-web and read a book | dmenu-books
Edit Config | Select and edit configuration files in your dotfiles | dmenu-edit
Kill Process | Kill a process that is bothering you | dmenu-killall
Mobile Device | Manage your mobile device through mconnect | dmenu-mconnect
Record Screen | Record your screen, voice or anything | dmenu-record
Mount Storage Devices | Manage connected detachable storage devices | dmenu-udevil
Unmount Storage Devices | Manage connected detachable storage devices | dmenu-udevil -u
Word Count | Count the words, letters and lines in any string | dmenu-wc
Grab Color | Grab any color on your screen | grabcolor
Sync Mail | Synchronize your mail | mailsync
Toggle Trackpad | Enable/Disable your trackpad | toggle_trackpad.sh
Sync Nextcloud | Synchronize with your nextcloud instance | nextcloud-sync
Network Settings | Manage network settings using connman | connman_dmenu
Backup | Backup your system | backup
Ambient Sounds | Play ambient sounds | dmenu-ambient
Insert Emoji | Insert an emoji or glyph | dmenu-emoji
Create Timer | Create or manage a timer | dmenu-timer
Watch Youtube | Search and watch a youtube video | ytfzf_dmenu
EOM
selection=$(printf "$MENU" | column -s '|' -t | dmenu -p "Select a tool" -l 7)
[ -z "$selection" ] && exit
cmd=$(echo "$selection" | sed 's/\s\{2,\}/\n/g' | tail -n 1)
bash -c "$cmd"

+ 0
- 73
.local/bin/dmenu-wallabag View File

@ -1,73 +0,0 @@
#!/bin/sh
itemcache="${XDG_DATA_HOME:-$HOME/.cache}/wallabag-dmenu"
DMENU=${DMENU:-dmenu}
usage() {
cat <<-EOF
usage: dmenu-wallabag [-lah]
-l List Entries
-s Select Menu
-a Add an entry
-h Print help
EOF
}
update_items(){
[ "$(date -r "$itemcache" "+%d-%m-%Y %H")" = "$(date '+%d-%m-%Y') %H" ] ||
wallabag list | head -n -1 | tail -n +2 > $itemcache
}
list_entries() {
update_items
items="$(cat $itemcache)"
selection=$(echo -e "$items\n~SYNC~" | dmenu -l 10 -p "Choose an article:")
if [ "$selection" = "~SYNC~" ]; then
wallabag list | head -n -1 | tail -n +2 > $itemcache
items="$(cat $itemcache)"
selection=$(echo "$items" | dmenu -l 10 -p "Choose an article:")
fi
if [ "$selection" = "" ]; then
exit
fi
selection=$(echo "$selection" | cut -d" " -f1)
wallabag update --read $selection
wallabag open $selection
wallabag list | head -n -1 | tail -n +2 > $itemcache
}
add_entry() {
url=$(echo -n "" | dmenu -p "Enter URL:")
if [ "$url" = "" ]; then
exit
fi
wallabag add $url
wallabag list | head -n -1 | tail -n +2 > $itemcache
}
select_mode() {
menu="Read\nAdd"
action=$(echo -e "$menu" | dmenu -p "Select action: ")
if [ "$action" = "" ]; then
return
fi
if [ "$action" = "Read" ];then
list_entries
else
add_entry
fi
}
while getopts ':lahs' opt; do
case "$opt" in
l) list_entries ;;
s) select_mode;;
a) add_entry ;;
h) usage && exit;;
/?) echo "Unrecognized command: $OPTARG";;
esac
done

+ 1
- 37
.local/bin/dmenu-web View File

@ -39,43 +39,7 @@ searchweb() {
gotourl
}
xprop -root | grep '^_NET_ACTIVE_WINDOW' && {
winid=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/.*[[:space:]]//')
class=$(xprop -id "$winid" WM_CLASS | awk -F'\"' '{ print $(NF - 1) }')
case "$class" in
Firefox) nbrowser='firefox' ;;
#Firefox) shortcut='ctrl+l' ;; # alternative method, uses xdotool
IceCat) nbrowser='icecat' ;;
Chromium) nbrowser='chromium' ;;
Chrome) nbrowser='chrome' ;;
Opera) nbrowser='opera' ;;
Vivaldi) nbrowser='vivaldi' ;; # not tested
Brave) nbrowser='brave' ;; # not tested
Conkeror) nbrowser='conkeror' ;; # not tested
Palemoon) nbrowser='palemoon' ;; # not tested
Iceweasel) nbrowser='iceweasel' ;; # not tested
qutebrowser) nbrowser='qutebrowser' ;;
Midori) nbrowser='midori' ;; # not that good
Luakit) nbrowser='luakit' ;; # uses the last window instance
Uzbl|Vimb) shortcut='o' ;;
Links) shortcut='g' ;;
Netsurf*|Epiphany|Dillo|Konqueror|Arora) shortcut='ctrl+l' ;;
Surf) nbrowser='surf' ; uricur=$(xprop -id "$winid" _SURF_URI |\
awk -F'\"' '{ print $( NF - 1 ) }') ;;
*) pid=$(xprop -id "$winid" _NET_WM_PID | awk '{ print $3 }')
while pgrep -oP "$pid" >/dev/null
do
pid=$(pgrep -oP "$pid")
done
pname=$(awk '/^Name\:/{ print $NF }' /proc/"$pid"/status) ||
winid="" ;;
esac
[ -n "$pname" ] && case "$pname" in
w3m) shortcut="U" ;;
lynx|elinks|links) shortcut="g" ;;
*) winid="" ;;
esac
}
nbrowser=$BROWSER
tmpfile=$(mktemp /tmp/dmenu_websearch.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15


+ 8
- 1
.local/bin/lf-ueberzug View File

@ -13,8 +13,15 @@ mkfifo "$LF_UEBERZUG_FIFO"
tail -f "$LF_UEBERZUG_FIFO" | ueberzug layer --silent &
ueberzugpid=$!
last_dir="$([ ! -f $XDG_RUNTIME_DIR/lf-last-dir ] || cat $XDG_RUNTIME_DIR/lf-last-dir)"
if [ $# -ge 2 ]; then
if [[ "${@: -1}" == "." ]]; then
pwd > $XDG_RUNTIME_DIR/lf-last-dir
else
echo "${@: -1}" > $XDG_RUNTIME_DIR/lf-last-dir
fi
fi
last_dir="$([ ! -f $XDG_RUNTIME_DIR/lf-last-dir ] || cat $XDG_RUNTIME_DIR/lf-last-dir)"
fid="$(mktemp)"


+ 3
- 3
.local/bin/pacontrol.sh View File

@ -22,8 +22,8 @@ function send_notification {
fi
fi
fi
bar=$(seq -s "" $(($1/5)) | sed 's/[0-9]//g')
empty=$(seq -s " ⁠" $((20 - $1/5)) | sed 's/[0-9]//g')
bar=$(seq -s "" $(($1/4)) | sed 's/[0-9]//g')
empty=$(seq -s "▯⁠" $((26 - $1/4)) | sed 's/[0-9]//g')
dunstify -t 1000 -r 53 -a "蓼 Volume" "$icon $bar$empty"
}
@ -31,7 +31,7 @@ usage() {
echo "Usage: pacontrol.sh [up|down|toggle-mute]"
}
vol_interval=5
vol_interval=3
sinks=$(pactl list short sinks | cut -c 1)
latest_sink=${sinks[*]: -1}


+ 10
- 0
.local/bin/status-bar/hamster View File

@ -0,0 +1,10 @@
#!/bin/sh
activity=$(hamster current)
if [[ "$activity" == "No activity" ]]; then
activity="None"
fi
echo "^c#ebcb8b^﨟 ^d^${activity}"

+ 5
- 18
.local/bin/status-bar/network View File

@ -2,30 +2,17 @@
source ~/.config/config.env
get_ssid(){
networks=$(connmanctl services | \
awk -F ' +' '{ service_id=$NF; $NF=""; $1=""; name=substr($0, 2, length-2); gsub(/[^a-zA-Z0-9-]/, "_", name) }
name { print name, service_id }')
while read -r name service_id; do
if [ $(connmanctl services "$service_id" | awk '$1 == "State" { print $3 }') = "online" ]; then
echo "$name"
break
fi
done <<< "$networks"
}
is_eth_used=$(cat /sys/class/net/$ETH_IT/carrier)
is_wlan_used=$(cat /sys/class/net/$WLAN_IT/carrier)
echo -n "^c#88c0d0^"
if [ "$is_eth_used" -eq 1 ]; then # wired network is carrying
icon=" ^d^ " #uF6FF
elif [ "$is_wlan_used" -eq 1 ]; then # wireless network is carrying
ssid=$(get_ssid)
icon=" ^d^" #uF1EB
else
icon=" ^d^" #uf128 # no network
icon=" ^d^ " #uF6FF
elif [ "$is_wlan_used" -eq 1 ]; then # wireless network is carrying
icon=" ^d^" #uF1EB
else
icon=" ^d^" #uf128 # no network
fi
echo -n $icon


+ 30
- 0
.local/bin/status-bar/timer View File

@ -0,0 +1,30 @@
#!/bin/sh
icon=
now=$(date '+%s')
if [ ! -f "$XDG_RUNTIME_DIR/timer" ]; then
end=0
else
content=$(cat "$XDG_RUNTIME_DIR/timer")
if [ -z "$content" ]; then
end=0
else
end="$content"
fi
fi
if [ $end != 0 ]; then
if [ $now -ge $end ]; then
canberra-gtk-play -i alarm-clock-elapsed -V 10
echo "" > "$XDG_RUNTIME_DIR/timer"
else
diff=$(expr $end - $now)
str=$(date -ud @$diff '+%H:%M:%S' | sed 's/^00://g')
echo "^c#a48ead^$icon ^d^ $str"
fi
else
echo "^c#a48ead^$icon ^d^ NONE"
fi

+ 2
- 2
.local/bin/status-bar/todo View File

@ -2,7 +2,7 @@
todos=$(calcurse -t | tail -n +2 | wc -l)
if [ ! "$todos" = "0" ]; do
if [ ! "$todos" = "0" ]; then
echo -n "^c#81a1c1^ ^d^ $todos"
done
fi

+ 1
- 1
.local/bin/ytfzf_dmenu View File

@ -1,6 +1,6 @@
#!/bin/sh
export YTFZF_EXTMENU=' dmenu -i -l 12'
action=$(echo "" | dmenu -p "Search YouTube")
action=$(printf "" | dmenu -p "Search YouTube")
ytfzf -D "$action"

+ 1
- 0
.local/share/bookmarks View File

@ -9,3 +9,4 @@ https://tudelft.zoom.us/j/95264306309
https://wiki.fr1nge.xyz
https://ad-cs.ewi.tudelft.nl
https://calibre.fr1nge.xyz
https://weblogin.tudelft.nl/Citrix/TUDAppsWeb/

+ 5
- 4
.local/share/dwm/autostart.sh View File

@ -20,7 +20,7 @@ restart_if_fails "xbanish"
# Start emacs
# restart_if_fails "emacs --daemon && emacsclient -c --eval \"(delete-frame)\""
~/.local/bin/firefox-sync &
# ~/.local/bin/firefox-sync &
if [ "$ACTIVITYWATCHER" = true ] ; then
pkill -f aw-watcher-window
pkill -f aw-watcher-afk
@ -30,6 +30,10 @@ if [ "$ACTIVITYWATCHER" = true ] ; then
aw-watcher-afk &
fi
if [ "$ARIA2C_SECRET" = true ] ; then
restart_if_fails "aria2c --enable-rpc --rpc-secret '$ARIA2C_SECRET'"
fi
# Only run these if we are not in a VNC session
if ! xpdyinfo | grep -q VNC ; then
redshift -x 2> /dev/null > /dev/null
@ -69,8 +73,5 @@ if ! xpdyinfo | grep -q VNC ; then
restart_if_fails "picom --no-fading-openclose"
mpd
restart_if_fails mpDris2
curl 'http://yeetclock/setcolor?R=136&G=192&B=208' &
fi

+ 2
- 1
.local/share/gnupg/gpg-agent.conf View File

@ -1,4 +1,5 @@
pinentry-program /usr/bin/pinentry-qt
no-grab
allow-preset-passphrase
max-cache-ttl 172800
max-cache-ttl 34560000
default-cache-ttl 34560000

+ 3
- 3
.local/share/startpage/src/index.pug View File

@ -38,11 +38,11 @@ grid
+raisin('hack', hack)
+myrtille('vault.yigitcolakoglu.com/', '0 0 64 64', "M32 0c17.6 0 32 14.3 32 32S49.6 64 32 64 0 49.6 0 32 14.3 0 32 0zM14 17.539c0-.673.2-1.3.7-1.795A2.5 2.5 0 0116.539 15h30.868A2.59 2.5 0 0150 17.594V39c-2.8 9.1-9.1 14.5-17.4 17.7-.347.135-.73.1-1.078.008C23.4 53.7 17.3 48.2 14 39V17.539zM32 20h13v19c-1.3 5.022-6.3 9.1-13 13V20z")
+myrtille('trello.com', '0 0 64 64', "M 56 4 L 8 4 C 3.585938 4 0 7.136719 0 11 L 0 53 C 0 56.863281 3.585938 60 8 60 L 56 60 C 60.414062 60 64 56.863281 64 53 L 64 11 C 64 7.136719 60.414062 4 56 4 Z M 27.84375 46.425781 C 27.84375 48.273438 26.128906 49.789062 24 49.789062 L 12.15625 49.789062 C 10.042969 49.789062 8.3125 48.289062 8.3125 46.425781 L 8.3125 14.636719 C 8.3125 12.789062 10.027344 11.273438 12.15625 11.273438 L 24 11.273438 C 26.113281 11.273438 27.84375 12.773438 27.84375 14.636719 Z M 55.6875 32.425781 C 55.6875 34.273438 53.972656 35.789062 51.84375 35.789062 L 40 35.789062 C 37.886719 35.789062 36.15625 34.289062 36.15625 32.425781 L 36.15625 14.636719 C 36.15625 12.789062 37.871094 11.273438 40 11.273438 L 51.84375 11.273438 C 53.957031 11.273438 55.6875 12.773438 55.6875 14.636719 Z M 55.6875 32.425781")
+myrtille('twitter.com/', '0 0 64 64', "M6 9c-2.5 6.1-2.8 11.8 3 17-2.049.038-3.5-.409-5-1 .1 6.1 3.2 10.2 10 12-2.069.767-4.067.743-6 0 2.5 5.7 6.2 9.3 12 9-5.1 4.1-11.1 5.95-18 6 17.1 9.7 34.4 4.9 43-4 7.8-8.2 14.74-21.2 12-29 .9.246 6.305-5.8 6-6a57.81 57.81 0 01-7 2c2.5-1.9 4.1-4.3 5-7a30.6 30.6 0 01-8 3c-3.5-4-8.6-4.4-14-3-7.5 2-7.9 14.1-7 14 .0 2.8-27.9-6.3-26-13z")
+myrtille('calibre.yigitcolakoglu.com/', '-60 -30 400 400', 'M45.432,35.049c-0.008,0-0.017,0-0.025,0c-2.809,0-5.451,1.095-7.446,3.085c-2.017,2.012-3.128,4.691-3.128,7.543 v159.365c0,5.844,4.773,10.61,10.641,10.625c24.738,0.059,66.184,5.215,94.776,35.136V84.023c0-1.981-0.506-3.842-1.461-5.382 C115.322,40.849,70.226,35.107,45.432,35.049z M262.167,205.042V45.676c0-2.852-1.111-5.531-3.128-7.543c-1.995-1.99-4.639-3.085-7.445-3.085c-0.009,0-0.018,0-0.026,0 c-24.793,0.059-69.889,5.801-93.357,43.593c-0.955,1.54-1.46,3.401-1.46,5.382v166.779 c28.592-29.921,70.038-35.077,94.776-35.136C257.394,215.651,262.167,210.885,262.167,205.042z M286.373,71.801h-7.706v133.241c0,14.921-12.157,27.088-27.101,27.125c-20.983,0.05-55.581,4.153-80.084,27.344 c42.378-10.376,87.052-3.631,112.512,2.171c3.179,0.724,6.464-0.024,9.011-2.054c2.538-2.025,3.994-5.052,3.994-8.301V82.427 C297,76.568,292.232,71.801,286.373,71.801z M18.332,205.042V71.801h-7.706C4.768,71.801,0,76.568,0,82.427v168.897c0,3.25,1.456,6.276,3.994,8.301 c2.545,2.029,5.827,2.78,9.011,2.054c25.46-5.803,70.135-12.547,112.511-2.171c-24.502-23.19-59.1-27.292-80.083-27.342 C30.49,232.13,18.332,219.963,18.332,205.042z')
+myrtille('calibre.fr1nge.xyz/', '-60 -30 400 400', 'M45.432,35.049c-0.008,0-0.017,0-0.025,0c-2.809,0-5.451,1.095-7.446,3.085c-2.017,2.012-3.128,4.691-3.128,7.543 v159.365c0,5.844,4.773,10.61,10.641,10.625c24.738,0.059,66.184,5.215,94.776,35.136V84.023c0-1.981-0.506-3.842-1.461-5.382 C115.322,40.849,70.226,35.107,45.432,35.049z M262.167,205.042V45.676c0-2.852-1.111-5.531-3.128-7.543c-1.995-1.99-4.639-3.085-7.445-3.085c-0.009,0-0.018,0-0.026,0 c-24.793,0.059-69.889,5.801-93.357,43.593c-0.955,1.54-1.46,3.401-1.46,5.382v166.779 c28.592-29.921,70.038-35.077,94.776-35.136C257.394,215.651,262.167,210.885,262.167,205.042z M286.373,71.801h-7.706v133.241c0,14.921-12.157,27.088-27.101,27.125c-20.983,0.05-55.581,4.153-80.084,27.344 c42.378-10.376,87.052-3.631,112.512,2.171c3.179,0.724,6.464-0.024,9.011-2.054c2.538-2.025,3.994-5.052,3.994-8.301V82.427 C297,76.568,292.232,71.801,286.373,71.801z M18.332,205.042V71.801h-7.706C4.768,71.801,0,76.568,0,82.427v168.897c0,3.25,1.456,6.276,3.994,8.301 c2.545,2.029,5.827,2.78,9.011,2.054c25.46-5.803,70.135-12.547,112.511-2.171c-24.502-23.19-59.1-27.292-80.083-27.342 C30.49,232.13,18.332,219.963,18.332,205.042z')
+myrtille('drive.yigitcolakoglu.com/', '0 0 64 64', "m32.028095 17.446884c-6.630378 0-12.249342 4.49517-13.99122 10.563651-1.517121-3.258998-4.77612-5.506585-8.597016-5.506585-5.169446 0-9.439859 4.270413-9.439859 9.496049 0 5.225637 4.270413 9.49605 9.496049 9.49605 3.764706 0 7.079895-2.247586 8.597015-5.506585 1.685689 6.068481 7.304653 10.563652 13.935031 10.563652 6.574188 0 12.193152-4.438981 13.99122-10.451272 1.517121 3.146619 4.77612 5.338015 8.484636 5.338015 5.225637 0 9.496049-4.270412 9.496049-9.496049s-4.270412-9.43986-9.496049-9.43986c-3.708516 0-6.967515 2.191396-8.484636 5.338016-1.798068-5.956101-7.360843-10.395082-13.99122-10.395082zm0 5.562773c5.000878 0 8.990343 3.989465 8.990343 8.990342 0 5.000879-3.989465 8.990343-8.990343 8.990343s-8.990343-3.989464-8.990343-8.990343c0-5.000875 3.989465-8.99034 8.990343-8.990342zm-22.532046 5.057067c2.191397 0 3.933275 1.74188 3.933275 3.933275 0 2.191396-1.741878 3.933276-3.933275 3.933276-2.191396 0-3.933275-1.74188-3.933275-3.933276 0-2.191395 1.741879-3.933275 3.933275-3.933275zm45.007902 0c2.191396 0 3.933275 1.74188 3.933275 3.933275 0 2.191396-1.741879 3.933276-3.933275 3.933276s-3.933275-1.74188-3.933275-3.933276c.05619-2.191395 1.741879-3.933275 3.933275-3.933275z")
@ -52,4 +52,4 @@ grid
+myrtille('git.yigitcolakoglu.com/', '0 0 64 64', "m64 17.5c-.1-4.1-1.4-5-2.4-5.1-10.4.6-16.6.8-22 .9v.3.3 11.6l-1.6-.9v-10.7-.3-.3c-5.8 0-10.8-.3-19.9-.8l-1.8-.1c-.5 0-1.2-.1-1.9-.1-.9-.1-2-.1-3.1-.2-3.1 0-6.1 1.3-8.2 3.4-2.2 2.2-3.2 5.4-3.1 9 .2 6 2.8 10.3 7.5 12.8 2.8 1.5 6.4 2.3 10.6 2.5.8 2.8 6.5 11.4 10.9 11.9h19c2.3-.2 6.9-2.2 11.5-13.6 2.8-6.8 4.6-15.3 4.5-20.6zm-47.7 16.8c-5.3-.7-10.1-2.5-11-9.5-.3-2.1.2-4 1.4-5.3s3.1-2 5.6-2h.2c.6 6.9 1.7 11 3.8 16.8zm30.5-4.5c1.4.7 2 2.4 1.3 3.7l-5.3 10.9c-.7 1.4-2.4 2-3.7 1.3l-10.9-5.3c-1.4-.7-2-2.4-1.3-3.7l5.3-10.9c.7-1.4 2.4-2 3.7-1.3l2 1-1.4 2.9c-.2 0-.4 0-.6.1-.9.3-1.4 1.4-1.1 2.3.1.2.2.4.3.5l-2.4 5c-.2 0-.4 0-.6.1-.9.3-1.4 1.4-1.1 2.3s1.4 1.4 2.3 1.1 1.4-1.4 1.1-2.3c-.1-.3-.2-.5-.4-.7l2.4-4.9c.3 0 .5 0 .8-.1l.6-.3c.1 0 .2.1.3.1 1.8.9 2.9 1.4 3.1 2 .3.8-.5 2.4-2 5.4v.1c-.2 0-.4 0-.7.1-.9.3-1.4 1.4-1.1 2.3s1.4 1.4 2.3 1.1 1.4-1.4 1.1-2.3c-.1-.2-.2-.4-.4-.6 0 0 0 0 0-.1 1.8-3.6 2.5-5.2 2.1-6.5-.4-1.1-1.6-1.7-3.8-2.8-.1 0-.2-.1-.3-.1 0-.2 0-.5-.1-.7s-.2-.4-.4-.6l1.1-2.9z")
+myrtille('protonmail.com/', '0 0 64 64', "M8 64V41l21.1 13.2a5.4 5.4 0 005.7 0L56 41v23H8zm0-39C8.3 11.3 18.7 0 32 0c13.43 0 23.9 10.9 24 24.836V35L36.4 48.874A7.8 7.8 0 0127.5 49L8 36V25zm10.006-4C18.218 14.7 24.2 9.6 32 9.68c7.865 0 14 4.8 14 11.32v8H18v-8h.006z")
+myrtille('drive.yigitcolakoglu.com/apps/calendar/dayGridMonth/now', '4 7 140 140', "M13.3,126.4V37.4c0-2.4,.9-4.5,2.6-6.3c1.7-1.8,3.8-2.6 6.2-2.6h8.8v-6.7c0-3.1,1.1-5.7,3.2-7.9c2.2-2.2,4.7-3.3,7.8-3.3h4.4c3,0 5.6,1.1,7.8,3.3c2.2,2.2,3.2,4.8,3.2,7.9v6.7h26.4v-6.7c0-3.1,1.1-5.7 3.2-7.9c2.2-2.2,4.7-3.3,7.8-3.3h4.4c3,0,5.6,1.1,7.8,3.3c2.2,2.2,3.2 4.8,3.2,7.9v6.7h8.8c2.4,0,4.4,.9,6.2,2.6c1.7,1.8,2.6,3.8,2.6,6.3v88.9c0 2.4-.9,4.5-2.6,6.3c-1.7,1.8-3.8,2.6-6.2,2.6H22.1c-2.4,0-4.4-.9-6.2-2.6C14.2,130.8 13.3,128.8,13.3,126.4z M22.1,126.4h96.8V55.2H22.1V126.4z M39.7,41.9c0,.6,.2,1.2 .6,1.6c.4,.4,.9,.6,1.6,.6h4.4c.6,0,1.2-.2,1.6-.6c.4-.4 .6-.9,.6-1.6v-20c0-.6-.2-1.2-.6-1.6c-.4-.4-.9-.6-1.6-.6h-4.4c-.6,0-1.2,.2-1.6 .6c-.4,.4-.6,1-.6,1.6V41.9z M92.5,41.9c0,.6,.2,1.2,.6,1.6c.4,.4,.9,.6 1.6,.6h4.4c.6,0,1.2-.2,1.6-.6c.4-.4 .6-.9,.6-1.6v-20c0-.6-.2-1.2-.6-1.6c-.4-.4-.9-.6-1.6-.6h-4.4c-.6 0-1.2,.2-1.6,.6c-.4,.4-.6,1-.6,1.6V41.9z")

+ 2
- 1
.local/src/dmenu/config.h View File

@ -10,8 +10,9 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"JoyPixels:pixelsize=8:antialias=true:autohint=true",
"CaskaydiaCove Nerd Font Mono:size=10",
"Symbola:pixelsize=16:antialias=true:autohint=true",
"JoyPixels:pixelsize=8:antialias=true:autohint=true",
};
static const char *prompt = "Select an option"; /* -p option; prompt to the left of input field */


+ 7
- 31
.local/src/dwm/keybinds.h View File

@ -46,32 +46,23 @@ static const char *notification[] = {"/home/yigit/.local/bin/dunst_toggle.sh", "
static const char *screensaver[] = {"/home/yigit/.local/bin/screensaver_toggle", "-t",NULL};
static const char *toolbelt[] = {"/home/yigit/.local/bin/toolbelt", NULL};
static const char *toolkit[] = {"/home/yigit/.local/bin/dmenu-toolkit", NULL};
static const char *bwmenu[] = {"/home/yigit/.local/bin/password_manager", NULL};
static const char *sessionload[] = {"/home/yigit/.local/bin/dmenu-sessions", NULL};
static const char *wallabag[] = {"/home/yigit/.local/bin/dmenu-wallabag", "-s", NULL};
static const char *wiki[] = {"/home/yigit/.local/bin/dmenu-arch", NULL};
static const char *grabcolor[] = {"/home/yigit/.local/bin/grabcolor", NULL};
static const char *wc[] = {"/home/yigit/.local/bin/dmenu-wc", NULL};
static const char *network_manager[] = {"/home/yigit/.local/bin/connman_dmenu", NULL};
static const char *ambient_sound[] = {"/home/yigit/.local/bin/dmenu-ambient", NULL};
static const char *killall[] = {"/home/yigit/.local/bin/dmenu-killall", NULL};
static const char *mconnect[] = {"/home/yigit/.local/bin/dmenu-mconnect"};
static const char *udevil[] = {"/home/yigit/.local/bin/dmenu-udevil"};
static const char *udevil_umount[] = {"/home/yigit/.local/bin/dmenu-udevil", "-u"};
static const char *genpwd[] = {"/home/yigit/.local/bin/genpwd", NULL};
static const char *trackpad[] = {"/home/yigit/.local/bin/toggle_touchpad.sh"};
static const char *bluetooth[] = {"/home/yigit/.local/bin/dmenu-bluetooth", NULL};
static const char *web[] = {"/home/yigit/.local/bin/dmenu-web", NULL};
static const char *readbook[] = {"/home/yigit/.local/bin/dmenu-books", NULL};
static const char *emoji[] = {"/home/yigit/.local/bin/dmenu-emoji", NULL};
static const char *xrandr[] = {"/home/yigit/.local/bin/dmenu-xrandr", NULL};
static const char *record[] = {"/home/yigit/.local/bin/dmenu-record", NULL};
static const char *edit[] = {"/home/yigit/.local/bin/dmenu-edit", NULL};
static const char *surf[] = {"/home/yigit/.local/bin/tabbed_surf", NULL};
static const char *youtube[] = {"/home/yigit/.local/bin/ytfzf_dmenu", NULL};
static const char *hamster[] = {"/home/yigit/.local/bin/dmenu-hamster", NULL};
/* commands */
static Key keys[] = {
@ -128,14 +119,9 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_t, spawn, {.v = trackpad} },
{ MODKEY, XK_x, spawn, {.v = lock } },
{ MODKEY|ShiftMask, XK_x, spawn, {.v = killall } },
{ MODKEY, XK_c, spawn, {.v = clipmenu } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = genpwd} },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = bluetooth } },
{ MODKEY|Mod1Mask, XK_n, spawn, {.v = network_manager} }, /*Spiral*/
{ MODKEY|ShiftMask, XK_a, spawn, {.v = ambient_sound } },
{ MODKEY|Mod1Mask, XK_k, spawn, {.v = keyboard} }, /*tiled*/
{ MODKEY|ShiftMask, XK_r, spawn, {.v = refresh} }, /*tiled*/
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
@ -150,21 +136,11 @@ static Key keys[] = {
{ MODKEY|ShiftMask|Mod1Mask, XK_s, togglesticky, { 0 } },
{ MODKEY, XK_Print, spawn, {.v = windowshot } },
{ MODKEY|Mod1Mask, XK_Print, spawn, {.v = selectshot } },
{ MODKEY|ShiftMask, XK_e, spawn, {.v = emoji } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = xrandr } },
{ MODKEY, XK_e, spawn, {.v = edit} },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = sessionload } },
{ MODKEY, XK_u, spawn, {.v = web} },
{ MODKEY, XK_r, spawn, {.v = readbook} },
{ MODKEY|Mod1Mask, XK_r, spawn, {.v = record } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = wallabag} },
{ MODKEY, XK_w, spawn, {.v = wiki} },
{ MODKEY, XK_t, spawn, {.v = toolbelt } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mconnect} },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = wc } },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = udevil} },
{ MODKEY|ShiftMask, XK_u, spawn, {.v = udevil_umount} },
{ MODKEY, XK_y, spawn, {.v = youtube} },
{ MODKEY|ShiftMask, XK_g, spawn, {.v = grabcolor} },
{ MODKEY|ShiftMask, XK_h, spawn, {.v = hamster } },
{ MODKEY, XK_t, spawn, {.v = toolkit } },
{ MODKEY, XK_s, togglescratch, {.ui = 0 } },
// { MODKEY|ShiftMask, XK_s, togglescratch, {.ui = 1 } },
{ MODKEY, XK_m, togglescratch, {.ui = 2 } },


+ 6
- 0
.local/src/dwm/rules.h View File

@ -24,14 +24,20 @@ static const Rule rules[] = {
{ "Brave-browser" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "Firefox" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "firefox" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "Chromium" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "chromium" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "tabbed-surf" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "bitwarden" , NULL , NULL , 1 << 6 , NULL , NULL , 0 , 0 , -1 },
{ "QtPass" , NULL , NULL , 1 << 6 , NULL , NULL , 0 , 0 , -1 },
{ "st-256color" , NULL , NULL , 1 << 0 , NULL , NULL , 1 , 0 , -1 },
{ "Tor Browser" , NULL , NULL , 1 << 1 , NULL , NULL , 0 , 0 , -1 },
{ "TelegramDesktop" , NULL , NULL , 1 << 8 , NULL , NULL , 0 , 0 , -1 },
{ "thunderbird" , NULL , NULL , 1 << 7 , NULL , NULL , 0 , 0 , -1 },
{ "zoom" , NULL , NULL , 1 << 5 , NULL , NULL , 0 , 0 , -1 },
{ "VirtualBox Manager" , NULL , NULL , 1 << 4 , NULL , NULL , 0 , 0 , -1 },
{ "VirtualBox Machine" , NULL , NULL , 1 << 4 , NULL , NULL , 0 , 0 , -1 },
{ "Microsoft Teams - Preview" , NULL , NULL , 1 << 5 , NULL , NULL , 0 , 0 , -1 },
{ "Journal" , NULL , NULL , 1 << 3 , NULL , NULL , 0 , 0 , -1 },
{ "Nemo" , NULL , NULL , 0 , 1 , "50% 50% 1200W 800H" , 0 , 0 , -1 },
{ "ranger" , NULL , NULL , 0 , 1 , "50% 50% 800W 560H" , 0 , 0 , -1 },
{ "lf" , NULL , NULL , 0 , 1 , "50% 50% 800W 560H" , 0 , 0 , -1 },


+ 2
- 0
.local/src/dwmblocks/config.h View File

@ -17,7 +17,9 @@ static Block blocks[] = {
{ "", PATH("keyboard"), 120, 24},
{ "", PATH("redshift"), 120, 29},
// { "", PATH("mpc"), 240, 29},
{ "", PATH("hamster"), 60, 31},
{ "", PATH("bluetooth"), 120, 26},
{ "", PATH("timer"), 5, 30},
{ "", PATH("mconnect"), 120, 20},
{ "", PATH("todo"), 120, 27},
{ "", PATH("nextcloud"), 600, 25},


BIN
.local/src/slock/explicit_bzero.o View File


BIN
.local/src/slock/slock View File


BIN
.local/src/slock/slock.o View File


+ 2
- 1
.local/src/st/config.h View File

@ -9,7 +9,8 @@
static char *font = "CaskaydiaCove Nerd Font Mono:pixelsize=16:antialias=true:autohint=true";
static char *font2[] = {
"Joypixels:pixelsize=16:antialias=true:autohint=true",
"Symbola:pixelsize=16:antialias=true:autohint=true",
"Joypixels:pixelsize=16:antialias=true:autohint=true"
};
char *iso14755_cmd = "dmenu -w \"$WINDOWID\" -p \"Enter unicode\"";


BIN
.local/src/st/st View File


BIN
.local/src/st/st.o View File


BIN
.local/src/st/x.o View File


BIN
.local/src/sxiv/sxiv View File


BIN
.local/src/xbanish/xbanish View File


+ 9
- 3
.profile View File

@ -15,7 +15,7 @@ export AWT_TOOLKIT=MToolkit
# Environment variables
export SHELL=/bin/zsh
export TERMINAL=/usr/local/bin/st
export BROWSER=firefox
export BROWSER=chromium
export EDITOR=nvim
export OPENER=xdg-open
export DEFAULT_RECIPIENT="yigitcolakoglu@hotmail.com"
@ -43,7 +43,7 @@ export NVM_DIR="$XDG_DATA_HOME"/nvm
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
export IMAPFILTER_CONFIG="$XDG_CONFIG_HOME/imapfilter/config.lua"
export VIMINIT="set nocp | source ${XDG_CONFIG_HOME:-$HOME/.config}/vim/vimrc"
# export VIMINIT="set nocp | source ${XDG_CONFIG_HOME:-$HOME/.config}/vim/vimrc"
export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history
export TASKDATA="$XDG_DATA_HOME"/task
export TASKRC="$XDG_CONFIG_HOME"/task/taskrc
@ -75,9 +75,14 @@ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$FLUTTER_HOME/bin:$PATH
export PATH="$PATH:/usr/lib/w3m:$HOME/.local/bin:$HOME/.gem/ruby/2.7.0/bin:$GOPATH/bin:$GOPATH/binexport:$XDG_DATA_HOME/cargo/bin/"
export PATH="$PATH:/usr/lib/w3m:$HOME/.local/bin:$HOME/.gem/ruby/2.7.0/bin:$GOPATH/bin:$GOPATH/binexport:$XDG_DATA_HOME/cargo/bin/:$XDG_DATA_HOME/questasim/questasim/linux_x86_64"
export CPATH=/usr/include/opencv4
export LM_LICENSE_FILE=27017@flexserv1.tudelft.nl
# Set zettelkasten directory
export ZK_NOTEBOOK_DIR=~/Projects/Neocortex/content
# Setup LF Icons (Doing this everytime lf start might cause some overhead)
LF_ICONS=$(sed ~/.config/lf/diricons \
-e '/^[ \t]*#/d' \
@ -108,3 +113,4 @@ if [ "$DISPLAY" = "" ] && [ "$(tty)" = /dev/tty1 ]; then
fi
exit
fi

Loading…
Cancel
Save