MMLYQTP
This commit is contained in:
parent
88cd13b5dc
commit
ac87dc3717
|
@ -1,7 +1,5 @@
|
|||
xfce4-power-manager &
|
||||
compton -b &
|
||||
redshift -c ~/.config/redshift/redshift.conf &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
sleep 10s
|
||||
sleep 5s
|
||||
mpd &
|
||||
unclutter &
|
||||
|
|
|
@ -24,7 +24,7 @@ inactive-dim = 0.2;
|
|||
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
shadow-ignore-shaped = true;
|
||||
shadow-ignore-shaped = false;
|
||||
inactive-opacity-override = false;
|
||||
mark-wmwin-focused = true;
|
||||
use-ewmh-active-win = false;
|
||||
|
@ -33,13 +33,13 @@ detect-client-leader = true;
|
|||
|
||||
fading = true;
|
||||
fade-delta = 15;
|
||||
fade-in-step = 0.06;
|
||||
fade-in-step = 0.055;
|
||||
fade-out-step = 0.06;
|
||||
|
||||
blur-background = true;
|
||||
blur-background-frame = true;
|
||||
blur-background-frame = false;
|
||||
blur-background-fixed = false;
|
||||
blur-kern = "7x7gaussian";
|
||||
blur-kern = "3,3,1,1,1,1,1,1,1,1";
|
||||
|
||||
opacity-rule = [
|
||||
"40:class_g = 'Bspwm' && class_i = 'presel_feedback'",
|
||||
|
@ -48,6 +48,7 @@ opacity-rule = [
|
|||
|
||||
shadow-exclude = [
|
||||
"!focused",
|
||||
"fullscreen",
|
||||
"name *?= 'Notification'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Bspwm'",
|
||||
|
@ -91,7 +92,8 @@ blur-background-frame-exclude = [
|
|||
|
||||
focus-exclude = [
|
||||
"_NET_WM_NAME@:s = 'rofi'",
|
||||
"class_g = 'Rofi'"
|
||||
"class_g = 'Rofi'",
|
||||
"class_g = 'mpv'"
|
||||
];
|
||||
|
||||
#Window type settings
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# This file goes in ~/.config/mpv
|
||||
ao=pulse
|
||||
#ao=pulse
|
||||
#vo=opengl-hq
|
||||
proflie=opengl-hq
|
||||
#proflie=opengl-hq
|
||||
scale=ewa_lanczossharp
|
||||
cscale=ewa_lanczossharp
|
||||
deband=no
|
||||
|
|
|
@ -12,18 +12,23 @@ visualizer_output_name = "mpd spectrum"
|
|||
visualizer_type = "wave_filled" (wave wave_filled spectrum ellipse)
|
||||
visualizer_in_stereo = no
|
||||
visualizer_color = "red,yellow,green,cyan,blue,red,yellow,green,cyan,blue,red,yellow,green,cyan,blue,red"
|
||||
visualizer_look = ●▞
|
||||
visualizer_look = ●▍
|
||||
visualizer_sync_interval = 10
|
||||
|
||||
# COLORS
|
||||
colors_enabled = yes
|
||||
discard_colors_if_item_is_selected = yes
|
||||
discard_colors_if_item_is_selected = no
|
||||
alternative_ui_separator_color = yellow
|
||||
main_window_color = cyan
|
||||
main_window_color = white
|
||||
header_window_color = cyan
|
||||
volume_color = red
|
||||
state_line_color = white
|
||||
state_line_color = black
|
||||
statusbar_color = magenta
|
||||
empty_tag_color = "blue"
|
||||
state_flags_color = "red"
|
||||
active_column_color = "green"
|
||||
color1 = "yellow"
|
||||
color2 = "white"
|
||||
|
||||
# HEADER
|
||||
alternative_header_first_line_format = "$8%t$9"
|
||||
|
@ -43,6 +48,8 @@ selected_item_suffix = "$9"
|
|||
current_item_prefix = "$(white)$r"
|
||||
current_item_suffix = "$/r$(end)"
|
||||
browser_playlist_prefix = "$7list$9"
|
||||
current_item_inactive_column_prefix = "$(red)$r"
|
||||
current_item_inactive_column_suffix = "$/r$(end)"
|
||||
|
||||
# PROGRESS BAR
|
||||
progressbar_look = "━ "
|
||||
|
@ -77,6 +84,7 @@ display_remaining_time = no
|
|||
playlist_separate_albums = no
|
||||
ask_for_locked_screen_width_part = no
|
||||
locked_screen_width_part = 50
|
||||
empty_tag_marker ="--"
|
||||
|
||||
# OPTIONS
|
||||
lines_scrolled = 1
|
||||
|
|
|
@ -7,7 +7,7 @@ setlocal colorcolumn=79
|
|||
setlocal smartindent
|
||||
setlocal autoindent
|
||||
setlocal formatoptions+=croq
|
||||
setlocal omnifunc=
|
||||
setlocal omnifunc=pythoncomplete#Complete
|
||||
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class,with
|
||||
|
||||
nnoremap <leader>y :0,$!yapf<Cr>
|
||||
|
@ -15,6 +15,9 @@ nnoremap <leader>y :0,$!yapf<Cr>
|
|||
let g:ale_sign_column_always = 1
|
||||
let g:ale_set_loclist = 0
|
||||
let g:ale_set_quickfix = 1
|
||||
let g:ale_sign_error = '× '
|
||||
let g:ale_sign_warning = '> '
|
||||
highlight ALEErrorSign ctermbg=234 ctermfg=magenta
|
||||
|
||||
" Check Python files with flake8 and pylint.
|
||||
let b:ale_linters = ['flake8', 'pylint']
|
||||
|
|
|
@ -16,10 +16,8 @@
|
|||
" Plugins {{{
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'junegunn/vim-plug'
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': [':UpdateRemotePlugins', ':set runtimepath+=~/.config/nvim/plugged/deoplete.nvim/'] }
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'tpope/vim-surround'
|
||||
"Plug 'davidhalter/jedi-vim', { 'for': 'python3' }
|
||||
Plug 'zchee/deoplete-jedi', { 'for': 'python3' }
|
||||
Plug 'w0rp/ale'
|
||||
Plug 'sbdchd/neoformat'
|
||||
|
@ -27,7 +25,6 @@
|
|||
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'zefei/vim-wintabs'
|
||||
"Plug 'Shougo/vinarise.vim'
|
||||
Plug 'lervag/vimtex', { 'for': 'tex' }
|
||||
"Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||
Plug '/usr/bin/fzf'
|
||||
|
@ -378,6 +375,7 @@
|
|||
|
||||
function! s:goyo_enter()
|
||||
set showmode
|
||||
set noshowcmd
|
||||
let b:quitting = 0
|
||||
let b:quitting_bang = 0
|
||||
autocmd QuitPre <buffer> let b:quitting = 1
|
||||
|
@ -386,6 +384,7 @@
|
|||
|
||||
function! s:goyo_leave()
|
||||
set noshowmode
|
||||
set showcmd
|
||||
" Quit Vim if this is the only remaining buffer
|
||||
if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
|
||||
if b:quitting_bang
|
||||
|
@ -442,14 +441,13 @@
|
|||
|
||||
" FZF really is a lifechanger
|
||||
nnoremap <F4> :FZF<CR>
|
||||
nnoremap <leader>xb :Buffers<cr>
|
||||
nnoremap <leader>xc :History:<cr>
|
||||
nnoremap <leader>xf :Files<cr>
|
||||
nnoremap <leader>xg :GFiles<cr>
|
||||
nnoremap <leader>xh :History<cr>
|
||||
nnoremap <leader>xl :Lines<cr>
|
||||
nnoremap <leader>xm :Maps<cr>
|
||||
nnoremap <leader>xr :Ag<cr>
|
||||
nnoremap <leader>b :Buffers<cr>
|
||||
nnoremap <leader>p :History:<cr>
|
||||
nnoremap <leader>t :Files<cr>
|
||||
nnoremap <leader>gt :GFiles<cr>
|
||||
nnoremap <leader>l :Lines<cr>
|
||||
nnoremap <leader>m :Maps<cr>
|
||||
nnoremap <leader>r :Ag<cr>
|
||||
|
||||
" Mapping selecting mappings
|
||||
nmap <leader><tab> <plug>(fzf-maps-n)
|
||||
|
@ -462,12 +460,12 @@
|
|||
imap <c-x><c-j> <plug>(fzf-complete-file-ag)
|
||||
imap <c-x><c-l> <plug>(fzf-complete-line)
|
||||
|
||||
nnoremap <silent> <F2> :NERDTreeFind<CR>
|
||||
nnoremap <silent> <F3> :NERDTreeToggle<CR>
|
||||
nnoremap <leader>pi :PlugInstall<CR>
|
||||
nnoremap <leader>pu :PlugUpdate<CR>
|
||||
nnoremap <leader>pU :PlugUpgrade<CR>
|
||||
nnoremap <leader>pc :PlugClean<CR>
|
||||
nnoremap <silent> <F3> :NERDTreeFind<CR>
|
||||
nnoremap <silent> <F2> :NERDTreeToggle<CR>
|
||||
nnoremap <leader>Pi :PlugInstall<CR>
|
||||
nnoremap <leader>Pu :PlugUpdate<CR>
|
||||
nnoremap <leader>PU :PlugUpgrade<CR>
|
||||
nnoremap <leader>Pc :PlugClean<CR>
|
||||
|
||||
" Learn vim keys the hard way
|
||||
nnoremap <silent> <Left> :vertical resize -2<CR>
|
||||
|
@ -477,10 +475,10 @@
|
|||
|
||||
nnoremap <silent> <F5> :so ~/.config/nvim/init.vim<CR>
|
||||
nnoremap <leader>T :terminal<CR>
|
||||
nnoremap <leader>ws :split<CR>
|
||||
nnoremap <leader>wv :vsplit<CR>
|
||||
nnoremap <leader>wnv :vnew<CR>
|
||||
nnoremap <leader>wns :new<CR>
|
||||
nnoremap <leader>s :split<CR>
|
||||
nnoremap <leader>v :vsplit<CR>
|
||||
nnoremap <leader>nv :vnew<CR>
|
||||
nnoremap <leader>ns :new<CR>
|
||||
|
||||
" ensure that ctrl+u in insert mode can be reversed
|
||||
" http://vim.wikia.com/wiki/Recover_from_accidental_Ctrl-U
|
||||
|
|
|
@ -8,7 +8,7 @@ default_linemode devicons
|
|||
set viewmode miller
|
||||
|
||||
# How many columns are there, and what are their relative widths?
|
||||
set column_ratios 1,3,4
|
||||
set column_ratios 2,3,4
|
||||
|
||||
# Which files should be hidden? (regular expression)
|
||||
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$
|
||||
|
@ -53,7 +53,7 @@ set preview_images true
|
|||
set preview_images_method w3m
|
||||
|
||||
# Use a unicode "..." character to mark cut-off filenames?
|
||||
set unicode_ellipsis false
|
||||
set unicode_ellipsis true
|
||||
|
||||
# Show dotfiles in the bookmark preview box?
|
||||
set show_hidden_bookmarks true
|
||||
|
@ -167,7 +167,7 @@ set cd_tab_smart false
|
|||
|
||||
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
|
||||
# disable this feature.
|
||||
set preview_max_size 0
|
||||
set preview_max_size 5242880
|
||||
|
||||
# Add the highlighted file to the path in the titlebar
|
||||
set show_selection_in_titlebar true
|
||||
|
@ -241,12 +241,10 @@ map w taskview_open
|
|||
map S shell $SHELL
|
||||
|
||||
map : console
|
||||
map ; console
|
||||
map ! console shell%space
|
||||
map @ console -p6 shell %%s
|
||||
map # console shell -p%space
|
||||
map r chain draw_possible_programs; console open_with%%space
|
||||
map cd console cd%space
|
||||
|
||||
# Change the line mode
|
||||
map lmf linemode filename
|
||||
|
@ -337,7 +335,7 @@ map yd shell -f echo -n %%d | xsel -i; xsel -o | xsel -i -b
|
|||
map yn shell -f echo -n %%f | xsel -i; xsel -o | xsel -i -b
|
||||
map ff fzf_select
|
||||
map fl fzf_locate
|
||||
map cfg chain shell nvim -p ~/.config/ranger/rc.conf; source ~/.config/ranger/rc.conf
|
||||
map cg chain shell nvim -p ~/.config/ranger/rc.conf; source ~/.config/ranger/rc.conf
|
||||
map ef eval import shlex; fm.run("tmux splitw -h rifle " + shlex.quote(fm.thisfile.basename))
|
||||
map ev eval import shlex; fm.run("tmux splitw -v rifle " + shlex.quote(fm.thisfile.basename))
|
||||
map ew eval import shlex; fm.run("tmux new-window rifle " + shlex.quote(fm.thisfile.basename))
|
||||
|
@ -352,7 +350,7 @@ map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "
|
|||
|
||||
# Filesystem Operations
|
||||
map = chmod
|
||||
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map rw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map pp paste
|
||||
map po paste overwrite=True
|
||||
map pP paste append=True
|
||||
|
@ -392,12 +390,12 @@ map f console scout -ftsea%space
|
|||
map / console search%space
|
||||
map n search_next
|
||||
map N search_next forward=False
|
||||
map ct search_next order=tag
|
||||
map cs search_next order=size
|
||||
map ci search_next order=mimetype
|
||||
map cc search_next order=ctime
|
||||
map cm search_next order=mtime
|
||||
map ca search_next order=atime
|
||||
map st search_next order=tag
|
||||
map ss search_next order=size
|
||||
map si search_next order=mimetype
|
||||
map sc search_next order=ctime
|
||||
map sm search_next order=mtime
|
||||
map sa search_next order=atime
|
||||
|
||||
# Tabs
|
||||
map tn eval fm.tab_new('%d')
|
||||
|
@ -593,8 +591,10 @@ copytmap <ESC> q Q w <C-c>
|
|||
|
||||
# Assorted stuff
|
||||
map xc shell chmod -x %s
|
||||
map mkd console mkdir%space
|
||||
map sc console shell ln -sT%space
|
||||
map cf console touch%space
|
||||
map cd console mkdir%space
|
||||
map cc console compress%space
|
||||
map sl console shell ln -sT%space
|
||||
map bg shell hsetroot -fill %f
|
||||
map rec shell ~/bin/screenit.sh
|
||||
map Ma shell mpc add "%s"
|
||||
|
|
|
@ -10,9 +10,8 @@ clickable_url = true
|
|||
scrollback_lines = 10000
|
||||
search_wrap = true
|
||||
#font = IBM Plex Mono Regular 10
|
||||
#font = xos4 terminus 10
|
||||
font = gohu gohufont 10
|
||||
#font = Liberation Mono 10
|
||||
#font = Sarasa Term J Regular 10
|
||||
geometry = 1280x720
|
||||
|
||||
# "system", "on" or "off"
|
||||
|
@ -34,7 +33,6 @@ filter_unmatched_urls = true
|
|||
#modify_other_keys = false
|
||||
|
||||
[colors]
|
||||
|
||||
# special
|
||||
foreground = #d3d7cf
|
||||
foreground_bold = #d3d7cf
|
||||
|
|
|
@ -76,12 +76,12 @@ abstracts = {
|
|||
wallop_nick = "%n$*";
|
||||
wallop_action = "%w * $*%n ";
|
||||
|
||||
names_users = "%y┌─┄┄─┄┄──┘ %nusers in %b$1";
|
||||
names_users = " %y┌─┄┄─┄┄──┘ %nusers in %b$1";
|
||||
names_nick = "$2$0%n$1 ";
|
||||
names_nick_op = "{names_nick $* %w}";
|
||||
names_nick_halfop = "{names_nick $* %w}";
|
||||
names_nick_voice = "{names_nick $* %w}";
|
||||
names_prefix = "%y│ %n$1";
|
||||
names_prefix = " %y│ %n$1";
|
||||
names_channel = "%W$*%n";
|
||||
|
||||
sb_background = "%N%N";
|
||||
|
@ -93,7 +93,7 @@ abstracts = {
|
|||
topicsbstart = "%w$C %y┄─┄$*";
|
||||
topicsbend = "$*";
|
||||
|
||||
prompt = " %y└──┄┄%n ";
|
||||
prompt = " %y└──┄┄╼%n ";
|
||||
|
||||
sb = "%N$*%N ";
|
||||
sbmode = "%b(%w+%N$*%b)%n";
|
||||
|
@ -150,8 +150,8 @@ formats = {
|
|||
whois_not_found = "%y──┄┄ %wthere is no such nick %b$0";
|
||||
topic = " %ntopic %y┈┈┈┤ %B$0 %b$1";
|
||||
topic_info = " %y │ %wset by %b$0 %B(%w$1%B)";
|
||||
channel_synced = "%n %N sync %y│ %nin {hilight $1} secs";
|
||||
channel_created = "%n %y │ %ncreated $1";
|
||||
channel_synced = "%n %N sync %y╪ %nin {hilight $1} secs";
|
||||
channel_created = "%n %y ╞ %ncreated $1";
|
||||
};
|
||||
"Irssi::Script::adv_windowlist" = {
|
||||
awl_display_header = "%U%9%w$C";
|
||||
|
|
|
@ -38,6 +38,7 @@ chatnets = {
|
|||
max_whois = "30";
|
||||
};
|
||||
};
|
||||
|
||||
channels = (
|
||||
{
|
||||
name = "#archlinux-offtopic";
|
||||
|
@ -106,6 +107,8 @@ settings = {
|
|||
real_name = "name";
|
||||
user_name = "name";
|
||||
nick = "name";
|
||||
quit_message = "9";
|
||||
log_day_changed = "%y ┌─┄┄─────┘%n\\012%y │ It is now %A %d %b %Y\\012%y └─┄┄─┄┄──┐ ";
|
||||
};
|
||||
"fe-text" = {
|
||||
actlist_sort = "refnum";
|
||||
|
@ -160,17 +163,21 @@ settings = {
|
|||
"fe-common/irc" = {
|
||||
query_track_nick_changes = "yes";
|
||||
sasl_disconnect_on_failure = "no";
|
||||
group_multi_mode = "yes";
|
||||
};
|
||||
"irc/core" = {
|
||||
rejoin_channels_on_reconnect = "ON";
|
||||
split_line_on_space = "yes";
|
||||
ctcp_version_reply = "eat a dIRC";
|
||||
ctcp_userinfo_reply = "$N";
|
||||
part_message = "bai";
|
||||
};
|
||||
};
|
||||
logs = { };
|
||||
statusbar = {
|
||||
items = {
|
||||
awlbarstart = " %y ┌┄┄ %w";
|
||||
awlbarend = " %y╟─ ";
|
||||
awlbarstart = " %y ┌┄┄╌╼ %w";
|
||||
awlbarend = " %y ╾─┐ ";
|
||||
more = "%y┄┄─ %Nmore %y┄┄─┐";
|
||||
};
|
||||
default = {
|
||||
|
|
|
@ -3,7 +3,7 @@ Encoding=UTF-8
|
|||
Version=1.0
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
Exec=sxiv -a %f
|
||||
Exec=sxiv -p -a %f
|
||||
Name=sxiv-gif
|
||||
Comment=Custom definition for sxiv
|
||||
MimeType=image/gif
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
# Mailcap 101
|
||||
# - The first entry with a matching MIME type will be executed, * is a wildcard
|
||||
# - %s will be replaced with the image or video url
|
||||
# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window
|
||||
# - Add ``needsterminal`` for commands that use the terminal
|
||||
# - Add ``copiousoutput`` for commands that dump text to stdout
|
||||
|
||||
# Note that rtv returns a list of urls for imgur albums, so we don't put quotes
|
||||
# around the `%s`
|
||||
image/gif; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"
|
||||
image/*; %s | imv -; test=test -n "$DISPLAY"
|
||||
|
||||
# Youtube videos are assigned a custom mime-type, which can be streamed with
|
||||
# vlc or youtube-dl.
|
||||
video/x-youtube; mpv --ytdl-format=best '%s' --autofit 640x480; test=test -n "$DISPLAY"
|
||||
|
||||
# Mpv is a simple and effective video streamer
|
||||
video/*; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"
|
||||
|
||||
# Use zathura for pdfs
|
||||
application/pdf; zathura '%s'; test=test -n "$DISPLAY"
|
||||
|
||||
# Abiword for MS Word docs
|
||||
application/msword; abiword '%s'; test=test -n "$DISPLAY"
|
||||
|
||||
# Autoview html
|
||||
text/html; "$BROWSER" %s; test=test -n "$DISPLAY"; needsterminal;
|
||||
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
||||
#text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput
|
||||
text/plain; cat %s; copiousoutput
|
||||
|
||||
###############################################################################
|
||||
# Commands below this point will attempt to display media directly in the
|
||||
# terminal when X is not available.
|
||||
###############################################################################
|
||||
|
||||
# 256 color images using half-width unicode characters
|
||||
# Much higher quality that img2txt, but must be built from source
|
||||
# https://github.com/rossy/img2xterm
|
||||
image/*; %s | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Display images in classic ascii using img2txt and lib-caca
|
||||
image/*; %s | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Full motion videos - requires a framebuffer to view
|
||||
video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal
|
||||
video/*; mpv -vo drm -quiet '%s'; needsterminal
|
||||
|
||||
# Ascii videos
|
||||
# video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
||||
# video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
|
@ -29,7 +29,7 @@ folder-hook 'account.galejo' 'source ~/.mutt/account.galejo'
|
|||
|
||||
# Default account ---------------------------------
|
||||
source ~/.mutt/account.gvidaar
|
||||
set mailcap_path = ~/.mailcap
|
||||
set mailcap_path = ~/.mutt/mailcap
|
||||
set new_mail_command="notify-send -t 10000 'New Email in %f' '%n new messages, %u unread.' &"
|
||||
|
||||
# Sidebar -----------------------------------------
|
||||
|
|
|
@ -10,7 +10,8 @@ set -ga terminal-overrides ',xterm-256color:Tc'
|
|||
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
||||
|
||||
# Set Zsh as default Tmux shell
|
||||
set-option -g default-shell /bin/zsh
|
||||
set -g default-command "${SHELL}"
|
||||
#set-option -g default-shell /bin/zsh
|
||||
|
||||
unbind C-b
|
||||
unbind space
|
||||
|
@ -25,6 +26,9 @@ setw -g mouse on
|
|||
setw -g mode-keys vi
|
||||
set -g status-keys emacs
|
||||
|
||||
# urlview
|
||||
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
||||
|
||||
# Switch panes using Alt-arrow without prefix
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
|
|
4
.xinitrc
4
.xinitrc
|
@ -18,7 +18,9 @@ xset s noexpose &
|
|||
setxkbmap -option caps:escape
|
||||
wmname LG3D &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
xfce4-power-manager &
|
||||
xsetroot -cursor_name left_ptr &
|
||||
sxhkd &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/wallhaven-559044.png &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/doitlive.png &
|
||||
compton -b &
|
||||
exec bspwm
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
pidof python -m FoxDot || {
|
||||
pkill -9 -f scsynth\ -u\ 57110\ -a\ 144\ -i\ 16\ -o\ 16\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
||||
pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
||||
sleep 1s
|
||||
sleep 3s
|
||||
tmux kill-session -t livecode
|
||||
}
|
||||
|
||||
|
|
|
@ -13,11 +13,14 @@ tmux new-session -d -s $session
|
|||
# Select pane 1, start scsynth
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "scsynth -u 57110" C-m
|
||||
sleep 3s
|
||||
|
||||
# Split pane 1 horizontal by 50%, start sclang
|
||||
tmux splitw -v -p 50
|
||||
tmux send-keys "sclang -D ~/Music/LiveCoding/foxy.scd" C-m
|
||||
|
||||
sleep 5s
|
||||
|
||||
# Create new window, launch foxdot
|
||||
tmux new-window -t $session:2
|
||||
tmux selectp -t 1
|
||||
|
|
67
bin/screenit
67
bin/screenit
|
@ -1,17 +1,58 @@
|
|||
#!/bin/bash
|
||||
|
||||
while [[ -f $HOME/video$n.mkv ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="$HOME/video$n.mkv"
|
||||
c() {
|
||||
filename="$HOME/Videos/Screen/$(date +%s).mkv"
|
||||
param "$1"
|
||||
}
|
||||
|
||||
#The actual ffmpeg command:
|
||||
|
||||
ffmpeg \
|
||||
-f x11grab \
|
||||
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
|
||||
-i :0.0 \
|
||||
-c:v libx264 -qp 0 -r 30 $filename
|
||||
|
||||
#alias record="ffmpeg -f x11grab -s 1366x768 -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y" #pass a filename
|
||||
jack() {
|
||||
ffmpeg -y \
|
||||
-thread_queue_size 4096 \
|
||||
-f pulse -i 1 \
|
||||
-ac 2 -channel_layout stereo -async 1 \
|
||||
-f x11grab \
|
||||
-framerate 60 \
|
||||
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
||||
-i :0.0 \
|
||||
-r 30 \
|
||||
-c:v libx264 -qp 0 -r 30 -c:a flac "$filename"
|
||||
}
|
||||
|
||||
mute() {
|
||||
ffmpeg -y \
|
||||
-thread_queue_size 4096 \
|
||||
-f x11grab \
|
||||
-framerate 60 \
|
||||
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
||||
-i :0.0 \
|
||||
-r 30 \
|
||||
-c:v libx264 -qp 0 -r 30 "$filename"
|
||||
}
|
||||
|
||||
|
||||
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 libx264 -qp 0 -r 30 -c:a aac -b:a 128k "$filename"
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
#-f alsa -ac 2 -i pulse \
|
||||
#-f pulse -i default \
|
||||
#-ac 2 -channel_layout stereo -async 1 \
|
||||
# -f jack -i ffmpeg
|
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
c() {
|
||||
filename="$HOME/Music/Tape/$(date +%s)"
|
||||
param "$1"
|
||||
}
|
||||
|
||||
|
||||
jack() {
|
||||
ffmpeg -y \
|
||||
-thread_queue_size 4096 \
|
||||
-f pulse -i 1 \
|
||||
-ac 2 -channel_layout stereo -async 1 \
|
||||
-c:a flac "$filename".flac
|
||||
}
|
||||
|
||||
pulse() {
|
||||
ffmpeg -y \
|
||||
-thread_queue_size 4096 \
|
||||
-f pulse -i default \
|
||||
-ac 2 -channel_layout stereo -async 1 \
|
||||
-c:a aac -b:a 128k "$filename".mp4
|
||||
}
|
||||
|
||||
param() {
|
||||
case $1 in
|
||||
j) jack ;;
|
||||
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" ;;
|
||||
esac ;}
|
||||
c "$1"
|
||||
|
||||
#-f alsa -ac 2 -i pulse \
|
||||
#-f pulse -i default \
|
||||
#-ac 2 -channel_layout stereo -async 1 \
|
||||
# -f jack -i ffmpeg
|
|
@ -20,12 +20,12 @@ 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 cat /sys/class/net/wlo1/operstate | grep -q 'up'; then
|
||||
net="`awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless`"
|
||||
echo -ne " #[fg=cyan]$WIFI ${net} "
|
||||
echo -ne "#[fg=cyan]$WIFI ${net} "
|
||||
|
||||
fi
|
||||
|
||||
|
|
10
bin/webcap
10
bin/webcap
|
@ -8,12 +8,12 @@ mpvFiles="mkv mp4 gif"
|
|||
fehFiles="png jpg jpeg jpe"
|
||||
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
||||
|
||||
if echo $fehFiles | grep -w $ext > /dev/null; then
|
||||
if echo "$fehFiles" | grep -w "$ext" > /dev/null; then
|
||||
nohup imv "$1" >/dev/null &
|
||||
elif echo $mpvFiles | grep -w $ext > /dev/null; then
|
||||
elif echo "$mpvFiles" | grep -w "$ext" > /dev/null; then
|
||||
nohup mpv --loop --quiet "$1" > /dev/null &
|
||||
elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
||||
elif echo "$wgetFiles" | grep -w "$ext" > /dev/null; then
|
||||
nohup wget "$1" >/dev/null &
|
||||
else
|
||||
nohup $BROWSER "$1" >/dev/null &
|
||||
fii
|
||||
nohup "$BROWSER" "$1" >/dev/null &
|
||||
fi
|
||||
|
|
Reference in New Issue