dgy
/
hexagons
Archived
1
0
Fork 0

hoy hice arroz

This commit is contained in:
deadguy 2019-04-14 12:53:12 -03:00
parent f8f3fdd56d
commit 647928ca0a
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
36 changed files with 677 additions and 409 deletions

View File

@ -8,12 +8,12 @@
*.color8: #555555
! red
*.color1: #cc241d
*.color1: #df312a
*.color9: #fb4934
! green
*.color2: #98971a
*.color10: #b8bb26
*.color10: #a6e22d
! yellow
*.color3: #d79921
@ -21,7 +21,7 @@
! blue
*.color4: #407ee7
*.color12: #407ee7
*.color12: #ae81ff
! magenta
*.color5: #cb5a80
@ -37,7 +37,7 @@
!URxvt.font: xft:sarasatermj:size=10
!URxvt.font: -t-cherry-medium-r-normal--13-120-96-96-c-100-iso8859-1
URxvt.font: xft:monaco:size=8
URxvt.font: xft:monaco:size=8,xft:blex mono nerd font:pixelsize=14
URxvt.boldFont:
URxvt.perl-ext-common: default,clipboard,url-select
URxvt.urlLauncher: /usr/bin/firefox -new-tab

View File

@ -72,10 +72,11 @@ bspc rule -a PatchWindow state=floating
bspc rule -a Nm-connection-editor state=floating
bspc rule -a Godot state=floating
bspc rule -a Pinentry state=floating
bspc rule -a URxvt:flota state=floating
bspc rule -a Termite:flota state=floating
bspc rule -a Toplevel state=floating
bspc rule -a Firefox state=floating
bspc rule -a VChar64 state=floating
bspc rule -a Lxappearance state=floating
# Otros
bspc rule -a Zathura state=tiled
@ -83,11 +84,8 @@ bspc rule -a Oblogout state=fullscreen, layer=above
bspc rule -a Firefox:Navigator state=tiled
bspc rule -a Firefox desktop='^2'
bspc rule -a URxvt:archi desktop='^3'
bspc rule -a Termite:archi desktop='^3'
bspc rule -a Termite:multi desktop='^1'
#bspc config external_rules_command "$HOME/.config/bspwm/external_rules.sh"
hsetroot -fill /home/deadguy/Pictures/wallpaper/minimalist-wallpaper-space_512674.jpg &
setbg &
unclutter &
urxvtd -q -o -f

View File

@ -1,7 +1,7 @@
[Settings]
gtk-application-prefer-dark-theme=1
gtk-cursor-theme-name=Alkano
gtk-theme-name=8089
gtk-theme-name=8088
gtk-icon-theme-name=ArchLabs-Light
gtk-font-name=IBM Plex Sans weight=453 9
gtk-cursor-theme-size=0

View File

@ -25,7 +25,7 @@ osd-margin-x="10"
osd-margin-y="10"
osd-bar-align-x="0"
osd-bar-align-y="0.75"
msg-level=all=fatal,ao=error
#msg-level=all=fatal,ao=error
term-osd-bar
term-playing-msg='${filename}'

View File

@ -35,15 +35,15 @@ alternative_header_second_line_format = "{{$8%a}{$8 - %b$9}{$8 (%y)$8}}|{%D$9}"
# SONG
#song_list_format = "$4 %a $R $8 %t $5 %n $6 %l"
song_list_format = "{$5 $8 %t}|{$2►$2 <untitled>}|{$5►$8 %f} $5$R{$4 %a}|{$8 <unknown artist>} {$6 %l} "
song_list_format = "$5%n {$8%t}|{$2►$2<untitled>}|{$5►$8 %f} $5$R{$4%a}|{$8<unknown artist>} {$7 %l}"
song_status_format = {$8%t}{$8 "%b"}|{$6 "%a"}$8
#song_status_format = "{$5%A$9 - }$3%b"
song_window_title_format = "{%a - }{%t}{ [%b]}|{%f}"
song_columns_list_format = "(30)[blue]{a} (40)[red]{t|f} (30)[cyan]{br} (4f)[green]{lr}"
# PREFIX
now_playing_prefix = "$b >>"
now_playing_suffix = " <<$/b"
now_playing_prefix = "$6>> "
now_playing_suffix = " $6<<"
selected_item_prefix = "$9"
selected_item_suffix = "$9"
current_item_prefix = "$(white)$r"

42
.config/newsboat/config Normal file
View File

@ -0,0 +1,42 @@
always-display-description true
display-article-progress yes
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key d pagedown
bind-key u pageup
bind-key l open
bind-key h quit
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
bind-key U show-urls
bind-key x pb-delete
bind-key ^t next-unread
color listnormal cyan default
color listfocus black yellow standout bold
color listnormal_unread blue default
color listfocus_unread yellow default bold
color info red black bold
color article cyan default
browser linkhandler
macro , open-in-browser
macro t set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
macro w set browser "w3m"; open-in-browser ; set browser linkhandler
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler
# vim: ft=dosini cms=#%s

39
.config/newsboat/urls Normal file
View File

@ -0,0 +1,39 @@
-------COMICS------------
https://www.questionablecontent.net/QCRSS.xml "~Questionable Content"
http://www.empoweredcomic.com/comic/rss "~Empowered"
-------YOUTUBE-----------
https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg "~DistroTube"
https://www.youtube.com/feeds/videos.xml?channel_id=UCu8YylsPiu9XfaQC74Hr_Gw "~Seth's Bike Hacks"
https://www.youtube.com/feeds/videos.xml?channel_id=UCXKYjkimgemQuuNP-JRTz2Q "~Mundo Ciclismo TV"
https://www.youtube.com/feeds/videos.xml?user=tvmultimediacine "~Ruta Cleta"
https://www.youtube.com/feeds/videos.xml?user=GRGE2MB "~GRGE"
https://www.youtube.com/feeds/videos.xml?channel_id=UCSBUDr3oUg9y7YS1TZL_Jeg "~Wubbix"
https://www.youtube.com/feeds/videos.xml?user=olbaidoinomed "~Olbaid"
https://www.youtube.com/feeds/videos.xml?channel_id=UCq297H7Ca98HlB5mVFHGSsQ "~Reaper Mania"
https://www.youtube.com/feeds/videos.xml?channel_id=UCMUHt6JzCMsdtvkaJpU3KXw "~Reaper TV"
-------REDDIT------------
https://www.reddit.com/r/unixporn.rss "~Unixporn"
https://www.reddit.com/r/zsh.rss "~Zsh"
https://www.reddit.com/r/bspwm.rss "~Bspwm"
https://www.reddit.com/r/linuxaudio.rss "~Linux Audio"
https://www.reddit.com/r/vimporn.rss "~Vim Porn"
https://www.reddit.com/r/unixart.rss "~Unix Art"
https://www.reddit.com/r/vim.rss "~Vim"
https://www.reddit.com/r/commandline.rss "~REDDIT: r/commandline"
https://www.reddit.com/r/awesomewm.rss "~Awesome WM"
https://www.reddit.com/r/learnprogramming.rss "~Learn Programming"
https://www.reddit.com/r/chiptunes.rss "~Chiptunes"
https://www.reddit.com/r/jungle.rss "~Jungle"
https://www.reddit.com/r/breakcore.rss "~Breakcore"
https://www.reddit.com/r/vaporwave.rss "~Vaporwave"
https://www.reddit.com/r/outrun.rss "~OutRun"
https://www.reddit.com/r/algorave.rss "~Algorave"
https://www.reddit.com/r/livecoding.rss "~Livecoding"
https://www.reddit.com/r/argentina.rss "~Argentina"

View File

@ -21,14 +21,13 @@ elseif executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
endif
" }}}
" Plugins {{{
call plug#begin('~/.config/nvim/plugged')
Plug 'junegunn/vim-plug'
" UI
Plug 'NLKNguyen/papercolor-theme'
Plug 'junegunn/seoul256.vim'
Plug 'zefei/vim-wintabs'
Plug 'jiangmiao/auto-pairs'
"Plug 'jiangmiao/auto-pairs'
" Languages
Plug 'lervag/vimtex', { 'for': 'tex' }
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
@ -41,16 +40,15 @@ Plug 'Shougo/neco-vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
" Navigation
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
"Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
Plug 'dylanaraps/fff.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug '/usr/bin/fzf'
Plug 'junegunn/fzf.vim'
" Modes
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
"Plug 'chrisbra/vim-diff-enhanced'
" Python
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
"Plug 'hkupty/iron.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'jpalardy/vim-slime'
Plug 'zchee/deoplete-jedi'
Plug 'autozimu/LanguageClient-neovim', {
@ -59,7 +57,6 @@ Plug 'autozimu/LanguageClient-neovim', {
\ }
call plug#end()
" }}}
" Options {{{
" Search down into subfolders
" Provides tab-completion for all file-related tasks
@ -107,7 +104,6 @@ set foldenable " Fold by default
set foldlevelstart=10
set foldnestmax=10 " Deepest fold is 10 levels
set foldmethod=marker " Markers are used to specify folds.
"set completeopt=noinsert,menu,menuone
set completeopt-=preview
set completefunc=LanguageClient#complete
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
@ -170,7 +166,6 @@ let mapleader="\<SPACE>"
let maplocalleader=","
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
" }}}
" Statusline {{{
function! GitBranch()
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
@ -216,7 +211,6 @@ set statusline+=\ %l:%c\ (%p%%)
set statusline+=%#Keyword#
set statusline+=\ %{winnr()}
" }}}
" Read-Only files {{{
if &readonly
set laststatus=0
@ -228,23 +222,9 @@ if &readonly
let g:ale_disabled
endif
" }}}
" Tweaks for browsing {{{
" - :edit a folder to open a file browser
" - <CR>/v/t to open in an h-split/v-split/tab
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
let g:netrw_winsize=25
" }}}
" Autopairs {{{
let g:AutoPairs = {'(':')', '[':']', '<':'>', '{':'}',"'":"'",'"':'"', '`':'`'}
"let g:AutoPairs = {'(':')', '[':']', '<':'>', '{':'}',"'":"'",'"':'"', '`':'`'}
" }}}
" {{{ Ale
let g:ale_linters_explicit = 1
let g:ale_change_sign_column_color = 1
@ -265,7 +245,6 @@ let g:ale_pattern_options = {
nmap <silent> <F10> <Plug>(ale_previous_wrap)
nmap <silent> <F11> <Plug>(ale_next_wrap)
" }}}
" Deoplete {{{
let g:deoplete#enable_at_startup = 1
call deoplete#custom#option('max_list', 100000)
@ -283,29 +262,31 @@ let g:deoplete#enable_smart_case = 1
let g:context_filetype#same_filetypes = {}
let g:context_filetype#same_filetypes._ = '_'
"}}}
" NerdTree {{{
autocmd StdinReadPre * let s:std_in=1
let NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.pyo$', '\.db$', '\.sqlite$', '.o$', 'bower_components', 'node_modules', '__pycache__']
let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
let NERDTreeNaturalSort = 1
let NERDTreeShowHidden=1
let NERDTreeWinPos=1
let NERDTreeRespectWildIgnore = 1
let NERDTreeMinimalUI=1
let NERDTreeDirArrows = 1
let NERDTreeCascadeSingleChildDir=1
let NERDTreeCascadeOpenSingleChildDir=1
let NERDTreeQuitOnOpen = 1
let NERDTreeHijackNetrw = 0
let NERDTreeAutoCenter = 1
let g:NERDTreeDirArrowExpandable = '↠'
let g:NERDTreeDirArrowCollapsible = '↡'
nnoremap <silent> <F2> :NERDTreeToggle<CR>
nnoremap <silent> <F3> :NERDTreeFind<CR>
"autocmd StdinReadPre * let s:std_in=1
"let NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.pyo$', '\.db$', '\.sqlite$', '.o$', 'bower_components', 'node_modules', '__pycache__']
"let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
"let NERDTreeNaturalSort = 1
"let NERDTreeShowHidden=1
"let NERDTreeWinPos=1
"let NERDTreeRespectWildIgnore = 1
"let NERDTreeMinimalUI=1
"let NERDTreeDirArrows = 1
"let NERDTreeCascadeSingleChildDir=1
"let NERDTreeCascadeOpenSingleChildDir=1
"let NERDTreeQuitOnOpen = 1
"let NERDTreeHijackNetrw = 0
"let NERDTreeAutoCenter = 1
"let g:NERDTreeDirArrowExpandable = '↠'
"let g:NERDTreeDirArrowCollapsible = '↡'
"
"nnoremap <silent> <F2> :NERDTreeToggle<CR>
"nnoremap <silent> <F3> :NERDTreeFind<CR>
" }}}
" FFF {{{
nnoremap <silent> <F2> :F<CR>
let g:fff#split = "30vnew"
"}}}
" Tmux navigator {{{
let g:tmux_navigator_no_mappings = 1
let g:tmux_navigator_save_on_switch = 1
@ -315,7 +296,6 @@ nnoremap <silent> M-Up :TmuxNavigateUp<cr>
nnoremap <silent> M-Right :TmuxNavigateRight<cr>
nnoremap <silent> M-Tab :TmuxNavigatePrevious<cr>
" }}}
" Fzf {{{
" use bottom positioned 30% height bottom split
let g:fzf_layout = { 'down': '~30%' }
@ -360,7 +340,6 @@ if !&diff
nnoremap <C-b> :Buffers<CR>
endif
" }}}
" Goyo {{{
function! s:goyo_enter()
let b:quitting = 0
@ -383,19 +362,10 @@ endfunction
autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd! User GoyoLeave call <SID>goyo_leave()
" }}}
" Enhanced Diff {{{
" started In Diff-Mode set diffexpr (plugin not loaded yet)
""if &diff
"" let &diffexpr='EnhancedDiff#Diff("git diff", "--diff-algorithm=patience")'
""endif
" }}}
" Semshi {{{
let g:semshi#mark_selected_nodes = 2
let g:semshi#error_sign = v:false
" }}}
" Slime {{{
let g:slime_target = 'tmux'
let g:slime_python_ipython = 1
@ -403,7 +373,6 @@ let g:slime_paste_file = '~/.slime_paste'
let g:slime_default_config = {"socket_name": "default", "target_pane": ":.2"}
let g:slime_dont_ask_default = 1
" }}}
" LSP {{{
let g:LanguageClient_serverCommands = {
\ 'python': ['/usr/bin/pyls'],
@ -413,20 +382,11 @@ let g:LanguageClient_serverCommands = {
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
" }}}
" Papercolor {{{
set background=dark
let g:PaperColor_Theme_Options = {
\ 'theme': {
\ 'default.dark': {
\ 'transparent_background': 1,
\ 'allow_italic': 1
\ }
\ }
\ }
colorscheme PaperColor
" Seoul 256 {{{
let g:seoul256_srgb = 1
let g:seoul256_background = 233
colo seoul256
" }}}
" Wintabs {{{
let g:wintabs_ui_active_higroup = 'TabLineSel'
let g:wintabs_switchbuf='useopen,usetab'
@ -451,7 +411,6 @@ nnoremap <silent> <M-,> :WintabsClose<CR>
nnoremap <silent> <C-l> :WintabsNext<CR>
nnoremap <silent> <C-h> :WintabsPrevious<CR>
" }}}
" AutoCommands {{{
if !exists("autocommands_loaded") && has("autocmd")
let autocommands_loaded = 1
@ -474,11 +433,7 @@ if !exists("autocommands_loaded") && has("autocmd")
aug END
aug terminal_stuff
"au BufWinEnter,WinEnter term://* startinsert
"au BufEnter * if &buftype == 'terminal' | setlocal statusline=%{b:term_title}
"au BufLeave term://* stopinsert
au TermOpen * setlocal nonumber norelativenumber
"au TermOpen * setlocal statusline=%{b:term_title}
aug END
augroup CloseLoclistWindowGroup
@ -514,13 +469,15 @@ if !exists("autocommands_loaded") && has("autocmd")
aug END
endif
" }}}
"Mappings {{{
" Spell checking
nnoremap <F6> :setlocal spell! spelllang=es<CR>
nnoremap <F7> :setlocal spell! spelllang=en<CR>
nnoremap <F8> :set nospell<CR>
nnoremap <F9> :!w<Enter>:!pdflatex <C-r>%<Enter>
" LaTeX
"nnoremap <F9> :!w<Enter>:!pdflatex <C-r>%<Enter>
nnoremap <F9> :w! \| !compiler <c-r>%<CR>
" Plug
nnoremap <leader>pi :PlugInstall<CR>
@ -670,7 +627,6 @@ tnoremap <M-l> <C-\><C-n><C-w>l
:command! Qa qa
:command! QA qa
" }}}
" Stuff i'll probably use if i remember to {{{
" Don't close window when deleting a buffer
command! Bclose call <SID>BufcloseCloseIt()

View File

@ -10,6 +10,14 @@ from ranger.api.commands import Command
from ranger.core.loader import CommandLoader
class paste_as_root(Command):
def execute(self):
if self.fm.do_cut:
self.fm.execute_console('shell sudo mv %c .')
else:
self.fm.execute_console('shell sudo cp -r %c .')
# https://github.com/ranger/ranger/wiki/Integrating-File-Search-with-fzf
# add this to your ~/.config/ranger/rc.conf: map <C-f> fzf_select
class select(Command):

235
.config/ranger/devicons.py Normal file
View File

@ -0,0 +1,235 @@
#!/usr/bin/python
# coding=UTF-8
# These glyphs, and the mapping of file extensions to glyphs
# has been copied from the vimscript code that is present in
# https://github.com/ryanoasis/vim-devicons
import re;
import os;
# all those glyphs will show as weird squares if you don't have the correct patched font
# My advice is to use NerdFonts which can be found here:
# https://github.com/ryanoasis/nerd-fonts
file_node_extensions = {
'7z' : '',
'ai' : '',
'apk' : '',
'avi' : '',
'bat' : '',
'bmp' : '',
'bz2' : '',
'c' : '',
'c++' : '',
'cab' : '',
'cbr' : '',
'cbz' : '',
'cc' : '',
'clj' : '',
'cljc' : '',
'cljs' : '',
'coffee' : '',
'conf' : '',
'cp' : '',
'cpio' : '',
'cpp' : '',
'css' : '',
'cxx' : '',
'd' : '',
'dart' : '',
'db' : '',
'deb' : '',
'diff' : '',
'dump' : '',
'edn' : '',
'ejs' : '',
'epub' : '',
'erl' : '',
'exe' : '',
'f#' : '',
'fish' : '',
'flac' : '',
'flv' : '',
'fs' : '',
'fsi' : '',
'fsscript' : '',
'fsx' : '',
'gem' : '',
'gif' : '',
'go' : '',
'gz' : '',
'gzip' : '',
'hbs' : '',
'hrl' : '',
'hs' : '',
'htm' : '',
'html' : '',
'ico' : '',
'ini' : '',
'java' : '',
'jl' : '',
'jpeg' : '',
'jpg' : '',
'js' : '',
'json' : '',
'jsx' : '',
'less' : '',
'lha' : '',
'lhs' : '',
'log' : '',
'lua' : '',
'lzh' : '',
'lzma' : '',
'm4a' : '',
'markdown' : '',
'md' : '',
'mkv' : '',
'ml' : 'λ',
'mli' : 'λ',
'mov' : '',
'mp3' : '',
'mp4' : '',
'mpeg' : '',
'mpg' : '',
'mustache' : '',
'ogg' : '',
'pdf' : '',
'php' : '',
'pl' : '',
'pm' : '',
'png' : '',
'psb' : '',
'psd' : '',
'py' : '',
'pyc' : '',
'pyd' : '',
'pyo' : '',
'rar' : '',
'rb' : '',
'rc' : '',
'rlib' : '',
'rpm' : '',
'rs' : '',
'rss' : '',
'scala' : '',
'scss' : '',
'sh' : '',
'slim' : '',
'sln' : '',
'sql' : '',
'styl' : '',
'suo' : '',
't' : '',
'tar' : '',
'tgz' : '',
'ts' : '',
'twig' : '',
'vim' : '',
'vimrc' : '',
'wav' : '',
'webm' : '',
'xml' : '',
'xul' : '',
'xz' : '',
'yml' : '',
'zip' : '',
'zsh' : '',
'xcf' : '',
'tex' : '',
'txt' : '',
'lock' : '',
'h' : '',
'o' : '',
'blend' : '',
'1' : '',
'jar' : '',
'desktop' : '',
'mk' : '',
'torrent' : '',
'added' : '',
'pem' : '',
'svg' : '',
'scd' : '',
'theme' : '',
'iso' : '',
'mid' : '',
'url' : '',
'part' : '',
'nfo' : '',
'pd' : '',
'ttf' : '',
'otf' : '',
'bdf' : '',
'pcf' : '',
}
dir_node_exact_matches = {
# English
'.git' : '',
'Desktop' : '',
'Documents' : '',
'Downloads' : '',
'Music' : '',
'Pictures' : '',
'Public' : '',
'Templates' : '',
'Videos' : '',
'.mail' : '',
'.cache' : '',
'.config' : '',
'trash' : '',
'Trash' : '',
'bin' : '',
'hexagons' : '',
}
file_node_exact_matches = {
'.Xdefaults' : '',
'.Xresources' : '',
'.bashprofile' : '',
'.zprofile' : '',
'.bashrc' : '',
'.zshrc' : '',
'.zshenv' : '',
'.dmrc' : '',
'.ds_store' : '',
'.fasd' : '',
'.gitconfig' : '',
'.gitignore' : '',
'.jack-settings' : '',
'.mime.types' : '',
'.nvidia-settings-rc' : '',
'.pam_environment' : '',
'.profile' : '',
'.recently-used' : '',
'.selected_editor' : '',
'.vimrc' : '',
'.xinputrc' : '',
'.xserverrc' : '',
'config' : '',
'dropbox' : '',
'exact-match-case-sensitive-1.txt' : 'X1',
'exact-match-case-sensitive-2' : 'X2',
'favicon.ico' : '',
'gruntfile.coffee' : '',
'gruntfile.js' : '',
'gruntfile.ls' : '',
'gulpfile.coffee' : '',
'gulpfile.js' : '',
'gulpfile.ls' : '',
'ini' : '',
'ledger' : '',
'license' : '',
'mimeapps.list' : '',
'node_modules' : '',
'procfile' : '',
'react.jsx' : '',
'user-dirs.dirs' : '',
'Makefile' : '',
'TODO' : '',
'LICENSE' : '',
'COPYING' : '',
}
def devicon(file):
if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '')
return file_node_exact_matches.get(file.relative_path, file_node_extensions.get(file.extension, ''))

View File

@ -15,11 +15,11 @@ set vcs_backend_hg disabled
set vcs_backend_bzr disabled
set vcs_backend_svn disabled
set preview_images true
set preview_images_method w3m
set preview_images_method ueberzug
set w3m_delay 0.05
set unicode_ellipsis true
set show_hidden_bookmarks true
set colorscheme jungle
set colorscheme default
set preview_files true
set preview_directories true
set collapse_preview true
@ -31,6 +31,7 @@ set dirname_in_tabs true
set mouse_enabled true
set display_size_in_main_column true
set display_size_in_status_bar true
set display_free_space_in_status_bar true
set display_tags_in_all_columns true
set update_title true
set update_tmux_title true
@ -50,7 +51,7 @@ set sort mtime
set sort_reverse false
set sort_case_insensitive true
set sort_directories_first true
set sort_unicode false
set sort_unicode true
set xterm_alt_key false
set cd_bookmarks true
set cd_tab_case sensitive
@ -65,6 +66,7 @@ set one_indexed true
set save_tabs_on_exit false
set wrap_scroll true
set global_inode_type_filter
set size_in_bytes false
# == Command Aliases in the Console
alias e edit
@ -96,6 +98,8 @@ map <C-c> abort
map <esc> change_mode normal
map ~ set viewmode!
map <A-j> scroll_preview 1
map <A-k> scroll_preview -1
map i display_file
map ? help
map W display_log
@ -107,9 +111,11 @@ map ! console shell%space
map @ console -p6 shell %%s
map # console shell -p%space
map x chain draw_possible_programs; console open_with%%space
map f console find%space
map fi console find%space
map cd console cd%space
map <C-p> chain console; eval fm.ui.console.history_move(-1)
# Change the line mode
map lmf linemode filename
map lmi linemode fileinfo
@ -195,6 +201,7 @@ map gl cd -r .
map gL cd -r %f
map gv cd ~/Videos/Learning
map gp cd ~/Pictures
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
# Tabs
map <C-n> eval fm.tab_new('%d')
@ -249,6 +256,7 @@ map pl paste_symlink relative=False
map pL paste_symlink relative=True
map phl paste_hardlink
map pht paste_hardlinked_subtree
map pr paste_as_root
map dD console delete
map Tm shell gio trash -f %s
@ -321,6 +329,21 @@ map zu set autoupdate_cumulative_size!
map zv set use_preview_script!
map zf console filter -s%space
# Filter stack
map .n console filter_stack add name%space
map .m console filter_stack add mime%space
map .d filter_stack add type d
map .f filter_stack add type f
map .l filter_stack add type l
map .| filter_stack add or
map .& filter_stack add and
map .! filter_stack add not
map .r console filter_stack rotate
map .c filter_stack clear
map .* filter_stack decompose
map .p filter_stack pop
map .. filter_stack show
# Bookmarks
map `<any> enter_bookmark %any
map '<any> enter_bookmark %any
@ -464,8 +487,8 @@ map X shell extraer %f
map Zt shell tar -cvzf %f.tar.gz %f
map Zz shell apack %f.zip %f
map Zb shell apack --format=zip %f.cbz %f
map bg shell hsetroot -fill %f
map C shell killall w3mimgdisplay && convert -rotate 90 %s %s
map bg shell setbg %f
map C shell convert -rotate 90 %s %s
map <C-f> select
map <C-l> locate
map <C-b> bring
@ -497,3 +520,5 @@ map Yv shell cp -r %s ~/Videos/
map Ym shell cp -r %s ~/Music/
map Yb shell cp -r %s ~/bin/
map Yh shell cp -r %s ~/
default_linemode devicons

View File

@ -26,7 +26,7 @@ IFS=$'\n'
# Script arguments
FILE_PATH="${1}" # Full path of the highlighted file
PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
#PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
@ -83,11 +83,18 @@ handle_extension() {
lynx -dump -- "${FILE_PATH}" && exit 5
elinks -dump "${FILE_PATH}" && exit 5
;; # Continue with next handler on failure
esac
# JSON
json)
jq --color-output . "${FILE_PATH}" && exit 5
python -m json.tool -- "${FILE_PATH}" && exit 5
;;
esac
}
handle_image() {
local mimetype="${1}"
local DEFAULT_SIZE="1366x768"
local mimetype="${1}"
case "${mimetype}" in
# SVG
@ -126,6 +133,27 @@ handle_image() {
-- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
&& exit 6 || exit 1;;
# Font
application/font*|application/*opentype)
preview_png="/tmp/$(basename "${IMAGE_CACHE_PATH%.*}").png"
if fontimage -o "${preview_png}" \
--pixelsize "120" \
--fontname \
--pixelsize "80" \
--text " ABCDEFGHIJKLMNOPQRSTUVWXYZ " \
--text " abcdefghijklmnopqrstuvwxyz " \
--text " 0123456789.:,;(*!?') ff fl fi ffi ffl " \
--text " The quick brown fox jumps over the lazy dog. " \
"${FILE_PATH}";
then
convert -- "${preview_png}" "${IMAGE_CACHE_PATH}" \
&& rm "${preview_png}" \
&& exit 6
else
exit 1
fi
;;
# Preview archives using the first image inside.
# (Very useful for comic book collections for example.)
# application/zip|application/x-rar|application/x-7z-compressed|\
@ -184,7 +212,7 @@ handle_mime() {
fi
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
--style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" && exit 5
pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
# pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
exit 2;;
# Image

View File

@ -52,19 +52,19 @@ super + {_,shift} + i
# Run Applications
super + {t,b,v,q,x,c}
{subl,firefox,pavucontrol,oblogout,termite,kal}
{subl,firefox,pavucontrol,oblogout,termite,gsimplecal}
super + z
termite --name=multi -e termux
super + {n,m}
urxvtc -name flota -e {nmtui,bmenu}
termite --name=flota -e {nmtui,brandr}
super + e
urxvtc -e neomutt
termite -e neomutt
super + r
urxvtc -name archi -e ranger
termite --name=archi -e ranger
super + {space,s}
rofi -show {drun,window}
@ -73,7 +73,7 @@ ctrl + alt + x
xkill
ctrl + alt + z
urxvtc -name flota
termite --name=flota
Print
maim -u ~/Pictures/scrot/$(date +%s).png && notify-send -u low -t 3000 'Screen captured'
@ -81,8 +81,8 @@ Print
super + F1
notify-send -t 5000 "$(date +'%A %d de %B %H:%M')"
super + {F2,F3,F4,F5}
{pila,tapa,actualizar,notifocus}
super + {F2,F3,F4,F5,F6,F7}
{pila,tapa,actualizar,notifocus,grabar,corte}
super + ctrl + plus
xzoom
@ -91,8 +91,11 @@ super + ctrl + plus
XF86Audio{RaiseVolume,LowerVolume,Mute}
pavolume {volup,volddown,mutetoggle}
XF86Audio{Prev,Next,Play}
mpc -q {prev,next,toggle}
XF86Audio{Prev,Next}
mpc -q {prev,next}
XF86AudioPlay
mpc -q toggle && tapa
XF86MonBrightness{Down,Up}
xbacklight {-dec 5,-inc 5} && dunstify -u low -t 3000 -r 90210 " $(printf %.0f%% $(xbacklight -get))"
xbacklight {-dec 5,-inc 5} && dunstify -u low -t 3000 -r 90210 " $(printf %.0f%% $(xbacklight -get))"

View File

@ -1,9 +1,20 @@
#!/bin/sh
readonly KEY="$1";
# Example for $XDG_CONFIG_HOME/sxiv/exec/key-handler
# Called by sxiv(1) after the external prefix key (C-x by default) is pressed.
# The next key combo is passed as its first argument. Passed via stdin are the
# images to act upon, one path per line: all marked images, if in thumbnail
# mode and at least one image has been marked, otherwise the current image.
# sxiv(1) blocks until this script terminates. It then checks which images
# have been modified and reloads them.
# The key combo argument has the following form: "[C-][M-][S-]KEY",
# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
rotate() {
degree="$1"
tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do
tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do
case "$(file -b -i "$file")" in
image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;;
*) mogrify -rotate "$degree" "$file" ;;
@ -11,11 +22,11 @@ rotate() {
done
}
case "$KEY" in
"C-b") tr '\n' '\0' | xargs -0 hsetroot -fill ;;
"C-c") tr '\n' ' ' | xsel -i ;;
case "$1" in
"C-b") tr '\n' '\0' | xargs -0 setbg & ;;
"C-c") tr '\n' ' ' | xsel -i ;;
"C-g") tr '\n' '\0' | xargs -0 gimp & ;;
"C-d") tr '\n' '\0' | xargs -0 gio trash -f ;;
"C-d") tr '\n' '\0' | xargs -0 rm ;;
"C-comma") rotate 270 ;;
"C-period") rotate 90 ;;
"C-minus") rotate 180 ;;

View File

@ -12,9 +12,9 @@ clickable_url = true
scrollback_lines = -10000
search_wrap = true
scrollbar = off
#font = Sarasa Term J 10
#font = Tamzen 11
font = Monaco Regular 8
#font = Tamzen, Migu 1M Regular 10.85
font = BlexMono Nerd Font, Migu 1M 9
#font = Monaco Regular 8
# "system", "on" or "off"
cursor_blink = off
@ -42,24 +42,24 @@ cursor = #d3d7cf
background = #080808
# black
color0 = #1b1b1b
color0 = #222222
color8 = #555555
# red
color1 = #cc241d
color9 = #fb4934
color1 = #df312a
color9 = #d68787
# green
color2 = #98971a
#green
color2 = #407e4a
color10 = #b8bb26
# yellow
color3 = #d79921
color3 = #d49b41
color11 = #fabd2f
# blue
color4 = #407ee7
color12 = #407ee7
color4 = #008bbd
color12 = #0474a7
# magenta
color5 = #cb5a80
@ -70,8 +70,8 @@ color6 = #5d879c
color14 = #8be9fd
# white
color7 = #9a9a9a
color15 = #e6e6e6
color7 = #c8c8c8
color15 = #e0e0e0
[hints]
padding = 4

View File

@ -1,89 +1,97 @@
#!/usr/bin/perl
# Youtube Viewer 3.2.8 - configuration file
# Youtube Viewer 3.5.4 - configuration file
our $CONFIG = {
auto_captions => 0,
autohide_watched => 0,
cache_dir => "/home/deadguy/.cache/youtube-viewer",
captions_dir => "/tmp",
clobber => 0,
colors => 1,
combine_multiple_videos => 0,
confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef,
copy_caption => 0,
dash_mp4_audio => 0,
dash_support => 1,
debug => 0,
download_and_play => 0,
download_in_parallel => 0,
download_with_wget => 0,
downloads_dir => ".",
env_proxy => 1,
fat32safe => 0,
fullscreen => 0,
get_captions => 1,
get_term_width => 1,
highlight_color => "bold",
highlight_watched => 0,
history => 0,
history_file => "/home/deadguy/.config/youtube-viewer/history.txt",
history_limit => 10000,
hl => "en_US",
http_proxy => undef,
interactive => 1,
keep_original_video => 0,
maxResults => 20,
order => undef,
page => 1,
publishedAfter => undef,
publishedBefore => undef,
regionCode => undef,
remove_played_file => 0,
resolution => "original",
results_fixed_width => 0,
results_with_colors => 1,
results_with_details => 1,
safeSearch => undef,
skip_if_exists => 0,
srt_languages => ["en", "es"],
subscriptions_order => "relevance",
thousand_separator => ",",
video_filename_format => "*FTITLE*.*FORMAT*",
video_player_selected => "mpv",
video_players => {
mplayer => {
arg => "-prefer-ipv4 -really-quiet -title *TITLE*",
audio => "-audiofile *AUDIO*",
cmd => "mplayer",
fs => "-fs",
novideo => "-novideo",
srt => "-sub *SUB*",
},
mpv => {
arg => "--really-quiet --title *TITLE* --no-ytdl",
audio => "--audio-file *AUDIO*",
cmd => "/usr/bin/mpv",
fs => "--fullscreen",
novideo => "--no-video",
srt => "--sub-file *SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*",
audio => "--input-slave *AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf dummy --novideo",
srt => "--sub-file *SUB*",
},
auto_captions => 0,
autohide_watched => 0,
cache_dir => "/home/deadguy/.cache/youtube-viewer",
captions_dir => "/tmp",
clobber => 0,
colors => 1,
comments_order => "time",
confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef,
copy_caption => 0,
custom_layout => 0,
custom_layout_format => "*NO*. *TITLE* (*AUTHOR*) (*RATING*) [*TIME*]\\n",
dash_mp4_audio => 0,
dash_support => 1,
debug => 0,
download_and_play => 0,
download_in_parallel => 0,
download_with_wget => 0,
downloads_dir => ".",
env_proxy => 1,
fat32safe => 0,
ffmpeg_cmd => "/usr/bin/ffmpeg",
fullscreen => 0,
get_captions => 1,
get_term_width => 1,
highlight_color => "bold",
highlight_watched => 0,
history => 0,
history_file => "/home/deadguy/.config/youtube-viewer/history.txt",
history_limit => 10000,
hl => "en_US",
http_proxy => undef,
interactive => 1,
keep_original_video => 0,
maxResults => 20,
merge_into_mkv => 1,
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
merge_with_captions => 1,
order => undef,
page => 1,
prefer_mp4 => 0,
publishedAfter => undef,
publishedBefore => undef,
regionCode => undef,
remove_played_file => 0,
resolution => "original",
results_fixed_width => 0,
results_with_colors => 1,
results_with_details => 1,
safeSearch => undef,
skip_if_exists => 0,
srt_languages => ["en", "es"],
subscriptions_order => "relevance",
thousand_separator => ",",
video_filename_format => "*FTITLE*.*FORMAT*",
video_player_selected => "mpv",
video_players => {
mplayer => {
arg => "-prefer-ipv4 -really-quiet -title *TITLE*",
audio => "-audiofile *AUDIO*",
cmd => "mplayer",
fs => "-fs",
novideo => "-novideo",
srt => "-sub *SUB*",
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
videoSyndicated => undef,
youtube_video_url => "http://www.youtube.com/watch?v=%s",
mpv => {
arg => "--really-quiet --title *TITLE* --no-ytdl",
audio => "--audio-file *AUDIO*",
cmd => "/usr/bin/mpv",
fs => "--fullscreen",
novideo => "--no-video",
srt => "--sub-file *SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*",
audio => "--input-slave *AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf dummy --novideo",
srt => "--sub-file *SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
videoSyndicated => undef,
wget_cmd => "wget",
youtube_video_url => "http://www.youtube.com/watch?v=%s",
}

View File

@ -23,15 +23,16 @@ alias surfraw='surfraw -browser=$BROWSER'
alias foxy='FoxDot & disown'
alias bm='bashmount'
alias kat='cat'
alias nb='newsboat'
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
alias chmod='chmod -v'
alias chown='chown -v'
alias mv='amv -giv'
alias rmdir='rmdir -v'
alias rm='rm -Irv'
alias mkdir='mkdir -pv'
alias cp='acp -graiv'
alias rm='rm -Iv'
alias ln='ln -iv'
alias rename='rename -v'
alias mount='mount -v | column -t'
@ -73,4 +74,5 @@ alias path='echo -e ${PATH//:/\\n}'
alias compare='grep -nFxvf'
alias pwn='chmod +x'
alias ta='tmux attach -t'
alias tk='tmux kill-session -t'
alias tk='tmux kill-session -t'
alias disco='mpv --cdrom-device=/dev/sr0 cdda://'

View File

@ -13,7 +13,6 @@ if [ "$TERM" = "linux" ]; then
fi
fi
# }}}
# Completion Dots {{{
# if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
@ -31,25 +30,19 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then
bindkey "^I" expand-or-complete-with-dots
fi
# }}}
# Pacman {{{
files() { pacman -Ql "$1" ;} # list files owned by package
explicit() { sudo pacman -D --asexplicit "$@" ;} # mark package as explicitly installed
# }}}
# FFF {{{
f() {
fff "$@"
cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
}
f() { fff "$@" }
cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
# }}}
# Handle trash {{{
trash-empty() { gio trash --empty }
trash() { gio trash -f $@ }
trash-ls() { gio list -h trash:// }
# }}}
# Prevent ranger nesting {{{
ranger() {
if [ -z "$RANGER_LEVEL" ]; then
@ -59,7 +52,6 @@ ranger() {
fi
}
# }}}
# This is a workaround for tmux {{{
# When you clear the terminal with ctrl-l anything on-screen is not saved (this is compatible with xterm behavior).
# In contrast, GNU screen will first push anything on-screen into the scrollback buffer before clearing the screen.

View File

@ -2,7 +2,7 @@
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/deadguy/.gtkrc-2.0.mine"
gtk-theme-name="8089"
gtk-theme-name="8088"
gtk-icon-theme-name="ArchLabs-Light"
gtk-font-name="IBM Plex Sans weight=453 9"
gtk-cursor-theme-name="Alkano"

View File

@ -147,7 +147,7 @@ formats = {
end_of_whois = "%y└─┄┄ ";
whois_not_found = "%y──┄┄ %wthere is no such nick %b$0";
topic = " %y ├─┄┄┄─┄";
topic_info = " %y │ %wtopic set by %b$0 %B(%w$1%B)";
topic_info = " %y │ %wtopic set by %b$0 %B(%w$1%B)";
channel_synced = "%n %N sync %y╪ %n{hilight $1} secs%: %y ├─┄┄┄─┄";
channel_created = " %n created %y╞ %n$1";
};

View File

@ -38,15 +38,15 @@ setw -g pane-border-status bottom
setw -g pane-border-format '─'
set -g set-titles on
set -g set-titles-string "#T"
set -g message-command-style bg=colour0,fg=colour13,bold
set -g message-style bg=colour12,fg=colour0,bold
set -g message-command-style bg=colour0,fg=colour13
set -g message-style bg=colour4,fg=colour0
set -g status-style bg=default,fg=colour7
set -g status-interval 1
set -g status-left ''
set -g status-right '#(txbar)#[fg=colour4] %R #[fg=colour2,bold]#S'
set -g status-right '#(txbar)#[fg=colour4] %R #[fg=colour10]#S'
set -g window-status-separator ' '
set -g window-status-current-style fg=colour3,bold
set -g window-status-activity-style bg=colour1,fg=colour14,bold
set -g window-status-current-style fg=colour3
set -g window-status-activity-style bg=colour0,fg=colour15
set -g window-status-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
set -g window-status-current-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "

View File

@ -14,8 +14,12 @@ export SSH_ASKPASS="/usr/lib/seahorse/ssh-askpass"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export MANPAGER="nvim +'set filetype=man' -"
export FFF_TRASH_CMD="rm"
export FFF_MARK_FORMAT="> %f"
export FFF_COL2=3
# highlight
export HIGHLIGHT_OPTIONS='--out-format="xterm256" --style="pablo"'
export HIGHLIGHT_OPTIONS='--out-format="ansi" --style="pablo"'
# less
export LESS=" \

39
.zshrc
View File

@ -166,16 +166,11 @@ setopt GLOBDOTS
setopt autocd
setopt extendedglob
#
# Smart URLs
#
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
#
# General
#
# Allow brace character class list expansion.
setopt BRACE_CCL
# Combine zero-length punctuation characters (accents) with the base character.
@ -183,9 +178,7 @@ setopt COMBINING_CHARS
# Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'.
setopt RC_QUOTES
#
# Jobs
#
# List jobs in the long format by default.
setopt LONG_LIST_JOBS
# Attempt to resume existing job before creating a new process.
@ -305,6 +298,7 @@ AGKOZAK_PROMPT_DIRTRIM=0
source /usr/share/zsh/plugins/zsh-autopair/autopair.zsh
source /usr/share/LS_COLORS/dircolors.sh
source $MODULES_DIR/up.plugin.zsh
source $MODULES_DIR/k.sh
source_or_install "$MODULES_DIR/zsh-users/zsh-completions/zsh-completions.plugin.zsh" zsh-users/zsh-completions
if [[ -d /usr/share/fzf ]]; then
@ -322,37 +316,6 @@ source $MODULES_DIR/transmission.zsh
source $MODULES_DIR/aliases.plugin.zsh
source $MODULES_DIR/omg.zsh
# }}}
# CDR, Persistent cd {{{
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
DIRSTACKFILE="$HOME/.cache/zsh/dirs"
# make DIRSTACKFILE if it's not there
if [[ ! -a $DIRSTACKFILE ]]; then
mkdir -p $DIRSTACKFILE[0,-5]
touch $DIRSTACKFILE
fi
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
fi
chpwd() {
print -l $PWD ${(u)dirstack} >>$DIRSTACKFILE
d="$(sort -u $DIRSTACKFILE )"
echo "$d" > $DIRSTACKFILE
}
DIRSTACKSIZE=20
setopt AUTO_PUSHD PUSHD_SILENT PUSHD_TO_HOME
# Remove duplicate entries
setopt PUSHD_IGNORE_DUPS
# This reverts the +/- operators.
setopt PUSHD_MINUS
# }}}
# End Profiling Script {{{
if [[ "$PROFILE_STARTUP" == true ]]; then
unsetopt xtrace

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -euf -o pipefail
size=${2:-'10'}
dir=$1
@ -24,18 +25,18 @@ if ! is_tiled; then
sign="+"
;;
esac
xdo resize ${switch} ${sign}${size}
xdo resize ${switch} ${sign}"${size}"
# Otherwise, window is tiled: switch with window in given direction
else
case "$dir" in
west) bspc node @west -r -$size || bspc node @east -r -${size}
west) bspc node @west -r -"$size" || bspc node @east -r -"${size}"
;;
east) bspc node @west -r +$size || bspc node @east -r +${size}
east) bspc node @west -r +"$size" || bspc node @east -r +"${size}"
;;
north) bspc node @south -r -$size || bspc node @north -r -${size}
north) bspc node @south -r -"$size" || bspc node @north -r -"${size}"
;;
south) bspc node @south -r +$size || bspc node @north -r +${size}
south) bspc node @south -r +"$size" || bspc node @north -r +"${size}"
;;
esac
fi

View File

@ -2,7 +2,9 @@
case $1 in
v) $EDITOR ~/.config/nvim/init.vim ;;
start) $EDITOR ~/.config/bspwm/autostart ;;
irc) $EDITOR ~/.irssi/config ;;
gtk3) $EDITOR ~/.config/gtk-3.0/settings.ini ;;
gtk2) $EDITOR ~/.gtkrc-2.0 ;;
wm) $EDITOR ~/.config/bspwm/bspwmrc ;;
keys) $EDITOR ~/.config/sxhkd/sxhkdrc ;;
mutt) $EDITOR ~/.config/mutt/muttrc ;;

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -euf -o pipefail
export DISPLAY=:0.0

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# A general, all-purpose extraction script.
#
# Default behavior: Extract archive into new directory
@ -11,7 +11,7 @@ esac done
if [ -z "$extracthere" ]; then
archive="$(readlink -f "$*")" &&
directory=${archive%.*} &&
directory="$(echo "$archive" | sed 's/\.[^\/.]*$//')" &&
mkdir -p "$directory" &&
cd "$directory" || exit
else
@ -39,4 +39,3 @@ if [ -f "$archive" ] ; then
else
printf "File \"%s\" not found.\\n" "$archive"
fi

View File

@ -1,50 +1,73 @@
#!/bin/bash
#!/bin/sh
c() {
filename="$HOME/Videos/Screen/$(date +%s).mkv"
param "$1"
}
# Usage:
# `record`: Ask for recording type via dmenu
# `record screencast`: Record both audio and screen
# `record video`: Record only screen
# `record audio`: Record only audio
# `record kill`: Kill existing recording
#
# If there is already a running instance, user will be prompted to end it.
jack() {
killrecording() {
recpid="$(cat /tmp/recordingpid)"
# kill with SIGTERM, allowing finishing touches.
kill -15 "$recpid"
rm -f /tmp/recordingpid
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
sleep 3
kill -9 "$recpid"
exit
}
screencast() { \
ffmpeg -y \
-thread_queue_size 4096 \
-f jack -i ffmpeg \
-f x11grab \
-framerate 60 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-f alsa -i default \
-r 30 \
-c:v libx264 -qp 0 -r 30 -c:a flac "$filename"
}
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
"$HOME/Video/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! > /tmp/recordingpid
}
mute() {
ffmpeg -y \
-thread_queue_size 4096 \
video() { ffmpeg \
-f x11grab \
-framerate 60 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-r 30 \
-c:v libx264 -qp 0 -r 30 "$filename"
}
-c:v libx264 -qp 0 -r 30 \
"$HOME/Videos/-$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! > /tmp/recordingpid
}
pulse() {
ffmpeg -y \
-thread_queue_size 4096 \
-f alsa -ac 2 -i pulse \
-f x11grab \
-framerate 60 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-r 30 \
-c:v libx264rgb -crf 0 -preset ultrafast -c:a aac -b:a 128k "$filename"
}
audio() { \
ffmpeg \
-f alsa -i default \
-c:a flac \
"$HOME/Music/Mios/$(date '+%y%m%d-%H%M-%S').flac" &
echo $! > /tmp/recordingpid
}
param() {
case $1 in
j) jack ;;
m) mute ;;
p) pulse ;;
*) echo -e "Invalid parameter. Add one of the following:\\n\"j\" for JACK (make sure it's on first).\\n\"p\" for pulseaudio\\n\"m\" for no sound." ;;
esac ;}
c "$1"
askrecording() { \
choice=$(printf "screencast\\nvideo\\naudio" | dmenu -i -p "Select recording style:")
case "$choice" in
screencast) screencast;;
audio) audio;;
video) video;;
esac
}
asktoend() { \
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
[ "$response" = "Yes" ] && killrecording
}
case "$1" in
screencast) screencast;;
audio) audio;;
video) video;;
kill) killrecording;;
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
esac

View File

@ -23,7 +23,7 @@ sleep 5s
# Create new window, launch foxdot
tmux new-window -t "$session":2
tmux selectp -t 1
tmux send-keys "foxy" C-m
tmux send-keys "FoxDot" C-m
# Switch back to the log window
tmux select-window -t :1

View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ -d /sys/class/power_supply/BAT0 ]; then
bat_lvl=`head -n 1 /sys/class/power_supply/BAT0/capacity`
bat=" $bat_lvl%"
bat_lvl=$(head -n 1 /sys/class/power_supply/BAT0/capacity)
bat=" $bat_lvl%"
fi
notify-send -t 5000 "${bat}"

4
bin/setbg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Sets the background. If given an argument, will set file as background.
[ -n "$1" ] && cp "$1" ~/.config/wall.png && notify-send -u low -i "$HOME/.config/wall.png" "Wallpaper changed."
hsetroot -fill ~/.config/wall.png

View File

@ -1,71 +0,0 @@
#!/bin/sh
c00=$'\e[0;30m'
c01=$'\e[0;31m'
c02=$'\e[0;32m'
c03=$'\e[0;33m'
c04=$'\e[0;34m'
c05=$'\e[0;35m'
c06=$'\e[0;36m'
c07=$'\e[0;37m'
c08=$'\e[1;30m'
c09=$'\e[1;31m'
c10=$'\e[1;32m'
c11=$'\e[1;33m'
c12=$'\e[1;34m'
c13=$'\e[1;35m'
c14=$'\e[1;36m'
c15=$'\e[1;37m'
kernel=`uname -r`
distro=$(source /etc/os-release && echo $PRETTY_NAME)
wm=$(wmctrl -m | awk 'NR==1 {print $2}')
sh=$(echo "$SHELL" | awk -F/ '{for ( i=1; i <= NF; i++) sub(".", substr(toupper($i),1,1) , $i); print $NF}')
cat << EOF
${c15} MILITARY.SCIENCE.CONSUMER
${c12} .:oyhdmNMMMNmdhyo:.
+ymNds+:-. .-:+sdNmy+
+hNdo- -odNh+
+mNs- -sNm+
:mNo oNm:
oMd. ${c15} sMNmNNNNNNNNNNNNNNNNNNNNNmNMs ${c12} .dMo
yMy ${c15} yMh\` -ossssssssssssssssso- \`hMy ${c12} yMy
oMy ${c15} .dMs\` '+ossssssssssssso+' \`sMd. ${c12} yMo
+Mm ${c15} mMs -+++++++++++++- sMm ${c12} mM+
yMo ${c15} yMd-s-+:-: .hhh. :-:+-s-dMy ${c12} oMy
NM. ${c15} oMm+h+hoy+ :mMMMm: +yoh+h+mMo ${c12} .MN
MM ${c15} \NN+yoysss ·NMMMMMN· sssyoy+NN/ ${c12} MM
NM. ${c15} :mMssssyoy oyyyyyo yoyssssNm: ${c12} .MN
yMo ${c15} .dMyoyoh+h. .h+hoyoyMd. ${c12} oMy
+Mm ${c15} \`yMh+h+h+h: :h+h+h+hMy\` ${c12} mM+
oMy ${c15} \`sMm+h+h+s s+h+h+mMs\` ${c12} yMo
yMy ${c15} +NN+h+y\` \`y+h+NN+ ${c12} yMy
oMd. ${c15} :NNoy. .yoNN: ${c12} .dMo
:mNo ${c15} -mMs.......sMm- ${c12} oNm:
\`+mNs- ${c15} \`hmmmmmmmmmh\` ${c12} -sNm+\`
\`+hNdo- ${c15} ''''''''' ${c12} -odNh+\`
\`+ymNds+:-. .-:+sdNmy+\`
.:oyhdmNMMMNmdhyo:.
${c15}TRIOPTIMUM CORPORATION
${c12}UNN Von Braun
${c11}OS ${c01}...........${c07} $distro
${c11}terminal ${c01}.....${c07} Termite
${c11}shell ${c01}........${c07} $sh
${c11}kernel ${c01}.......${c07} $kernel
${c11}processor ${c01}....${c07} i3-3110M
${c11}resolution ${c01}...${c07} 1366x768
${c11}wm ${c01}...........${c07} $wm
${c11}bar ${c01}..........${c07} None
${c11}gtk theme ${c01}....${c07} Minwaita
${c11}icons ${c01}........${c07} Papirus
${c11}font ${c01}.........${c07} Ibm Plex
EOF

View File

@ -13,7 +13,7 @@ set -euf -o pipefail
music_dir="$HOME/Music/Albums"
# What should the covers be resized to in pixels
cover_resize="150"
cover_resize="250"
# What is the cover file called?
img_reg=".*/(cover|front|folder|art).(jpg|jpeg|png|gif)$"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Clears the build files of a LaTeX/XeLaTeX build.
# I have vim run this file whenever I exit a .tex file.
@ -8,6 +8,7 @@ case "$1" in
file=$(readlink -f "$1")
dir=$(dirname "$file")
base="${file%.*}"
find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(4tc|xref|tmp|pyc|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\\(busy\\)|lof|nav|out|snm|toc|bcf|run\\.xml|synctex\\.gz|blg|bbl)" -delete ;;
find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(4tc|xref|tmp|pyc|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\\(busy\\)|lof|lot|maf|idx|mtc|mtc0|nav|out|snm|toc|bcf|run\\.xml|synctex\\.gz|blg|bbl)" -delete ;;
*) printf "Give .tex file as argument.\\n" ;;
esac

View File

@ -1,7 +1,8 @@
#!/bin/bash
#!/usr/bin/env bash
set -euf -o pipefail
HEART='\ue1ae'
WIFI='\ue610'
HEART='\uf004'
WIFI='\ufaa8'
if [ -d /sys/class/power_supply/BAT0 ]; then
battery_info="$(head -n 1 /sys/class/power_supply/BAT0/capacity)%"
@ -20,11 +21,11 @@ if [ -d /sys/class/power_supply/BAT0 ]; then
else
echo -n '#[fg=colour123]'
fi
echo -ne "$HEART$current_charge"
echo -ne "$HEART $current_charge"
fi
if ping -q -w 1 -c 1 "$(ip r | grep -m 1 default | cut -d ' ' -f 3)" >/dev/null
then
net="$(awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless)"
echo -ne " #[fg=colour177]$WIFI ${net} "
echo -ne " #[fg=colour177]$WIFI${net} "
fi

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
hsetroot -fill ~/Pictures/wallpaper/"$1"