my commit messages suck because i track stuff by time here
This commit is contained in:
parent
ecbbf61bbb
commit
75e5ba5160
75
.Xresources
75
.Xresources
|
@ -1,47 +1,74 @@
|
|||
! special
|
||||
*.foreground: #d3d7cf
|
||||
*.background: #080808
|
||||
*.cursorColor: #e0d0c3
|
||||
*.cursorColor: #d3d7cf
|
||||
|
||||
! black
|
||||
*.color0: #111111
|
||||
*.color8: #181818
|
||||
*.color0: #181818
|
||||
*.color8: #333333
|
||||
|
||||
! red
|
||||
*.color1: #e53935
|
||||
*.color9: #ef2929
|
||||
*.color1: #cc4444
|
||||
*.color9: #cc4444
|
||||
|
||||
! green
|
||||
*.color2: #4e9a06
|
||||
*.color10: #7cb342
|
||||
*.color2: #5ab738
|
||||
*.color10: #5ab738
|
||||
|
||||
! yellow
|
||||
*.color3: #c4a000
|
||||
*.color11: #fce94f
|
||||
*.color3: #f69f3e
|
||||
*.color11: #e0ed21
|
||||
|
||||
! blue
|
||||
*.color4: #039be5
|
||||
*.color12: #729fcf
|
||||
*.color4: #407ee7
|
||||
*.color12: #407ee7
|
||||
|
||||
! magenta
|
||||
*.color5: #f06292
|
||||
*.color13: #ad7fa8
|
||||
*.color5: #cb5a80
|
||||
*.color13: #ff79c6
|
||||
|
||||
! cyan
|
||||
*.color6: #26c6da
|
||||
*.color14: #34e2e2
|
||||
*.color6: #5d879c
|
||||
*.color14: #8be9fd
|
||||
|
||||
! white
|
||||
*.color7: #bdbdbd
|
||||
*.color15: #eeeeec
|
||||
*.color7: #9a9a9a
|
||||
*.color15: #e6e6e6
|
||||
|
||||
URxvt.font: xft:sarasatermj:size=10
|
||||
!URxvt.font: -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
|
||||
URxvt.perl-ext-common: default,clipboard,url-select
|
||||
URxvt.urlLauncher: webcap
|
||||
URxvt.url-select.launcher: webcap
|
||||
URxvt.url-select.underline: true
|
||||
URxvt.urlButton: 1
|
||||
URxvt.colorUL: #4682B4
|
||||
URxvt.lineSpace: 0
|
||||
URxvt.secondaryScreen: 1
|
||||
URxvt.secondaryScroll: 0
|
||||
URxvt.secondaryWheel: 1
|
||||
URxvt.print-pipe: "cat > /dev/null"
|
||||
URxvt.keysym.M-Shift-c: perl:clipboard:copy
|
||||
URxvt.keysym.M-Shift-v: perl:clipboard:paste
|
||||
URxvt.keysym.M-u: perl:url-select:select_next
|
||||
URxvt.intensityStyles: false
|
||||
URxvt*internalBorder: 12
|
||||
URxvt*externalBorder: 0
|
||||
URxvt*scrollBar: false
|
||||
URxvt*scrollBar_right: false
|
||||
URxvt*letterSpace: 0
|
||||
URxvt*depth: 32
|
||||
URxvt*saveline: 2000
|
||||
URxvt*scrollTtyOutput: false
|
||||
URxvt*scrollWithBuffer: true
|
||||
URxvt*scrollTtyKeypress: true
|
||||
|
||||
!SXIV COLORS
|
||||
sxiv.font: monaco:size=9
|
||||
sxiv.win_bg_color: #080808
|
||||
sxiv.win_fs_color: #050505
|
||||
sxiv.sel_color: #2E2E2C
|
||||
sxiv.bar_bg_color: #121212
|
||||
sxiv.bar_fg_color: #e0d0c3
|
||||
! esto afecta a pd-l2ork y otras cosas, guarda
|
||||
Xft.lcdfilter: lcddefault
|
||||
Xft.hintstyle: hintmedium
|
||||
Xft.antialias: true
|
||||
Xft.hinting: true
|
||||
Xft.autohint: true
|
||||
Xft.rgba: rgb
|
||||
|
||||
Xcursor.theme: Alkano
|
|
@ -1,7 +1,9 @@
|
|||
hsetroot -fill /home/deadguy/Pictures/wallpaper/wallhaven-607694.png &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/889257-adventure-time-minimalistic-simple-background.jpg &
|
||||
xsetroot -cursor_name left_ptr &
|
||||
~/.config/polybar/launch.sh &
|
||||
compton -b &
|
||||
#~/.config/polybar/launch.sh &
|
||||
#compton -b &
|
||||
stalonetray &
|
||||
trayoff &
|
||||
sleep 2s
|
||||
nm-applet &
|
||||
redshift -c ~/.config/redshift/redshift.conf &
|
||||
|
|
|
@ -1,41 +1,42 @@
|
|||
#!/bin/zsh
|
||||
#!/bin/bash
|
||||
|
||||
#bspc monitor LVDS1 -d 1 2 3 4 5 6 7 8 9 10
|
||||
multipantalla &
|
||||
|
||||
gap=8
|
||||
pad=6
|
||||
panel=22
|
||||
b_width=2
|
||||
b_width=4
|
||||
export b_width
|
||||
export gap
|
||||
export pad
|
||||
export panel
|
||||
|
||||
# Setting -$gap on *_padding creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
|
||||
bspc config window_gap 8
|
||||
bspc config top_padding 22
|
||||
bspc config left_padding 0
|
||||
bspc config right_padding 0
|
||||
bspc config bottom_padding 0
|
||||
# Si se usa -$gap en *_padding, solamente se ven huecos entre las ventanas, pero no entre las ventanas y los bordes del escritorio
|
||||
bspc config window_gap $pad
|
||||
bspc config top_padding -2
|
||||
bspc config left_padding 0
|
||||
bspc config right_padding 0
|
||||
bspc config bottom_padding 1
|
||||
|
||||
# Settings
|
||||
bspc config paddingless_monocle false
|
||||
bspc config gapless_monocle true
|
||||
bspc config borderless_monocle true
|
||||
bspc config single_monocle true
|
||||
bspc config remove_unplugged_monitors true
|
||||
bspc config remove_disabled_monitors true
|
||||
bspc config ignore_ewmh_focus false
|
||||
bspc config auto_cancel true
|
||||
bspc config honor_size_hints true
|
||||
bspc config paddingless_monocle false
|
||||
bspc config gapless_monocle true
|
||||
bspc config borderless_monocle true
|
||||
bspc config single_monocle false
|
||||
bspc config remove_unplugged_monitors true
|
||||
bspc config remove_disabled_monitors true
|
||||
bspc config ignore_ewmh_focus true
|
||||
bspc config auto_cancel true
|
||||
bspc config honor_size_hints true
|
||||
bspc config directional_focus_tightness low
|
||||
bspc config initial_polarity second_child
|
||||
bspc config click_to_focus any
|
||||
bspc config pointer_modifier mod4
|
||||
bspc config pointer_action1 resize_side
|
||||
bspc config pointer_action2 resize_corner
|
||||
bspc config pointer_action3 move
|
||||
bspc config split_ratio 0.45
|
||||
bspc config initial_polarity second_child
|
||||
bspc config click_to_focus any
|
||||
bspc config pointer_modifier mod4
|
||||
bspc config pointer_action1 resize_side
|
||||
bspc config pointer_action2 resize_corner
|
||||
bspc config pointer_action3 move
|
||||
bspc config split_ratio 0.50
|
||||
|
||||
# xrdb
|
||||
function get_xrdb() {
|
||||
|
@ -43,51 +44,49 @@ function get_xrdb() {
|
|||
}
|
||||
xrdb -merge "${HOME}/.Xresources"
|
||||
|
||||
# Colors
|
||||
# Colores
|
||||
bspc config normal_border_color "$(get_xrdb color0)"
|
||||
bspc config focused_border_color "$(get_xrdb color3)"
|
||||
bspc config active_border_color "$(get_xrdb color10)"
|
||||
bspc config presel_border_color "$(get_xrdb color10)"
|
||||
bspc config border_width $b_width
|
||||
|
||||
# Attempt at managing multihead
|
||||
workspaces_multimonitor &
|
||||
# Flotantes
|
||||
bspc rule -a Lxappearance state=floating
|
||||
bspc rule -a vlc state=floating
|
||||
bspc rule -a REAPER state=floating, layer=below
|
||||
bspc rule -a Sol state=floating
|
||||
bspc rule -a Pavucontrol state=floating
|
||||
bspc rule -a qsynth state=floating
|
||||
bspc rule -a Catia state=floating
|
||||
bspc rule -a Cadence state=floating
|
||||
bspc rule -a Qalculate-gtk state=floating
|
||||
bspc rule -a mpv state=floating
|
||||
bspc rule -a Gucharmap state=floating
|
||||
bspc rule -a File-roller state=floating
|
||||
bspc rule -a Catfish state=floating
|
||||
bspc rule -a obs state=floating
|
||||
bspc rule -a Pd-l2ork state=floating
|
||||
bspc rule -a PdWindow state=floating
|
||||
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
|
||||
|
||||
# Floaters
|
||||
bspc rule -a Lxappearance state=floating
|
||||
bspc rule -a vlc state=floating
|
||||
bspc rule -a REAPER state=floating, layer=below
|
||||
bspc rule -a Sol state=floating
|
||||
bspc rule -a Pavucontrol state=floating
|
||||
bspc rule -a qsynth state=floating
|
||||
bspc rule -a Catia state=floating
|
||||
bspc rule -a Cadence state=floating
|
||||
bspc rule -a Qalculate-gtk state=floating
|
||||
bspc rule -a mpv state=floating
|
||||
bspc rule -a Gucharmap state=floating
|
||||
bspc rule -a File-roller state=floating
|
||||
bspc rule -a Catfish state=floating
|
||||
bspc rule -a st-256color state=floating
|
||||
bspc rule -a obs state=floating
|
||||
bspc rule -a Pd-l2ork state=floating
|
||||
bspc rule -a PdWindow state=floating
|
||||
bspc rule -a PatchWindow state=floating
|
||||
bspc rule -a Nm-connection-editor state=floating
|
||||
bspc rule -a Godot state=floating
|
||||
# Otros
|
||||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a Oblogout manage=off
|
||||
|
||||
# Others
|
||||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a Oblogout manage=off
|
||||
|
||||
# Run in place
|
||||
bspc rule -a Firefox desktop=^2
|
||||
bspc rule -a Thunar desktop=^3
|
||||
# Fijos
|
||||
bspc rule -a Termite desktop=^1
|
||||
bspc rule -a Firefox desktop=^2
|
||||
bspc rule -a Thunar desktop=^3
|
||||
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export _JAVA_OPTIONS='-Dsun.java2d.opengl=true'
|
||||
|
||||
# External rules
|
||||
bspc config external_rules_command `$HOME/.config/bspwm/external_rules.sh`
|
||||
bspc config external_rules_command "$HOME/.config/bspwm/external_rules.sh"
|
||||
2bspwm &
|
||||
|
||||
#2bspwm &
|
||||
|
||||
. $HOME/.config/bspwm/autostart
|
||||
# shellcheck source=/dev/null
|
||||
. "$HOME/.config/bspwm/autostart"
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
[urgency_low]
|
||||
background = "#212121"
|
||||
foreground = "#e8d0c0"
|
||||
frame_color = "#212121"
|
||||
frame_color = "#5d879c"
|
||||
timeout = 5
|
||||
|
||||
[urgency_normal]
|
||||
|
|
|
@ -1,64 +1,149 @@
|
|||
# vim: filetype=neomuttrc
|
||||
# This is the general mutt config which has the settings that all accounts use.
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index \Cf noop
|
||||
|
||||
# External -------------------------------------
|
||||
source ~/.config/mutt/gpg.rc
|
||||
source etc/muttcol
|
||||
source etc/aliases
|
||||
source /home/deadguy/.config/mutt/accounts/vidaar.muttrc
|
||||
|
||||
# Hacks -----------------------------------------
|
||||
# "from" field gets 30% of remaining space, "subject" gets 70%. Remaining space is the total width minus the other fields
|
||||
set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-50) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-50) / 100))`; set index_format="%2C %Z %D %-$my_col_from.${my_col_from}'
|
||||
set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}s"'
|
||||
|
||||
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
|
||||
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
|
||||
|
||||
# General Options -----------------------------------------
|
||||
set mailcap_path = ~/.config/mutt/mailcap
|
||||
set imap_keepalive = 900
|
||||
set sleep_time = 0
|
||||
set sort = 'reverse-date'
|
||||
set editor = $EDITOR
|
||||
#set copy = no
|
||||
set timeout = "5"
|
||||
set mail_check = "10"
|
||||
set mailcap_path = ~/.config/mutt/etc/mailcap
|
||||
set date_format="%m/%d %I:%M"
|
||||
set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
|
||||
set pipe_decode
|
||||
set thorough_search
|
||||
set send_charset="utf-8"
|
||||
set check_new = yes
|
||||
set smart_wrap = yes
|
||||
set allow_ansi = yes
|
||||
set markers = no
|
||||
set mark_old = no
|
||||
set mime_forward = yes
|
||||
set smtp_authenticators = 'gssapi:login'
|
||||
set wait_key = no
|
||||
|
||||
# Index Options -----------------------------------------
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # no collapse on unread message
|
||||
set sort_re # thread based on regex
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set new_mail_command="notify-send -a neomutt -u normal 'New Email' '%n new messages, %u unread.' &"
|
||||
set date_format ="%a %d %b %R"
|
||||
#set index_format ="%2C %Z %?X?A& ? %D %-45.45F %s (%-4.4c)"
|
||||
set index_format="%4C %Z %{%b %d %R} %-15.15L (%?l?%4l&%4c?) %s"
|
||||
set alias_format = " %4n %t %-20a %r "
|
||||
|
||||
# Header Options -------------------------------------
|
||||
set hdrs
|
||||
ignore "Authentication-Results:"
|
||||
ignore "DomainKey-Signature:"
|
||||
ignore "DKIM-Signature:"
|
||||
unignore from: to: cc: date: subject:
|
||||
unhdr_order *
|
||||
hdr_order date: from: to: subject: cc:
|
||||
unignore x-mailing-list: posted-to:
|
||||
unignore x-mailer:
|
||||
|
||||
# Mail Options -------------------------------------
|
||||
set use_from = yes
|
||||
set envelope_from # which from?
|
||||
set fast_reply # skip to compose when replying
|
||||
set sendmail_wait = 1 # wait for sending to complete
|
||||
set attribution = "%d %n:" # set the attribution
|
||||
set reply_to # reply to Reply to: field
|
||||
set skip_quoted_offset = 3
|
||||
set sig_dashes # dashes before sig
|
||||
set edit_headers # show headers when composing
|
||||
set fcc_attach # save attachments with the body
|
||||
unset mime_forward # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
auto_view text/html
|
||||
auto_view application/pdf
|
||||
alternative_order text/plain text/enriched text/html
|
||||
set rfc2047_parameters = yes
|
||||
|
||||
# General remappings
|
||||
# Status Bar -----------------------------------------
|
||||
set status_chars = " *%A"
|
||||
set status_format = "──┄┄╼ %f: %m Messages ╾┄┄──────────┈%?n? %n New?%?d?, %d to Delete?%?t?, %t Tagged?%?p?, %p Postponed?%?l? %l Total ?┈───%>─┤ %P ├───"
|
||||
color status magenta default
|
||||
|
||||
# Editor -------------------------------------
|
||||
set editor='nvim + -c "set nocp" -c "set textwidth=80" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"'
|
||||
|
||||
# Sidebar -------------------------------------
|
||||
set sidebar_visible = yes
|
||||
set sidebar_width = 20
|
||||
set sidebar_short_path = yes
|
||||
set sidebar_next_new_wrap = yes
|
||||
set sidebar_folder_indent = yes
|
||||
set sidebar_new_mail_only = no
|
||||
set sidebar_sort_method = path
|
||||
set mail_check_stats
|
||||
set imap_check_subscribed = yes
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||
|
||||
# Bindings -------------------------------------
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index \Cf noop
|
||||
bind editor <space> noop
|
||||
bind index G last-entry
|
||||
bind index gg first-entry
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
bind pager gg top
|
||||
bind pager G bottom
|
||||
bind index d half-down
|
||||
bind index u half-up
|
||||
bind index D delete-message
|
||||
bind index U undelete-message
|
||||
bind index F search
|
||||
bind pager <up> previous-line
|
||||
bind pager <down> next-line
|
||||
bind pager <left> previous-undeleted
|
||||
bind pager <right> next-undeleted
|
||||
bind index D half-down
|
||||
bind index U half-up
|
||||
bind index d delete-message
|
||||
bind index u undelete-message
|
||||
bind index <left> previous-unread
|
||||
bind index <right> next-unread
|
||||
bind index,pager R group-reply
|
||||
macro index,pager S '<sync-mailbox><shell-escape>pkill -RTMIN+12 i3blocks<enter>'
|
||||
macro index,pager \Cu |urlview\n
|
||||
macro index,pager ,, |urlview\n
|
||||
|
||||
# View attachments properly.
|
||||
macro index,pager S '<sync-mailbox>
|
||||
bind index,pager k sidebar-prev
|
||||
bind index,pager j sidebar-next
|
||||
bind index,pager l sidebar-open
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
bind attach <return> view-mailcap
|
||||
set fast_reply # skip to compose when replying
|
||||
set fcc_attach # save attachments with the body
|
||||
unset mime_forward # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set forward_quote # include message in forwards
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
|
||||
# Macros -------------------------------------
|
||||
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
|
||||
|
||||
macro attach 'V' "<pipe-entry>cat >~/.cache/mutt/mail.html && $BROWSER ~/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html<enter>"
|
||||
|
||||
macro index,pager U "<enter-command>set pipe_decode = yes<enter><pipe-message>urlview<enter><enter-command>set pipe_decode = no<enter>""view URLs"
|
||||
|
||||
macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
|
||||
<enter-command> unset pipe_decode<enter>\
|
||||
<pipe-message>extract_url<enter>\
|
||||
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
|
||||
|
||||
macro index,pager <F1> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/vidaar.muttrc<enter><change-folder>!<enter>'
|
||||
|
||||
macro index,pager <F2> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>'
|
||||
|
||||
#Ctrl-R to mark all as read
|
||||
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||
|
||||
#sync email
|
||||
macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
|
||||
macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
|
||||
macro index O "<shell-escape>$HOME/bin/mailsync.sh<enter>" "run offlineimap to sync all mail"
|
||||
macro index o "<shell-escape>$HOME/bin/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
|
||||
|
||||
#copy/move dialogs
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
|
@ -66,22 +151,4 @@ macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
|||
|
||||
# Notmuch searching
|
||||
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
|
||||
macro index A "<limit>all\n" "show all messages (undo limit)"
|
||||
|
||||
# Sidebar mappings
|
||||
set sidebar_visible = yes
|
||||
set sidebar_width = 20
|
||||
set sidebar_short_path = yes
|
||||
set sidebar_next_new_wrap = yes
|
||||
set mail_check_stats
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
bind index,pager \Co sidebar-open
|
||||
bind index,pager <F3> sidebar-page-up
|
||||
bind index,pager <F4> sidebar-page-down
|
||||
bind index,pager \Cp sidebar-prev-new
|
||||
bind index,pager \Cn sidebar-next-new
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
|
||||
source personal.muttrc
|
||||
macro index A "<limit>all\n" "show all messages (undo limit)"
|
|
@ -1,152 +0,0 @@
|
|||
# vim: filetype=neomuttrc
|
||||
|
||||
# External -------------------------------------
|
||||
source ~/.config/mutt/gpg.rc
|
||||
source etc/muttcol
|
||||
source etc/aliases
|
||||
source /home/deadguy/.config/mutt/accounts/vidaar.muttrc
|
||||
|
||||
# Hacks -----------------------------------------
|
||||
# "from" field gets 30% of remaining space, "subject" gets 70%. Remaining space is the total width minus the other fields
|
||||
set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-50) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-50) / 100))`; set index_format="%2C %Z %D %-$my_col_from.${my_col_from}'
|
||||
set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}s"'
|
||||
|
||||
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
|
||||
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
|
||||
|
||||
# General Options -----------------------------------------
|
||||
set mailcap_path = ~/.config/mutt/mailcap
|
||||
set imap_keepalive = 900
|
||||
set sleep_time = 0
|
||||
set pipe_decode
|
||||
set thorough_search
|
||||
set send_charset="utf-8"
|
||||
set check_new = yes
|
||||
set smart_wrap = yes
|
||||
set allow_ansi = yes
|
||||
set markers = no
|
||||
set smtp_authenticators = 'gssapi:login'
|
||||
set wait_key = no
|
||||
|
||||
# Index Options -----------------------------------------
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # no collapse on unread message
|
||||
set sort_re # thread based on regex
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set new_mail_command="notify-send -a neomutt -u normal 'New Email' '%n new messages, %u unread.' &"
|
||||
set date_format ="%a %d %b %R"
|
||||
#set index_format ="%2C %Z %?X?A& ? %D %-45.45F %s (%-4.4c)"
|
||||
set index_format="%4C %Z %{%b %d %R} %-15.15L (%?l?%4l&%4c?) %s"
|
||||
set alias_format = " %4n %t %-20a %r "
|
||||
|
||||
# Header Options -------------------------------------
|
||||
set hdrs
|
||||
ignore "Authentication-Results:"
|
||||
ignore "DomainKey-Signature:"
|
||||
ignore "DKIM-Signature:"
|
||||
unignore from: to: cc: date: subject:
|
||||
unhdr_order *
|
||||
hdr_order date: from: to: subject: cc:
|
||||
unignore x-mailing-list: posted-to:
|
||||
unignore x-mailer:
|
||||
|
||||
# Mail Options -------------------------------------
|
||||
set use_from = yes
|
||||
set envelope_from # which from?
|
||||
set fast_reply # skip to compose when replying
|
||||
set sendmail_wait = 1 # wait for sending to complete
|
||||
set attribution = "%d %n:" # set the attribution
|
||||
set reply_to # reply to Reply to: field
|
||||
set skip_quoted_offset = 3
|
||||
set sig_dashes # dashes before sig
|
||||
set edit_headers # show headers when composing
|
||||
set fcc_attach # save attachments with the body
|
||||
unset mime_forward # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
auto_view text/html
|
||||
auto_view application/pdf
|
||||
alternative_order text/plain text/enriched text/html
|
||||
set rfc2047_parameters = yes
|
||||
|
||||
# Status Bar -----------------------------------------
|
||||
set status_chars = " *%A"
|
||||
set status_format = "──┄┄╼ %f: %m Messages ╾┄┄──────────┈%?n? %n New?%?d?, %d to Delete?%?t?, %t Tagged?%?p?, %p Postponed?%?l? %l Total ?┈───%>─┤ %P ├───"
|
||||
color status magenta default
|
||||
|
||||
# Editor -------------------------------------
|
||||
set editor='nvim + -c "set nocp" -c "set textwidth=72" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"'
|
||||
|
||||
# Sidebar -------------------------------------
|
||||
set sidebar_visible = yes
|
||||
set sidebar_width = 20
|
||||
set sidebar_short_path = yes
|
||||
set sidebar_next_new_wrap = yes
|
||||
set sidebar_folder_indent = yes
|
||||
set sidebar_new_mail_only = no
|
||||
set sidebar_sort_method = path
|
||||
set mail_check_stats
|
||||
set imap_check_subscribed = yes
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||
|
||||
# Bindings -------------------------------------
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index \Cf noop
|
||||
bind editor <space> noop
|
||||
bind index G last-entry
|
||||
bind index gg first-entry
|
||||
bind index F search
|
||||
bind pager <up> previous-line
|
||||
bind pager <down> next-line
|
||||
bind pager <left> previous-undeleted
|
||||
bind pager <right> next-undeleted
|
||||
bind index D half-down
|
||||
bind index U half-up
|
||||
bind index d delete-message
|
||||
bind index u undelete-message
|
||||
bind index <left> previous-unread
|
||||
bind index <right> next-unread
|
||||
bind index,pager R group-reply
|
||||
macro index,pager S '<sync-mailbox>
|
||||
bind index,pager k sidebar-prev
|
||||
bind index,pager j sidebar-next
|
||||
bind index,pager l sidebar-open
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
bind attach <return> view-mailcap
|
||||
|
||||
# Macros -------------------------------------
|
||||
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
|
||||
|
||||
macro attach 'V' "<pipe-entry>cat >~/.cache/mutt/mail.html && $BROWSER ~/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html<enter>"
|
||||
|
||||
macro index,pager U "<enter-command>set pipe_decode = yes<enter><pipe-message>urlview<enter><enter-command>set pipe_decode = no<enter>""view URLs"
|
||||
|
||||
macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
|
||||
<enter-command> unset pipe_decode<enter>\
|
||||
<pipe-message>extract_url<enter>\
|
||||
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
|
||||
|
||||
macro index,pager <F1> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/vidaar.muttrc<enter><change-folder>!<enter>'
|
||||
|
||||
macro index,pager <F2> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>'
|
||||
|
||||
#Ctrl-R to mark all as read
|
||||
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||
|
||||
#sync email
|
||||
macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
|
||||
macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
|
||||
|
||||
#copy/move dialogs
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||
|
||||
# Notmuch searching
|
||||
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
|
||||
macro index A "<limit>all\n" "show all messages (undo limit)"
|
|
@ -10,9 +10,8 @@ mpd_music_dir = "~/Music/Albums"
|
|||
visualizer_fifo_path = "/tmp/mpd.fifo"
|
||||
visualizer_output_name = "mpd spectrum"
|
||||
visualizer_type = "wave_filled" (wave wave_filled spectrum ellipse)
|
||||
visualizer_in_stereo = no
|
||||
visualizer_in_stereo = yes
|
||||
visualizer_color = "red,yellow,green,cyan,blue,red,yellow,green,cyan,blue,red,yellow,green,cyan,blue,red"
|
||||
visualizer_look = ●▍
|
||||
visualizer_sync_interval = 10
|
||||
|
||||
# COLORS
|
||||
|
@ -24,8 +23,8 @@ header_window_color = cyan
|
|||
volume_color = red
|
||||
state_line_color = white
|
||||
statusbar_color = magenta
|
||||
empty_tag_color = "blue"
|
||||
state_flags_color = "red"
|
||||
empty_tag_color = blue
|
||||
state_flags_color = red
|
||||
|
||||
# HEADER
|
||||
alternative_header_first_line_format = "$8%t$9"
|
||||
|
@ -34,8 +33,8 @@ alternative_header_second_line_format = "$b$8{%a}|{%A} - %b$9$/b"
|
|||
# SONG
|
||||
song_list_format = "$4 %a $R $8 %t $5 %n $6 %l"
|
||||
song_status_format = "{$5%A$9 - }$3%b"
|
||||
song_columns_list_format = "(40)[red]{a} (46)[yellow]{tr} (6f)[blue]{nr} (8f)[magenta]{lr}"
|
||||
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"
|
||||
|
@ -100,4 +99,4 @@ incremental_seeking = yes
|
|||
follow_now_playing_lyrics = no
|
||||
store_lyrics_in_song_dir = no
|
||||
|
||||
execute_on_song_change = "/home/deadguy/bin/cover"
|
||||
execute_on_song_change = "/home/deadguy/bin/tapa"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
augroup manlaunchtoc
|
||||
autocmd!
|
||||
if has('nvim')
|
||||
autocmd FileType man
|
||||
\ call man#show_toc() |
|
||||
\ setlocal laststatus=0 nonumber norelativenumber |
|
||||
\ nnoremap <buffer> l <Enter> |
|
||||
\ wincmd H |
|
||||
\ vert resize 35 |
|
||||
\ wincmd p
|
||||
endif
|
||||
augroup end
|
|
@ -0,0 +1,2 @@
|
|||
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
|
||||
highlight BadWhitespace ctermbg=red guibg=darkred
|
|
@ -0,0 +1 @@
|
|||
au BufRead,BufNewFile *.scd,*.sc setlocal ft=supercollider
|
|
@ -0,0 +1,2 @@
|
|||
autocmd BufReadPre *.docx set ro
|
||||
autocmd BufReadPost *.docx %!docx2txt.pl
|
|
@ -0,0 +1,9 @@
|
|||
highlight clear SpellBad
|
||||
highlight SpellBad term=standout ctermfg=1
|
||||
highlight SpellBad term=underline cterm=underline
|
||||
highlight clear SpellCap
|
||||
highlight SpellCap term=underline cterm=underline
|
||||
highlight clear SpellRare
|
||||
highlight SpellRare term=underline cterm=underline
|
||||
highlight clear SpellLocal
|
||||
highlight SpellLocal term=underline cterm=underline
|
|
@ -3,3 +3,4 @@ setl sts=2
|
|||
setl sw=2
|
||||
setl et
|
||||
setl tw=80
|
||||
setlocal colorcolumn=79
|
|
@ -6,11 +6,13 @@ setlocal tw=80
|
|||
setlocal colorcolumn=79
|
||||
setlocal smartindent
|
||||
setlocal autoindent
|
||||
set fileformat=unix
|
||||
setlocal formatoptions+=croq
|
||||
setlocal omnifunc=pythoncomplete#Complete
|
||||
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class,with
|
||||
|
||||
nnoremap <leader>y :0,$!yapf<Cr>
|
||||
nnoremap <buffer> <localleader>y :0,$!yapf<Cr>
|
||||
nnoremap <buffer> <localleader>c I#<esc>
|
||||
|
||||
let g:ale_sign_column_always = 1
|
||||
let g:ale_set_loclist = 0
|
||||
|
|
|
@ -3,10 +3,10 @@ setlocal sw=2
|
|||
setlocal tabstop=2
|
||||
setlocal expandtab
|
||||
setlocal textwidth=80
|
||||
setlocal colorcolumn=79
|
||||
setlocal softtabstop=2
|
||||
setlocal linebreak
|
||||
setlocal autoindent
|
||||
setl spelllang=es
|
||||
setl updatetime=2000
|
||||
|
||||
" Makes autocompletion for references nice
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
" Important stuff {{{
|
||||
scriptencoding utf-8 " Set utf-8 as default script encoding
|
||||
let g:loaded_python_provider=1 " Disable python 2 interface
|
||||
let g:python_host_skip_check=1 " Skip python 2 host check
|
||||
let g:python3_host_prog = '/usr/bin/python3'
|
||||
let g:tagbar_ctags_bin = '/usr/bin/ctags'
|
||||
set inccommand=nosplit " Live preview of substitutes and other similar commands
|
||||
let python_highlight_all=1
|
||||
|
||||
" Plug updates itself automatically
|
||||
if empty(glob('~/.config/nvim/autoload/plug.vim'))
|
||||
|
@ -16,6 +18,7 @@ endif
|
|||
" Plugins {{{
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'junegunn/vim-plug'
|
||||
Plug 'jpalardy/vim-slime'
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': [':UpdateRemotePlugins', ':set runtimepath+=~/.config/nvim/plugged/deoplete.nvim/'] }
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'zchee/deoplete-jedi'
|
||||
|
@ -24,10 +27,9 @@ Plug 'sbdchd/neoformat'
|
|||
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'lervag/vimtex', { 'for': 'tex' }
|
||||
"Plug 'supercollider/scvim', { 'for': 'scd' }
|
||||
Plug '/usr/bin/fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
|
||||
Plug 'zefei/vim-wintabs'
|
||||
Plug 'chrisbra/vim-diff-enhanced'
|
||||
|
||||
call plug#end()
|
||||
let g:plug_window = 'rightbelow topleft new'
|
||||
|
@ -39,18 +41,20 @@ let g:plug_window = 'rightbelow topleft new'
|
|||
" - :b lets you autocomplete any open buffer
|
||||
set path+=**
|
||||
|
||||
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
|
||||
"let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
"set guicursor=n-i-ve:hor,v-r:block,a:blinkon0
|
||||
|
||||
set binary
|
||||
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
|
||||
set encoding=utf-8 " The encoding displayed.
|
||||
set fileencoding=utf-8 " The encoding written to file.
|
||||
scriptencoding utf-8 " Set utf-8 as default script encoding
|
||||
let mapleader="\<SPACE>"
|
||||
let localleader=","
|
||||
set shell=/bin/zsh " Setting shell to zsh
|
||||
set number " Line numbers on
|
||||
set showmode " Always show mode
|
||||
set mousemodel=popup
|
||||
set linebreak
|
||||
set breakindent
|
||||
set textwidth=120 " Text width is 120 characters
|
||||
set cmdheight=1 " Command line height
|
||||
set cmdwinheight=5 " Command-line lines
|
||||
|
@ -103,8 +107,6 @@ set undofile
|
|||
set undolevels=1000
|
||||
set undoreload=10000
|
||||
set undodir=$HOME/.config/nvim/undo
|
||||
set termguicolors
|
||||
set fillchars="vert:"
|
||||
set nrformats-=octal
|
||||
set pastetoggle=<F12>
|
||||
set shortmess=aoOtIWcFs " Shorten messages and don't show intro
|
||||
|
@ -141,8 +143,14 @@ set wildignore+=__pycache__,*.egg-info
|
|||
set wildmode=longest:list,full
|
||||
|
||||
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
||||
highlight TermCursor ctermfg=green guifg=green
|
||||
|
||||
colorscheme turtles
|
||||
highlight MatchParen cterm=bold ctermbg=none ctermfg=9
|
||||
highlight TermCursor ctermfg=green guifg=green
|
||||
highlight DiffAdd ctermbg=2
|
||||
highlight DiffDelete ctermbg=1
|
||||
highlight DiffChange ctermbg=238
|
||||
highlight DiffChange ctermbg=242
|
||||
" }}}
|
||||
|
||||
" Statusline {{{
|
||||
|
@ -198,7 +206,7 @@ if !exists("autocommands_loaded") && has("autocmd")
|
|||
let autocommands_loaded = 1
|
||||
|
||||
autocmd BufWritePre * :%s/\s\+$//e " Auto remove all trailing whitespace on :w
|
||||
:au FocusLost * :wa " Autosave files when focus is lost
|
||||
":au FocusLost * :wa " Autosave files when focus is lost
|
||||
|
||||
" Disables automatic commenting on newline
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
|
@ -211,7 +219,7 @@ if !exists("autocommands_loaded") && has("autocmd")
|
|||
au BufRead,BufNewFile *.bash* set filetype=sh
|
||||
aug END
|
||||
endif
|
||||
"}}}
|
||||
" }}}
|
||||
|
||||
" Read-Only files {{{
|
||||
if &readonly
|
||||
|
@ -236,6 +244,13 @@ let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
|
|||
let g:netrw_winsize=25
|
||||
" }}}
|
||||
|
||||
" Slime {{{
|
||||
"let g:slime_target = "neovim"
|
||||
"let g:slime_python_ipython = 1
|
||||
"let g:slime_dont_ask_default = 1
|
||||
"let g:slime_paste_file = '~/.slime_paste'
|
||||
" }}}
|
||||
|
||||
" {{{ Ale
|
||||
let g:ale_set_highlights = 1
|
||||
let g:ale_fixers = { 'python': 'autopep8' }
|
||||
|
@ -244,7 +259,9 @@ let g:ale_python_pylint_options = "--disable=C"
|
|||
let g:ale_python_flake8_options = "--ignore=E221"
|
||||
let g:ale_echo_msg_error_str = 'E'
|
||||
let g:ale_echo_msg_warning_str = 'W'
|
||||
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
|
||||
let g:ale_echo_msg_format = '[%linter%] %s% (code)% [%severity%]'
|
||||
highlight ALEError cterm=undercurl ctermfg=196
|
||||
highlight ALEInfo cterm=undercurl ctermfg=14
|
||||
hi ALEErrorSign ctermfg=red ctermbg=none
|
||||
hi ALEWarningSign ctermfg=yellow ctermbg=none
|
||||
" }}}
|
||||
|
@ -265,96 +282,20 @@ let g:context_filetype#same_filetypes = {}
|
|||
let g:context_filetype#same_filetypes._ = '_'
|
||||
"}}}
|
||||
|
||||
" FZF {{{
|
||||
" An action can be a reference to a function that processes selected lines
|
||||
function! s:build_quickfix_list(lines)
|
||||
call setqflist(map(copy(a:lines), '{ "filename": v:val }'))
|
||||
copen
|
||||
cc
|
||||
endfunction
|
||||
|
||||
let g:fzf_action = {
|
||||
\ 'ctrl-q': function('s:build_quickfix_list'),
|
||||
\ 'ctrl-t': 'tab split',
|
||||
\ 'ctrl-x': 'split',
|
||||
\ 'ctrl-v': 'vsplit' }
|
||||
|
||||
" Default fzf layout: - down / up / left / right
|
||||
let g:fzf_layout = { 'down': '~50%' }
|
||||
|
||||
" You can set up fzf window using a Vim command
|
||||
let g:fzf_layout = { 'window': 'enew' }
|
||||
let g:fzf_layout = { 'window': '-tabnew' }
|
||||
"let g:fzf_layout = { 'window': '10split enew' }
|
||||
|
||||
" Customize fzf colors to match your color scheme
|
||||
let g:fzf_colors =
|
||||
\ { 'fg': ['fg', 'Normal'],
|
||||
\ 'bg': ['bg', 'Normal'],
|
||||
\ 'hl': ['fg', 'Comment'],
|
||||
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
||||
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
||||
\ 'hl+': ['fg', 'Statement'],
|
||||
\ 'info': ['fg', 'PreProc'],
|
||||
\ 'border': ['fg', 'Ignore'],
|
||||
\ 'prompt': ['fg', 'Conditional'],
|
||||
\ 'pointer': ['fg', 'Exception'],
|
||||
\ 'marker': ['fg', 'Keyword'],
|
||||
\ 'spinner': ['fg', 'Label'],
|
||||
\ 'header': ['fg', 'Comment'] }
|
||||
|
||||
" Enable per-command history.
|
||||
" CTRL-N and CTRL-P will be automatically bound to next-history and
|
||||
" previous-history instead of down and up. If you don't like the change,
|
||||
" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS.
|
||||
let g:fzf_history_dir = '~/.local/share/fzf-history'
|
||||
|
||||
function! s:fzf_statusline()
|
||||
highlight fzf1 ctermfg=161 ctermbg=251
|
||||
highlight fzf2 ctermfg=23 ctermbg=251
|
||||
highlight fzf3 ctermfg=237 ctermbg=251
|
||||
setlocal statusline=%#fzf1#\ >\ %#fzf2#fz%#fzf3#f
|
||||
endfunction
|
||||
autocmd! User FzfStatusLine call <SID>fzf_statusline()
|
||||
|
||||
" [Buffers] Jump to the existing window if possible
|
||||
let g:fzf_buffers_jump = 1
|
||||
|
||||
" [Commands] --expect expression for directly executing the command
|
||||
let g:fzf_commands_expect = 'alt-enter,ctrl-x'
|
||||
|
||||
" Override Colors command. You can safely do this in your .vimrc as fzf.vim
|
||||
" will not override existing commands.
|
||||
command! -bang Colors
|
||||
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'}, <bang>0)
|
||||
|
||||
" :Ag - Start fzf
|
||||
" :Ag! - Start fzf in fullscreen and display the preview window above
|
||||
command! -bang -nargs=* Ag
|
||||
\ call fzf#vim#ag(<q-args>,
|
||||
\ <bang>0 ? fzf#vim#with_preview('up:60%')
|
||||
\ : fzf#vim#with_preview('right:50%'),
|
||||
\ <bang>0)
|
||||
|
||||
" Likewise, Files command with preview window
|
||||
command! -bang -nargs=? -complete=dir Files
|
||||
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
|
||||
" }}}
|
||||
|
||||
" Wintabs {{{
|
||||
let g:wintabs_ui_active_higroup = 'TabLineSel'
|
||||
let g:wintabs_switchbuf='useopen,usetab'
|
||||
let g:wintabs_display='statusline'
|
||||
|
||||
let intertabSpace= ''
|
||||
let activeVimTabChar = '▋'
|
||||
let activeVimTabChar = '┃ '
|
||||
let g:wintabs_ui_sep_leftmost=activeVimTabChar
|
||||
let g:wintabs_ui_sep_inbetween=intertabSpace
|
||||
let g:wintabs_ui_sep_rightmost=intertabSpace
|
||||
let g:wintabs_ui_sep_inbetween=' '
|
||||
let g:wintabs_ui_sep_rightmost=' '
|
||||
let g:wintabs_ui_active_vimtab_left=activeVimTabChar
|
||||
let g:wintabs_ui_active_vimtab_right=intertabSpace
|
||||
let g:wintabs_ui_active_vimtab_right=' '
|
||||
let g:wintabs_ui_active_left=activeVimTabChar
|
||||
let g:wintabs_ui_active_right=intertabSpace
|
||||
let g:wintabs_ui_active_right=' '
|
||||
let g:wintabs_ui_buffer_name_format='%t'
|
||||
let g:wintabs_ui_vimtab_name_format='%n'
|
||||
let g:wintabs_ui_arrow_left='«'
|
||||
|
@ -423,6 +364,7 @@ nnoremap <leader>R :call <SID>ranger()<CR>
|
|||
map <F8> :!w<Enter>:!pdflatex <C-r>%<Enter>
|
||||
map <F6> :setlocal spell! spelllang=es<CR>
|
||||
map <F7> :setlocal spell! spelllang=en<CR>
|
||||
map <F9> :set nospell<CR>
|
||||
|
||||
nmap <silent> <F10> <Plug>(ale_previous_wrap)
|
||||
nmap <silent> <F11> <Plug>(ale_next_wrap)
|
||||
|
@ -430,27 +372,6 @@ nmap <silent> <F11> <Plug>(ale_next_wrap)
|
|||
nnoremap <leader>f :Neoformat<CR>
|
||||
vnoremap <leader>f :Neoformat<CR>
|
||||
|
||||
" FZF really is a lifechanger
|
||||
nnoremap <F4> :FZF<CR>
|
||||
nnoremap <leader>b :Buffers<cr>
|
||||
nnoremap <leader>h :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)
|
||||
xmap <leader><tab> <plug>(fzf-maps-x)
|
||||
omap <leader><tab> <plug>(fzf-maps-o)
|
||||
|
||||
" Insert mode completion
|
||||
imap <c-x><c-k> <plug>(fzf-complete-word)
|
||||
imap <c-x><c-f> <plug>(fzf-complete-path)
|
||||
imap <c-x><c-j> <plug>(fzf-complete-file-ag)
|
||||
imap <c-x><c-l> <plug>(fzf-complete-line)
|
||||
|
||||
nnoremap <silent> <F3> :NERDTreeFind<CR>
|
||||
nnoremap <silent> <F2> :NERDTreeToggle<CR>
|
||||
nnoremap <leader>pi :PlugInstall<CR>
|
||||
|
@ -491,7 +412,6 @@ nnoremap <leader>i mzgg=G`z<CR>
|
|||
|
||||
" deedee
|
||||
nnoremap - dd<CR>p
|
||||
nnoremap _ ddkp
|
||||
inoremap <c-d> <esc>ddi
|
||||
|
||||
" LOUD
|
||||
|
@ -508,12 +428,6 @@ nnoremap <silent> <leader><space> :noh<C-R>=has('diff')?'<Bar>diffupdate':''<CR>
|
|||
nnoremap Q <nop>
|
||||
map q <nop>
|
||||
|
||||
" Move vertically by visual line
|
||||
"nnoremap j gj
|
||||
"nnoremap k gk
|
||||
"vnoremap j gj
|
||||
"vnoremap k gk
|
||||
|
||||
" j = gj :: k = gk while preserving numbered jumps ie. 12j or 30k
|
||||
nnoremap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
||||
nnoremap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
||||
|
@ -530,6 +444,8 @@ inoremap <silent> <Home> <C-o>g<Home>
|
|||
inoremap <silent> <End> <C-o>g<End>
|
||||
nnoremap H 0
|
||||
nnoremap L $
|
||||
vnoremap H 0
|
||||
vnoremap L $
|
||||
noremap Y 0y$
|
||||
|
||||
" Center screen when jumping and moving
|
||||
|
@ -550,13 +466,17 @@ vnoremap <C-b> <C-b>zz
|
|||
nnoremap <C-Tab> :tabnew<CR>
|
||||
nnoremap <M-Tab> <Plug>(wintabs_close)<CR>
|
||||
nnoremap <Tab> <Plug>(wintabs_next)<CR>
|
||||
nnoremap <S-Tab> <<Plug>(wintabs_previous)<CR>
|
||||
nnoremap <S-Tab> <Plug>(wintabs_previous)<CR>
|
||||
|
||||
" Alt to switch windows
|
||||
nnoremap <M-j> <C-W><C-J>
|
||||
nnoremap <M-k> <C-W><C-K>
|
||||
nnoremap <M-l> <C-W><C-L>
|
||||
nnoremap <M-h> <C-W><C-H>
|
||||
inoremap <A-h> <Esc><C-w>h
|
||||
inoremap <A-j> <Esc><C-w>j
|
||||
inoremap <A-k> <Esc><C-w>k
|
||||
inoremap <A-l> <Esc><C-w>l
|
||||
|
||||
" Terminal movement
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
|
@ -577,6 +497,13 @@ tnoremap <M-l> <C-\><C-n><C-w>l
|
|||
:command! QA qa
|
||||
" }}}
|
||||
|
||||
" Enhanced Diff {{{
|
||||
" started In Diff-Mode set diffexpr (plugin not loaded yet)
|
||||
if &diff
|
||||
let &diffexpr='EnhancedDiff#Diff("git diff", "--diff-algorithm=patience")'
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" Stuff i'll probably use if i remember to {{{
|
||||
" global replace
|
||||
vnoremap <Leader>sw "hy
|
||||
|
|
|
@ -0,0 +1,130 @@
|
|||
" Copyright 2007 Alex Norman
|
||||
" This file is part of SCVIM.
|
||||
"
|
||||
" SCVIM is free software: you can redistribute it and/or modify
|
||||
" it under the terms of the GNU General Public License as published by
|
||||
" the Free Software Foundation, either version 3 of the License, or
|
||||
" (at your option) any later version.
|
||||
"
|
||||
" SCVIM is distributed in the hope that it will be useful,
|
||||
" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
" GNU General Public License for more details.
|
||||
"
|
||||
" You should have received a copy of the GNU General Public License
|
||||
" along with SCVIM. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
" Vim syntax file
|
||||
" Language: supercollider
|
||||
" Maintainer: Stephen Lumenta <stephen.lumenta@gmail.com>
|
||||
" Version: 0.2
|
||||
" Last change: 2012-03-31
|
||||
|
||||
syn clear
|
||||
|
||||
syn match scAoperator "{"
|
||||
syn match scAoperator "}"
|
||||
|
||||
"syn match scVariable "\%(var.*\)\@<=\(\l\w*\)" "lowercase followed by wordchar
|
||||
syn match scGlobvariable "\~\l\w*" "~ followed by lowercase followed by wordchar
|
||||
syn match scVar "\s*var\s"
|
||||
syn match scVar "\s*classvar\s"
|
||||
syn match scArg "\s*arg\s"
|
||||
|
||||
" symbols, strings, numbers
|
||||
syn match scSymbol "\v(\w|\\)@<!\'.{-}(\\)@<!\'" "\{-} is a non greedy version of *
|
||||
syn match scSymbol "\v\$@<!\\\w\w*"
|
||||
syn match scSymbol "\\\\"
|
||||
syn match scSymbol "\w\+:"
|
||||
|
||||
syn region scString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
|
||||
syn match scChar "\$\\\?."
|
||||
|
||||
syn match scInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[xX]\x\+\%(_\x\+\)*\>" display
|
||||
syn match scInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0[dD]\)\=\%(0\|[1-9]\d*\%(_\d\+\)*\)\>" display
|
||||
syn match scInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[oO]\=\o\+\%(_\o\+\)*\>" display
|
||||
syn match scInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[bB][01]\+\%(_[01]\+\)*\>" display
|
||||
syn match scFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\.\d\+\%(_\d\+\)*\>" display
|
||||
syn match scFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\%(\.\d\+\%(_\d\+\)*\)\=\%([eE][-+]\=\d\+\%(_\d\+\)*\)\>" display
|
||||
syn match scInfinity "inf"
|
||||
|
||||
" keywords
|
||||
syn match scControl "\<\%(break\|rescue\|return\)\>[?!]\@!"
|
||||
syn match scKeyword "\<\%(super\|this\|new\|yield\)\>[?!]\@!"
|
||||
syn match scBoolean "\<\%(true\|false\)\>[?!]\@!"
|
||||
syn match scControl "\<\%(case\|begin\|do\|forBy\|loop\|if\|while\|else\)\>[?!]\@!"
|
||||
|
||||
" scsynth
|
||||
syn match scArate "\v\.@<=ar(\w)@!"
|
||||
syn match scKrate "\v\.@<=kr(\w)@!"
|
||||
|
||||
" operators
|
||||
syn keyword scUnaryoperator neg reciprocal abs floor ceil frac sign squared cubed sqrt exp midicps cpsmidi midiratio ratiomidi dbamp ampdb octcps cpsoct log log2 log10 sin cos tan asin acos atan sinh cosh tanh distort softclip isPositive isNegative isStrictlyPositive
|
||||
syn keyword scBinaryoperator min max round trunc atan2 hypot hypotApx ring1 ring2 ring3 ring4 sumsqr difsqr sqrsum sqrdif absdif thresh amclip scaleneg clip2 wrap2 fold2 excess + - *
|
||||
|
||||
syn match scBinaryoperator "+"
|
||||
syn match scBinaryoperator "-"
|
||||
syn match scBinaryoperator "*"
|
||||
syn match scBinaryoperator "/"
|
||||
syn match scBinaryoperator "%"
|
||||
syn match scBinaryoperator "\*\*"
|
||||
syn match scBinaryoperator "<"
|
||||
syn match scBinaryoperator "<="
|
||||
syn match scBinaryoperator ">"
|
||||
syn match scBinaryoperator "<>"
|
||||
syn match scBinaryoperator ">="
|
||||
syn match scBinaryoperator "="
|
||||
syn match scBinaryoperator "=="
|
||||
syn match scBinaryoperator "==="
|
||||
syn match scBinaryoperator "!="
|
||||
syn match scBinaryoperator "!=="
|
||||
syn match scBinaryoperator "&"
|
||||
syn match scBinaryoperator "|"
|
||||
syn match scBinaryoperator "<!"
|
||||
syn match scBinaryoperator "?"
|
||||
syn match scBinaryoperator "??"
|
||||
syn match scBinaryoperator "!?"
|
||||
syn match scBinaryoperator "!"
|
||||
syn match scBinaryoperator "#"
|
||||
syn match scBinaryoperator "_"
|
||||
syn match scBinaryoperator "\.\."
|
||||
syn match scBinaryoperator "\.\.\."
|
||||
syn match scBinaryoperator "`"
|
||||
syn match scBinaryoperator ":"
|
||||
|
||||
" comments
|
||||
syn keyword scCommentTodo TODO FIXME XXX TBD contained
|
||||
syn match scLineComment "\/\/.*" contains=@Spell,scCommentTodo
|
||||
syn region scComment start="/\*" end="\*/" contains=@Spell,scCommentTodo
|
||||
|
||||
|
||||
" object syntax file is regenerated on startup
|
||||
runtime! syntax/supercollider_objects.vim
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""
|
||||
" linkage
|
||||
|
||||
hi def link scObject Identifier
|
||||
hi def link scBinaryoperator Special
|
||||
hi def link scUnaryoperator Special
|
||||
hi def link scAoperator Statement
|
||||
hi def link scArate Statement
|
||||
hi def link scKrate Statement
|
||||
hi def link scSymbol Constant
|
||||
hi def link scString String
|
||||
hi def link scChar String
|
||||
hi def link scInteger Number
|
||||
hi def link scInfinity Number
|
||||
hi def link scFloat Float
|
||||
hi def link scGlobVariable Define
|
||||
hi def link scComment Comment
|
||||
hi def link scLineComment Comment
|
||||
hi def link scCommentTodo Todo
|
||||
hi def link scVar Type
|
||||
hi def link scArg Type
|
||||
hi def link scControl Statement
|
||||
hi def link scKeyword Keyword
|
||||
hi def link scBoolean Boolean
|
||||
|
||||
let b:current_syntax = "supercollider"
|
|
@ -9,6 +9,7 @@ import re
|
|||
from ranger.api.commands import Command
|
||||
from ranger.core.loader import CommandLoader
|
||||
|
||||
|
||||
class empty(Command):
|
||||
""":empty
|
||||
|
||||
|
@ -18,6 +19,7 @@ class empty(Command):
|
|||
def execute(self):
|
||||
self.fm.run("rm -rf /home/myname/.Trash/{*,.[^.]*}")
|
||||
|
||||
|
||||
# fzf integration
|
||||
class fzf_select(Command):
|
||||
"""
|
||||
|
@ -32,11 +34,11 @@ class fzf_select(Command):
|
|||
import os.path
|
||||
if self.quantifier:
|
||||
# match only directories
|
||||
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
||||
command = "find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
||||
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
|
||||
else:
|
||||
# match files and directories
|
||||
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
||||
command = "find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
||||
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
|
||||
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
|
||||
stdout, stderr = fzf.communicate()
|
||||
|
@ -47,6 +49,7 @@ class fzf_select(Command):
|
|||
else:
|
||||
self.fm.select_file(fzf_file)
|
||||
|
||||
|
||||
# fzf_locate
|
||||
class fzf_locate(Command):
|
||||
"""
|
||||
|
@ -55,9 +58,9 @@ class fzf_locate(Command):
|
|||
def execute(self):
|
||||
import subprocess
|
||||
if self.quantifier:
|
||||
command="locate home | fzf -e -i"
|
||||
command = "locate home | fzf -e -i"
|
||||
else:
|
||||
command="locate home | fzf -e -i"
|
||||
command = "locate home | fzf -e -i"
|
||||
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
|
||||
stdout, stderr = fzf.communicate()
|
||||
if fzf.returncode == 0:
|
||||
|
@ -79,7 +82,6 @@ class mkcd(Command):
|
|||
def execute(self):
|
||||
from os.path import join, expanduser, lexists
|
||||
from os import makedirs
|
||||
import re
|
||||
|
||||
dirname = join(self.fm.thisdir.path, expanduser(self.rest(1)))
|
||||
if not lexists(dirname):
|
||||
|
@ -95,12 +97,13 @@ class mkcd(Command):
|
|||
if s == '..' or (s.startswith('.') and not self.fm.settings['show_hidden']):
|
||||
self.fm.cd(s)
|
||||
else:
|
||||
## We force ranger to load content before calling `scout`.
|
||||
# We force ranger to load content before calling `scout`.
|
||||
self.fm.thisdir.load_content(schedule=False)
|
||||
self.fm.execute_console('scout -ae ^{}$'.format(s))
|
||||
else:
|
||||
self.fm.notify("file/directory exists!", bad=True)
|
||||
|
||||
|
||||
class compress(Command):
|
||||
def execute(self):
|
||||
""" Compress marked files to current directory """
|
||||
|
@ -119,8 +122,8 @@ class compress(Command):
|
|||
au_flags = parts[1:]
|
||||
|
||||
descr = "compressing files in: " + os.path.basename(parts[1])
|
||||
obj = CommandLoader(args=['apack'] + au_flags + \
|
||||
[os.path.relpath(f.path, cwd.path) for f in marked_files], descr=descr)
|
||||
obj = CommandLoader(args=['apack'] + au_flags +
|
||||
[os.path.relpath(f.path, cwd.path) for f in marked_files], descr=descr)
|
||||
|
||||
obj.signal_bind('after', refresh)
|
||||
self.fm.loader.add(obj)
|
||||
|
@ -131,6 +134,7 @@ class compress(Command):
|
|||
extension = ['.zip', '.tar.gz', '.rar', '.7z']
|
||||
return ['compress ' + os.path.basename(self.fm.thisdir.path) + ext for ext in extension]
|
||||
|
||||
|
||||
class extracthere(Command):
|
||||
def execute(self):
|
||||
""" Extract copied files to current directory """
|
||||
|
@ -156,8 +160,8 @@ class extracthere(Command):
|
|||
descr = "extracting: " + os.path.basename(one_file.path)
|
||||
else:
|
||||
descr = "extracting files from: " + os.path.basename(one_file.dirname)
|
||||
obj = CommandLoader(args=['aunpack'] + au_flags \
|
||||
+ [f.path for f in copied_files], descr=descr)
|
||||
obj = CommandLoader(args=['aunpack'] + au_flags
|
||||
+ [f.path for f in copied_files], descr=descr)
|
||||
|
||||
obj.signal_bind('after', refresh)
|
||||
self.fm.loader.add(obj)
|
|
@ -1,202 +1,67 @@
|
|||
# == Options
|
||||
|
||||
# Which viewmode should be used? Possible values are:
|
||||
# miller: Use miller columns which show multiple levels of the hierarchy
|
||||
# multipane: Midnight-commander like multipane view showing all tabs next
|
||||
# to each other
|
||||
set viewmode miller
|
||||
|
||||
# How many columns are there, and what are their relative widths?
|
||||
set column_ratios 2,3,4
|
||||
|
||||
# Which files should be hidden? (regular expression)
|
||||
set column_ratios 1,3,4
|
||||
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__$
|
||||
|
||||
# Show hidden files? You can toggle this by typing 'zh'
|
||||
set show_hidden false
|
||||
|
||||
# Ask for a confirmation when running the "delete" command?
|
||||
# Valid values are "always", "never", "multiple" (default)
|
||||
# With "multiple", ranger will ask only if you delete multiple files at once.
|
||||
set confirm_on_delete always
|
||||
|
||||
# Use non-default path for file preview script?
|
||||
# ranger ships with scope.sh, a script that calls external programs (see
|
||||
# README.md for dependencies) to preview images, archives, etc.
|
||||
set preview_script ~/.config/ranger/scope.sh
|
||||
|
||||
# Use the external preview script or display simple plain text or image previews?
|
||||
set use_preview_script true
|
||||
|
||||
# Automatically count files in the directory, even before entering them?
|
||||
set automatically_count_files true
|
||||
|
||||
# Open all images in this directory when running certain image viewers
|
||||
# like feh or sxiv? You can still open selected files by marking them.
|
||||
set open_all_images true
|
||||
|
||||
# Be aware of version control systems and display information.
|
||||
set vcs_aware true
|
||||
|
||||
# State of the three backends git, hg, bzr. The possible states are
|
||||
# disabled, local (only show local info), enabled (show local and remote
|
||||
# information).
|
||||
set vcs_backend_git enabled
|
||||
set vcs_backend_hg disabled
|
||||
set vcs_backend_bzr disabled
|
||||
set vcs_backend_svn disabled
|
||||
|
||||
# Use one of the supported image preview protocols
|
||||
set preview_images false
|
||||
|
||||
# Set the preview image method
|
||||
set preview_images true
|
||||
set preview_images_method w3m
|
||||
|
||||
# Use a unicode "..." character to mark cut-off filenames?
|
||||
set unicode_ellipsis true
|
||||
|
||||
# Show dotfiles in the bookmark preview box?
|
||||
set show_hidden_bookmarks true
|
||||
|
||||
# Which colorscheme to use? These colorschemes are available by default:
|
||||
# default, jungle, snow, solarized
|
||||
set colorscheme default
|
||||
|
||||
# Preview files on the rightmost column?
|
||||
# And collapse (shrink) the last column if there is nothing to preview?
|
||||
set preview_files true
|
||||
set preview_directories true
|
||||
set collapse_preview true
|
||||
|
||||
# Save the console history on exit?
|
||||
set save_console_history false
|
||||
|
||||
# Draw the status bar on top of the browser window (default: bottom)
|
||||
set status_bar_on_top false
|
||||
|
||||
# Draw a progress bar in the status bar which displays the average state of all
|
||||
# currently running tasks which support progress bars?
|
||||
set draw_progress_bar_in_status_bar true
|
||||
|
||||
# Draw borders around columns?
|
||||
set draw_borders false
|
||||
|
||||
# Display the directory name in tabs?
|
||||
set dirname_in_tabs true
|
||||
|
||||
# Enable the mouse support?
|
||||
set mouse_enabled true
|
||||
|
||||
# Display the file size in the main column or status bar?
|
||||
set display_size_in_main_column true
|
||||
set display_size_in_status_bar true
|
||||
|
||||
# Display files tags in all columns or only in main column?
|
||||
set display_tags_in_all_columns true
|
||||
|
||||
# Set a title for the window?
|
||||
set update_title true
|
||||
|
||||
# Set the title to "ranger" in the tmux program?
|
||||
set update_tmux_title true
|
||||
|
||||
# Shorten the title if it gets long? The number defines how many
|
||||
# directories are displayed at once, 0 turns off this feature.
|
||||
set shorten_title 4
|
||||
|
||||
# Show hostname in titlebar?
|
||||
set hostname_in_titlebar false
|
||||
|
||||
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
|
||||
set tilde_in_titlebar true
|
||||
|
||||
# How many directory-changes or console-commands should be kept in history?
|
||||
set max_history_size 20
|
||||
set max_console_history_size 50
|
||||
|
||||
# Try to keep so much space between the top/bottom border when scrolling:
|
||||
set scroll_offset 8
|
||||
|
||||
# Flush the input after each key hit? (Noticeable when ranger lags)
|
||||
set flushinput true
|
||||
|
||||
# Padding on the right when there's no preview?
|
||||
# This allows you to click into the space to run the file.
|
||||
set padding_right true
|
||||
|
||||
# Save bookmarks (used with mX and `X) instantly?
|
||||
# This helps to synchronize bookmarks between multiple ranger
|
||||
# instances but leads to *slight* performance loss.
|
||||
# When false, bookmarks are saved when ranger is exited.
|
||||
set autosave_bookmarks false
|
||||
|
||||
# Save the "`" bookmark to disk. This can be used to switch to the last
|
||||
# directory by typing "``".
|
||||
set save_backtick_bookmark true
|
||||
|
||||
# You can display the "real" cumulative size of directories by using the
|
||||
# command :get_cumulative_size or typing "dc". The size is expensive to
|
||||
# calculate and will not be updated automatically. You can choose
|
||||
# to update it automatically though by turning on this option:
|
||||
set autoupdate_cumulative_size false
|
||||
|
||||
# Turning this on makes sense for screen readers:
|
||||
set show_cursor false
|
||||
|
||||
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
||||
set sort mtime
|
||||
|
||||
# Additional sorting options
|
||||
set sort_reverse false
|
||||
set sort_case_insensitive true
|
||||
set sort_directories_first true
|
||||
set sort_unicode false
|
||||
|
||||
# Enable this if key combinations with the Alt Key don't work for you.
|
||||
# (Especially on xterm)
|
||||
set xterm_alt_key false
|
||||
|
||||
# Whether to include bookmarks in cd command
|
||||
set cd_bookmarks true
|
||||
|
||||
# Changes case sensitivity for the cd command tab completion
|
||||
set cd_tab_case sensitive
|
||||
|
||||
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
|
||||
# disable this feature.
|
||||
set preview_max_size 5242880
|
||||
|
||||
# Add the highlighted file to the path in the titlebar
|
||||
set show_selection_in_titlebar true
|
||||
|
||||
# The delay that ranger idly waits for user input, in milliseconds, with a
|
||||
# resolution of 100ms. Lower delay reduces lag between directory updates but
|
||||
# increases CPU load.
|
||||
set idle_delay 2000
|
||||
|
||||
# When the metadata manager module looks for metadata, should it only look for
|
||||
# a ".metadata.json" file in the current directory, or do a deep search and
|
||||
# check all directories above the current one as well?
|
||||
set metadata_deep_search false
|
||||
|
||||
# Clear all existing filters when leaving a directory
|
||||
set clear_filters_on_dir_change true
|
||||
|
||||
# Disable displaying line numbers in main column
|
||||
set line_numbers false
|
||||
|
||||
# Start line numbers from 1 instead of 0
|
||||
set one_indexed true
|
||||
|
||||
# Save tabs on exit
|
||||
set save_tabs_on_exit false
|
||||
|
||||
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
||||
# the top and vice versa.
|
||||
set wrap_scroll true
|
||||
|
||||
# Set the global_inode_type_filter to nothing. Possible options: d, f and l for
|
||||
# directories, files and symlinks respectively.
|
||||
set global_inode_type_filter
|
||||
|
||||
# == Command Aliases in the Console
|
||||
|
@ -242,6 +107,8 @@ 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 f console find%space
|
||||
map cd console cd%space
|
||||
|
||||
# Change the line mode
|
||||
map lmf linemode filename
|
||||
|
@ -252,13 +119,13 @@ map lms linemode sizemtime
|
|||
map lmt linemode metatitle
|
||||
|
||||
# Tagging / Marking
|
||||
map t tag_toggle
|
||||
map at tag_toggle
|
||||
map ut tag_remove
|
||||
map "<any> tag_toggle tag=%any
|
||||
map <Space> mark_files toggle=True
|
||||
map v mark_files all=True toggle=True
|
||||
map va mark_files all=True toggle=True
|
||||
map uv mark_files all=True val=False
|
||||
map V toggle_visual_mode
|
||||
map vs toggle_visual_mode
|
||||
map uV toggle_visual_mode reverse=True
|
||||
|
||||
# For the nostalgics: Midnight Commander bindings
|
||||
|
@ -308,7 +175,7 @@ map ] traverse
|
|||
map ) jump_non
|
||||
|
||||
map gh cd ~
|
||||
map gu cd ~/Documents/Untref
|
||||
map gu cd ~/Documents/
|
||||
map gE cd /etc
|
||||
map gU cd /usr
|
||||
map gd cd ~/Downloads
|
||||
|
@ -318,20 +185,39 @@ map gm cd ~/Music/Albums
|
|||
map gb cd ~/bin
|
||||
map gM cd /media
|
||||
map gR cd /
|
||||
map gr eval fm.cd(ranger.RANGERDIR)
|
||||
map gr cd ~/.config/ranger
|
||||
map g? cd /usr/share/doc/ranger
|
||||
map gl cd -r .
|
||||
map gL cd -r %f
|
||||
|
||||
# Tabs
|
||||
map <C-n> eval fm.tab_new('%d')
|
||||
map <C-w> tab_close
|
||||
map <TAB> tab_move 1
|
||||
map <S-TAB> tab_move -1
|
||||
map <A-Right> tab_move 1
|
||||
map <A-Left> tab_move -1
|
||||
map t+ tab_move 1
|
||||
map t- tab_move -1
|
||||
map th tab_new ~
|
||||
map tu tab_restore
|
||||
map <a-1> tab_open 1
|
||||
map <a-2> tab_open 2
|
||||
map <a-3> tab_open 3
|
||||
map <a-4> tab_open 4
|
||||
map <a-5> tab_open 5
|
||||
map <a-6> tab_open 6
|
||||
map <a-7> tab_open 7
|
||||
map <a-8> tab_open 8
|
||||
map <a-9> tab_open 9
|
||||
|
||||
# External Programs
|
||||
map E edit
|
||||
map du shell -p du --max-depth=1 -h --apparent-size
|
||||
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
|
||||
map yp shell -f echo -n %%d/%%f | xsel -i; xsel -o | xsel -i -b
|
||||
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 yn shell -f echo -n %%f | xsel -i; xsel -o | xsel -i -b
|
||||
map cg chain shell nvim -p ~/.config/ranger/rc.conf; source ~/.config/ranger/rc.conf
|
||||
|
||||
# Open file in a new tmux pane
|
||||
|
@ -341,7 +227,7 @@ map ew eval import shlex; fm.run("tmux new-window rifle " + shlex.quote(fm.thisf
|
|||
|
||||
# Better file renaming
|
||||
map w eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map a rename_append
|
||||
map aa rename_append
|
||||
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
|
||||
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
|
||||
|
||||
|
@ -383,7 +269,7 @@ map yd yank dir
|
|||
map yn yank name
|
||||
|
||||
# Searching
|
||||
map f console scout -ftsea%space
|
||||
map ff console scout -ftsea%space
|
||||
map / console search%space
|
||||
map n search_next
|
||||
map N search_next forward=False
|
||||
|
@ -394,29 +280,8 @@ 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')
|
||||
map tq tab_close
|
||||
map <TAB> tab_move 1
|
||||
map <S-TAB> tab_move -1
|
||||
map <A-Right> tab_move 1
|
||||
map <A-Left> tab_move -1
|
||||
map t+ tab_move 1
|
||||
map t- tab_move -1
|
||||
map th tab_new ~
|
||||
map tu tab_restore
|
||||
map <a-1> tab_open 1
|
||||
map <a-2> tab_open 2
|
||||
map <a-3> tab_open 3
|
||||
map <a-4> tab_open 4
|
||||
map <a-5> tab_open 5
|
||||
map <a-6> tab_open 6
|
||||
map <a-7> tab_open 7
|
||||
map <a-8> tab_open 8
|
||||
map <a-9> tab_open 9
|
||||
|
||||
# Sorting
|
||||
map or set sort_reverse!
|
||||
map or toggle_option sort_reverse!
|
||||
map oz set sort=random
|
||||
map os chain set sort=size; set sort_reverse=False
|
||||
map ob chain set sort=basename; set sort_reverse=False
|
||||
|
@ -457,7 +322,7 @@ copymap zf zz
|
|||
# Bookmarks
|
||||
map `<any> enter_bookmark %any
|
||||
map '<any> enter_bookmark %any
|
||||
map m<any> set_bookmark %any
|
||||
map mm<any> set_bookmark %any
|
||||
map um<any> unset_bookmark %any
|
||||
|
||||
map m<bg> draw_bookmarks
|
||||
|
@ -588,11 +453,18 @@ copytmap <ESC> q Q w <C-c>
|
|||
|
||||
# Assorted stuff
|
||||
map xc shell chmod -x %s
|
||||
map V console shell vim%space
|
||||
map Nf console touch%space
|
||||
map Nd console mkdir%space
|
||||
map cc console compress%space
|
||||
map Ncd console mkcd%space
|
||||
map sl console shell ln -sT%space
|
||||
map X shell extraer %f
|
||||
map Z shell tar -cvzf %f.tar.gz %f
|
||||
map bg shell hsetroot -fill %f
|
||||
map C shell killall w3mimgdisplay && convert -rotate 90 %s %s
|
||||
map <C-f> fzf_select
|
||||
map <C-l> fzf_locate
|
||||
|
||||
map Ma shell mpc add "%s"
|
||||
map Ms shell mpc play
|
||||
map Mp shell mpc toggle
|
||||
|
|
|
@ -178,14 +178,6 @@ ext ace, has unace = for file in "$@"; do unace e "$file"; done
|
|||
ext rar, has unrar = unrar l "$1" | less
|
||||
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
|
||||
|
||||
#-------------------------------------------
|
||||
# Misc
|
||||
#-------------------------------------------
|
||||
label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1"
|
||||
label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1"
|
||||
label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
|
||||
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
|
||||
|
||||
# Define the editor for non-text files + pager as last action
|
||||
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
|
||||
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
||||
|
|
|
@ -6,13 +6,16 @@ super + f
|
|||
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo floating || echo tiled)
|
||||
|
||||
super + {_,shift,ctrl,alt} + {h,j,k,l}
|
||||
{focus,move,resize,presel}.sh {west,south,north,east}
|
||||
{foco,mover,agrandar,presel}.sh {west,south,north,east}
|
||||
|
||||
super + alt + space
|
||||
bspc node -p cancel
|
||||
|
||||
super + {_,shift} + {1-9,0}
|
||||
bspc {desktop -f,node -d} ^{1-9,10}
|
||||
super + {1-9,0}
|
||||
bspc desktop -f ^{1-9,10} && notifocus
|
||||
|
||||
super + shift + {1-9,0}
|
||||
bspc node -d ^{1-9,10}
|
||||
|
||||
super + {braceleft,braceright}
|
||||
bspc desktop -f {prev.occupied,next.occupied}
|
||||
|
@ -29,8 +32,8 @@ super + {_,shift} + ntilde
|
|||
super + {Up,Down,Left,Right}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
||||
super + ctrl + {Up,Down,Right}
|
||||
bspc node -l {above,below,normal}
|
||||
super + {equal, plus, minus}
|
||||
bspc node -l {normal, above, below}
|
||||
|
||||
super + {_,shift,ctrl} + u
|
||||
bspc node {@/ -B,@brother -B,@/ -E}
|
||||
|
@ -42,45 +45,51 @@ super + {_,shift} + i
|
|||
{bspc node -i,for win in `bspc query -N -d -n .leaf.!window`; do bspc node $win -k; done}
|
||||
|
||||
# Run Applications
|
||||
super + {t,b,v,q,z,e,x,c}
|
||||
{subl,firefox,pavucontrol,oblogout,termite,thunar,fterm,kal}
|
||||
super + {t,b,v,q,z,x,c}
|
||||
{subl,firefox,pavucontrol,oblogout,termite -e termux,termite,kal}
|
||||
|
||||
super + n
|
||||
termite -e nmtui
|
||||
super + {n,m}
|
||||
urxvt -name flota -e {nmtui,bmenu}
|
||||
|
||||
super + m
|
||||
termite -e bmenu
|
||||
super + {e,r}
|
||||
urxvt -e {neomutt,ranger}
|
||||
|
||||
super + {space,r,s}
|
||||
rofi -show {drun,run,window}
|
||||
super + {space,s}
|
||||
rofi -show {drun,window}
|
||||
|
||||
ctrl + alt + e
|
||||
thunar
|
||||
|
||||
ctrl + alt + x
|
||||
xkill
|
||||
|
||||
ctrl + alt + z
|
||||
urxvt
|
||||
|
||||
Print
|
||||
maim -u ~/Pictures/scrot/$(date +%s).png && notify-send -t 3000 'Screen captured'
|
||||
maim -u ~/Pictures/scrot/$(date +%s).png && notify-send -u low -t 3000 'Screen captured'
|
||||
|
||||
super + F1
|
||||
notify-send -t 5000 "$(date +'%A %d de %B %H:%M')"
|
||||
|
||||
super + {F2,F3,F4,F5}
|
||||
{batt,cover,update-notifier,toggleTouchpad}
|
||||
{pila,tapa,actualizar,notifocus}
|
||||
|
||||
super + F6
|
||||
baroff
|
||||
trayon
|
||||
|
||||
@super + F6
|
||||
baron
|
||||
trayoff
|
||||
|
||||
super + plus
|
||||
xzoom
|
||||
|
||||
# Media Keys
|
||||
XF86Audio{RaiseVolume,LowerVolume,Mute}
|
||||
pavolume.sh {--up,--down,--togmute}
|
||||
pavolume {volup,volddown,mutetoggle}
|
||||
|
||||
XF86Audio{Prev,Next,Play}
|
||||
mpc -q {prev,next,toggle}
|
||||
|
||||
XF86MonBrightness{Down,Up}
|
||||
xbacklight {-dec 5,-inc 5} && notify-send -t 3000 " $(printf %.0f%% $(xbacklight -get))"
|
||||
xbacklight {-dec 5,-inc 5} && notify-send -u low -t 3000 " $(printf %.0f%% $(xbacklight -get))"
|
||||
|
|
|
@ -44,27 +44,27 @@ color0 = #181818
|
|||
color8 = #333333
|
||||
|
||||
# red
|
||||
color1 = #cc4444
|
||||
color9 = #ff6e67
|
||||
color1 = #cc241d
|
||||
color9 = #cc4444
|
||||
|
||||
# green
|
||||
color2 = #7b8748
|
||||
color10 = #30e378
|
||||
color10 = #7b8748
|
||||
|
||||
# yellow
|
||||
color3 = #f69f3e
|
||||
color11 = #f1fa8c
|
||||
color11 = #e0ed21
|
||||
|
||||
# blue
|
||||
color4 = #945dff
|
||||
color12 = #caa9fa
|
||||
color4 = #407ee7
|
||||
color12 = #407ee7
|
||||
|
||||
# magenta
|
||||
color5 = #cb5a80
|
||||
color13 = #ff79c6
|
||||
|
||||
# cyan
|
||||
color6 = #4fd4e6
|
||||
color6 = #5d879c
|
||||
color14 = #8be9fd
|
||||
|
||||
# white
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# trizen configuration file
|
||||
# Updated on Sun Jul 29 23:43:50 2018
|
||||
|
||||
our $CONFIG = {
|
||||
ask_for_retry => 0, # bool -- When `makepkg` fails to build a package, offer the option for trying again.
|
||||
aur_results_last_modified => 1, # bool -- Show the date when the packages were last updated in AUR results.
|
||||
aur_results_popularity => 1, # bool -- Show the popularity score in AUR results.
|
||||
aur_results_show_installed => 1, # bool -- Show when a package is installed in AUR results.
|
||||
aur_results_sort_by => "name", # str -- Sort the AUR results by "name", "votes", "popularity" or "date".
|
||||
aur_results_sort_order => "ascending", # str -- Sort the AUR results in "ascending" or "descending" order.
|
||||
aur_results_votes => 1, # bool -- Show the number of votes in AUR results.
|
||||
clone_dir => "/var/tmp/trizen-deadguy", # str -- Absolute path to the directory where to clone and build packages.
|
||||
debug => 0, # bool -- Verbose mode.
|
||||
flip_indices => 0, # bool -- In search+install mode, show the indices of packages in reverse order.
|
||||
flip_results => 0, # bool -- Show the search results in reverse order.
|
||||
force => 0, # bool -- Pass the `--force` flag to `pacman`.
|
||||
git_clone_depth => 0, # int -- Pass the `--depth int` flag to `git clone`. (0 means no limit)
|
||||
install_built_with_noconfirm => 0, # bool -- Install built packages with `--noconfirm`.
|
||||
lwp_env_proxy => 1, # bool -- Use proxy settings defined in `env` (if any).
|
||||
lwp_show_progress => 0, # bool -- Show the HTTPS requests made by LWP::UserAgent to the AUR servers.
|
||||
lwp_timeout => 60, # int -- Seconds after which an HTTPS connection is aborted.
|
||||
makepkg_command => "/usr/bin/makepkg -scf", # str -- The `makepkg` command that is used internally in building a package.
|
||||
movepkg => 1, # bool -- Move built packages in the directory `movepkg_dir`.
|
||||
movepkg_dir => "$ENV{HOME}/.cache/trizen", # str -- Absolute path to the directory where to move built packages (with `movepkg`).
|
||||
nocolors => 0, # bool -- Disable output colors for `trizen`.
|
||||
noedit => 0, # bool -- Do not prompt to edit files when installing an AUR package.
|
||||
noinfo => 0, # bool -- Do not display package information when installing an AUR package.
|
||||
noinstall => 0, # bool -- Do not install built packages -- builds only.
|
||||
nopull => 0, # bool -- Do not `git pull` new changes from the AUR git server.
|
||||
packages_in_stats => 5, # int -- The number of packages to display in `--stats`
|
||||
pacman_command => "/usr/bin/pacman", # str -- The `pacman` command that is used internally for pacman operations.
|
||||
pacman_local_dir => "/var/lib/pacman/local", # str -- Absolute path to the pacman's local directory.
|
||||
pager_mode => 1, # bool -- Show the build files in pager mode using pager.
|
||||
quiet => 0, # bool -- Do not display any warnings.
|
||||
recompute_deps => 1, # bool -- Recompute the dependencies of a package after its build files are inspected.
|
||||
show_build_files_content => 1, # bool -- Show the content of the build files of a package before building it.
|
||||
show_comments => 0, # bool -- Show AUR comments for a package before building it.
|
||||
show_diff_only => 1, # bool -- When the build files of a package already exist locally, show the diff only.
|
||||
show_inexistent => 1, # bool -- Warn about packages that do not exist in AUR, during -Su.
|
||||
show_ood => 1, # bool -- Warn about out-of-date marked packages, during -Su.
|
||||
show_unmaintained => 1, # bool -- Warn about unmaintained packages, during -Su.
|
||||
skipinteg => 0, # bool -- Pass the `--skipinteg` argument to `makepkg`.
|
||||
split_packages => 1, # bool -- Ask about installing the other parts of a split package.
|
||||
ssl_verify_hostname => 1, # bool -- Ensure LWP::UserAgent connects to servers that have a valid certificate.
|
||||
su_command => "/usr/bin/su -c", # str -- Command used when special permissions are required and `use_sudo` is set to 0.
|
||||
sudo_autorepeat => 0, # bool -- Automatically repeat `sudo -v` in the background after a `sudo` command was first executed.
|
||||
sudo_autorepeat_at_runtime => 0, # bool -- Execute `sudo -v` when `trizen` is first executed and apply the behavior of `sudo_autorepeat`.
|
||||
sudo_autorepeat_interval => 180, # int -- Interval, in seconds, after which `sudo -v` is executed in background (with `sudo_autorepeat`).
|
||||
sudo_command => "/usr/bin/sudo", # str -- Command used when special permissions are required and `use_sudo` is set to 1.
|
||||
use_sudo => 1, # bool -- Use the `sudo` command when special permissions are required.
|
||||
}
|
|
@ -0,0 +1,710 @@
|
|||
# LS_COLORS
|
||||
# Maintainers: Magnus Woldrich <m@japh.se>,
|
||||
# Ryan Delaney <ryan.delaney@gmail.com> OpenGPG: 0D98863B4E1D07B6
|
||||
# URL: https://github.com/trapd00r/LS_COLORS
|
||||
# Version: 0.254
|
||||
# Updated: Tue Mar 29 21:25:30 AEST 2016
|
||||
#
|
||||
# This is a collection of extension:color mappings, suitable to use as your
|
||||
# LS_COLORS environment variable. Most of them use the extended color map,
|
||||
# described in the ECMA-48 document; in other words, you'll need a terminal
|
||||
# with capabilities of displaying 256 colors.
|
||||
#
|
||||
# As of this writing, around 300 different filetypes/extensions is supported.
|
||||
# That's indeed a lot of extensions, but there's a lot more! Therefore I need
|
||||
# your help.
|
||||
#
|
||||
# Fork this project on github, add the extensions you are missing, and send me
|
||||
# a pull request.
|
||||
#
|
||||
# For files that usually ends up next to each other, like html, css and js,
|
||||
# try to pick colors that fit nicely together. Filetypes with multiple
|
||||
# possible extensions, like htm and html, should have the same color.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the Perl Artistic License for more details.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the Perl Artistic License as published by the Perl Foundation,
|
||||
# either version 1.0 of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the Perl Artistic License along
|
||||
# with this program. If not, see <http://www.perlfoundation.org/artistic_license_1_0>.
|
||||
|
||||
# core {{{1
|
||||
BLK 38;5;68
|
||||
CAPABILITY 38;5;17
|
||||
CHR 38;5;113;1
|
||||
DIR 38;5;26;1
|
||||
DOOR 38;5;127
|
||||
EXEC 38;5;148;1
|
||||
FIFO 38;5;126
|
||||
FILE 38;5;253
|
||||
LINK target
|
||||
MULTIHARDLINK 38;5;222;1
|
||||
# "NORMAL don't reset the bold attribute -
|
||||
# https://github.com/trapd00r/LS_COLORS/issues/11
|
||||
#NORMAL 38;5;254
|
||||
NORMAL 0
|
||||
ORPHAN 48;5;196;38;5;232;1
|
||||
OTHER_WRITABLE 38;5;220;1
|
||||
SETGID 48;5;3;38;5;0
|
||||
SETUID 38;5;220;1;3;100;1
|
||||
SOCK 38;5;197
|
||||
STICKY 38;5;86;48;5;234
|
||||
STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||
|
||||
*LS_COLORS 48;5;89;38;5;197;1;3;4;7 # :-)
|
||||
# }}}
|
||||
# documents {{{1
|
||||
*README 38;5;220;1
|
||||
*README.rst 38;5;220;1
|
||||
*LICENSE 38;5;220;1
|
||||
*COPYING 38;5;220;1
|
||||
*INSTALL 38;5;220;1
|
||||
*COPYRIGHT 38;5;220;1
|
||||
*AUTHORS 38;5;220;1
|
||||
*HISTORY 38;5;220;1
|
||||
*CONTRIBUTORS 38;5;220;1
|
||||
*PATENTS 38;5;220;1
|
||||
*VERSION 38;5;220;1
|
||||
*NOTICE 38;5;220;1
|
||||
*CHANGES 38;5;220;1
|
||||
.log 38;5;190
|
||||
# plain-text {{{2
|
||||
.txt 38;5;253
|
||||
# markup {{{2
|
||||
.etx 38;5;184
|
||||
.info 38;5;184
|
||||
.markdown 38;5;184
|
||||
.md 38;5;184
|
||||
.mkd 38;5;184
|
||||
.nfo 38;5;184
|
||||
.pod 38;5;184
|
||||
.rst 38;5;184
|
||||
.tex 38;5;184
|
||||
.textile 38;5;184
|
||||
# key-value, non-relational data {{{2
|
||||
.json 38;5;178
|
||||
.msg 38;5;178
|
||||
.pgn 38;5;178
|
||||
.rss 38;5;178
|
||||
.xml 38;5;178
|
||||
.yaml 38;5;178
|
||||
.yml 38;5;178
|
||||
.RData 38;5;178
|
||||
.rdata 38;5;178
|
||||
# }}}
|
||||
# binary {{{2
|
||||
.cbr 38;5;141
|
||||
.cbz 38;5;141
|
||||
.chm 38;5;141
|
||||
.djvu 38;5;141
|
||||
.pdf 38;5;141
|
||||
.PDF 38;5;141
|
||||
# words {{{3
|
||||
.docm 38;5;111;4
|
||||
.doc 38;5;111
|
||||
.docx 38;5;111
|
||||
.eps 38;5;111
|
||||
.ps 38;5;111
|
||||
.odb 38;5;111
|
||||
.odt 38;5;111
|
||||
.rtf 38;5;111
|
||||
# presentation {{{3
|
||||
.odp 38;5;166
|
||||
.pps 38;5;166
|
||||
.ppt 38;5;166
|
||||
.pptx 38;5;166
|
||||
# Powerpoint show
|
||||
.ppts 38;5;166
|
||||
# Powerpoint with enabled macros
|
||||
.pptxm 38;5;166;4
|
||||
# Powerpoint show with enabled macros
|
||||
.pptsm 38;5;166;4
|
||||
# spreadsheet {{{3
|
||||
.csv 38;5;78
|
||||
# Open document spreadsheet
|
||||
.ods 38;5;112
|
||||
.xla 38;5;76
|
||||
# Excel spreadsheet
|
||||
.xls 38;5;112
|
||||
.xlsx 38;5;112
|
||||
# Excel spreadsheet with macros
|
||||
.xlsxm 38;5;112;4
|
||||
# Excel module
|
||||
.xltm 38;5;73;4
|
||||
.xltx 38;5;73
|
||||
# }}}
|
||||
# }}}
|
||||
# configs {{{2
|
||||
*cfg 1
|
||||
*conf 1
|
||||
*rc 1
|
||||
.ini 1
|
||||
.plist 1
|
||||
# vim
|
||||
.viminfo 1
|
||||
# cisco VPN client configuration
|
||||
.pcf 1
|
||||
# adobe photoshop proof settings file
|
||||
.psf 1
|
||||
# }}}
|
||||
# }}}
|
||||
# code {{{1
|
||||
# version control {{{2
|
||||
.git 38;5;197
|
||||
.gitignore 38;5;240
|
||||
.gitattributes 38;5;240
|
||||
.gitmodules 38;5;240
|
||||
|
||||
# shell {{{2
|
||||
.awk 38;5;172
|
||||
.bash 38;5;172
|
||||
.bat 38;5;172
|
||||
.BAT 38;5;172
|
||||
.sed 38;5;172
|
||||
.sh 38;5;172
|
||||
.zsh 38;5;172
|
||||
.vim 38;5;172
|
||||
|
||||
# interpreted {{{2
|
||||
.ahk 38;5;41
|
||||
# python
|
||||
.py 38;5;41
|
||||
# perl
|
||||
.pl 38;5;208
|
||||
.PL 38;5;160
|
||||
.t 38;5;114
|
||||
# sql
|
||||
.msql 38;5;222
|
||||
.mysql 38;5;222
|
||||
.pgsql 38;5;222
|
||||
.sql 38;5;222
|
||||
# Tool Command Language
|
||||
.tcl 38;5;64;1
|
||||
# R language
|
||||
.r 38;5;49
|
||||
.R 38;5;49
|
||||
# GrADS script
|
||||
.gs 38;5;81
|
||||
|
||||
# compiled {{{2
|
||||
#
|
||||
# assembly language
|
||||
.asm 38;5;81
|
||||
# LISP
|
||||
.cl 38;5;81
|
||||
.lisp 38;5;81
|
||||
# lua
|
||||
.lua 38;5;81
|
||||
# Moonscript
|
||||
.moon 38;5;81
|
||||
# C
|
||||
.c 38;5;81
|
||||
.C 38;5;81
|
||||
.h 38;5;110
|
||||
.H 38;5;110
|
||||
.tcc 38;5;110
|
||||
# C++
|
||||
.c++ 38;5;81
|
||||
.h++ 38;5;110
|
||||
.hpp 38;5;110
|
||||
.hxx 38;5;110
|
||||
.ii 38;5;110
|
||||
# method file for Objective C
|
||||
.M 38;5;110
|
||||
.m 38;5;110
|
||||
# Csharp
|
||||
.cc 38;5;81
|
||||
.cs 38;5;81
|
||||
.cp 38;5;81
|
||||
.cpp 38;5;81
|
||||
.cxx 38;5;81
|
||||
# Crystal
|
||||
.cr 38;5;81
|
||||
# Google golang
|
||||
.go 38;5;81
|
||||
# fortran
|
||||
.f 38;5;81
|
||||
.for 38;5;81
|
||||
.ftn 38;5;81
|
||||
# pascal
|
||||
.s 38;5;110
|
||||
.S 38;5;110
|
||||
# Rust
|
||||
.rs 38;5;81
|
||||
# Swift
|
||||
.swift 38;5;219
|
||||
# ?
|
||||
.sx 38;5;81
|
||||
# interface file in GHC - https://github.com/trapd00r/LS_COLORS/pull/9
|
||||
.hi 38;5;110
|
||||
# haskell
|
||||
.hs 38;5;81
|
||||
.lhs 38;5;81
|
||||
|
||||
# binaries {{{2
|
||||
# compiled apps for interpreted languages
|
||||
.pyc 38;5;240
|
||||
# }}}
|
||||
# html {{{2
|
||||
.css 38;5;125;1
|
||||
.less 38;5;125;1
|
||||
.sass 38;5;125;1
|
||||
.scss 38;5;125;1
|
||||
.htm 38;5;125;1
|
||||
.html 38;5;125;1
|
||||
.jhtm 38;5;125;1
|
||||
.mht 38;5;125;1
|
||||
.eml 38;5;125;1
|
||||
.mustache 38;5;125;1
|
||||
# }}}
|
||||
# java {{{2
|
||||
.coffee 38;5;074;1
|
||||
.java 38;5;074;1
|
||||
.js 38;5;074;1
|
||||
.mjs 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsp 38;5;074;1
|
||||
# }}}
|
||||
# php {{{2
|
||||
.php 38;5;81
|
||||
# CakePHP view scripts and helpers
|
||||
.ctp 38;5;81
|
||||
# Twig template engine
|
||||
.twig 38;5;81
|
||||
# }}}
|
||||
# vb/a {{{2
|
||||
.vb 38;5;81
|
||||
.vba 38;5;81
|
||||
.vbs 38;5;81
|
||||
# 2}}}
|
||||
# Build stuff {{{2
|
||||
*Dockerfile 38;5;155
|
||||
.dockerignore 38;5;240
|
||||
*Makefile 38;5;155
|
||||
*MANIFEST 38;5;243
|
||||
*pm_to_blib 38;5;240
|
||||
# automake
|
||||
.am 38;5;242
|
||||
.in 38;5;242
|
||||
.hin 38;5;242
|
||||
.scan 38;5;242
|
||||
.m4 38;5;242
|
||||
.old 38;5;242
|
||||
.out 38;5;242
|
||||
.SKIP 38;5;244
|
||||
# }}}
|
||||
# patch files {{{2
|
||||
.diff 48;5;197;38;5;232
|
||||
.patch 48;5;197;38;5;232;1
|
||||
#}}}
|
||||
# graphics {{{1
|
||||
.bmp 38;5;97
|
||||
.tiff 38;5;97
|
||||
.tif 38;5;97
|
||||
.TIFF 38;5;97
|
||||
.cdr 38;5;97
|
||||
.gif 38;5;97
|
||||
.ico 38;5;97
|
||||
.jpeg 38;5;97
|
||||
.JPG 38;5;97
|
||||
.jpg 38;5;97
|
||||
.nth 38;5;97
|
||||
.png 38;5;97
|
||||
.psd 38;5;97
|
||||
.xpm 38;5;97
|
||||
# }}}
|
||||
# vector {{{1
|
||||
.ai 38;5;99
|
||||
.eps 38;5;99
|
||||
.epsf 38;5;99
|
||||
.drw 38;5;99
|
||||
.ps 38;5;99
|
||||
.svg 38;5;99
|
||||
# }}}
|
||||
# video {{{1
|
||||
.avi 38;5;114
|
||||
.divx 38;5;114
|
||||
.IFO 38;5;114
|
||||
.m2v 38;5;114
|
||||
.m4v 38;5;114
|
||||
.mkv 38;5;114
|
||||
.MOV 38;5;114
|
||||
.mov 38;5;114
|
||||
.mp4 38;5;114
|
||||
.mpeg 38;5;114
|
||||
.mpg 38;5;114
|
||||
.ogm 38;5;114
|
||||
.rmvb 38;5;114
|
||||
.sample 38;5;114
|
||||
.wmv 38;5;114
|
||||
# mobile/streaming {{{2
|
||||
.3g2 38;5;115
|
||||
.3gp 38;5;115
|
||||
.gp3 38;5;115
|
||||
.webm 38;5;115
|
||||
.gp4 38;5;115
|
||||
.asf 38;5;115
|
||||
.flv 38;5;115
|
||||
.ts 38;5;115
|
||||
.ogv 38;5;115
|
||||
.f4v 38;5;115
|
||||
# }}}
|
||||
# lossless {{{2
|
||||
.VOB 38;5;115;1
|
||||
.vob 38;5;115;1
|
||||
# }}}
|
||||
# audio {{{1
|
||||
.3ga 38;5;137;1
|
||||
.S3M 38;5;137;1
|
||||
.aac 38;5;137;1
|
||||
.au 38;5;137;1
|
||||
.dat 38;5;137;1
|
||||
.dts 38;5;137;1
|
||||
.fcm 38;5;137;1
|
||||
.m4a 38;5;137;1
|
||||
.mid 38;5;137;1
|
||||
.midi 38;5;137;1
|
||||
.mod 38;5;137;1
|
||||
.mp3 38;5;137;1
|
||||
.mp4a 38;5;137;1
|
||||
.oga 38;5;137;1
|
||||
.ogg 38;5;137;1
|
||||
.opus 38;5;137;1
|
||||
.s3m 38;5;137;1
|
||||
.sid 38;5;137;1
|
||||
.wma 38;5;137;1
|
||||
# lossless
|
||||
.ape 38;5;136;1
|
||||
.aiff 38;5;136;1
|
||||
.cda 38;5;136;1
|
||||
.flac 38;5;136;1
|
||||
.alac 38;5;136;1
|
||||
.midi 38;5;136;1
|
||||
.pcm 38;5;136;1
|
||||
.wav 38;5;136;1
|
||||
.wv 38;5;136;1
|
||||
.wvc 38;5;136;1
|
||||
|
||||
# }}}
|
||||
# fonts {{{1
|
||||
.afm 38;5;66
|
||||
.fon 38;5;66
|
||||
.fnt 38;5;66
|
||||
.pfb 38;5;66
|
||||
.pfm 38;5;66
|
||||
.ttf 38;5;66
|
||||
.otf 38;5;66
|
||||
# postscript fonts
|
||||
.PFA 38;5;66
|
||||
.pfa 38;5;66
|
||||
# }}}
|
||||
# archives {{{1
|
||||
.7z 38;5;40
|
||||
.a 38;5;40
|
||||
.arj 38;5;40
|
||||
.bz2 38;5;40
|
||||
.cpio 38;5;40
|
||||
.gz 38;5;40
|
||||
.lrz 38;5;40
|
||||
.lz 38;5;40
|
||||
.lzma 38;5;40
|
||||
.lzo 38;5;40
|
||||
.rar 38;5;40
|
||||
.s7z 38;5;40
|
||||
.sz 38;5;40
|
||||
.tar 38;5;40
|
||||
.tgz 38;5;40
|
||||
.xz 38;5;40
|
||||
.z 38;5;40
|
||||
.Z 38;5;40
|
||||
.zip 38;5;40
|
||||
.lrz 38;5;40
|
||||
.zipx 38;5;40
|
||||
.zoo 38;5;40
|
||||
.zpaq 38;5;40
|
||||
.zz 38;5;40
|
||||
# packaged apps {{{2
|
||||
.apk 38;5;215
|
||||
.deb 38;5;215
|
||||
.rpm 38;5;215
|
||||
.jad 38;5;215
|
||||
.jar 38;5;215
|
||||
.cab 38;5;215
|
||||
.pak 38;5;215
|
||||
.pk3 38;5;215
|
||||
.vdf 38;5;215
|
||||
.vpk 38;5;215
|
||||
.bsp 38;5;215
|
||||
.dmg 38;5;215
|
||||
# }}}
|
||||
# segments from 0 to three digits after first extension letter {{{2
|
||||
.r[0-9]{0,2} 38;5;239
|
||||
.zx[0-9]{0,2} 38;5;239
|
||||
.z[0-9]{0,2} 38;5;239
|
||||
# partial files
|
||||
.part 38;5;239
|
||||
# }}}
|
||||
# partition images {{{2
|
||||
.dmg 38;5;124
|
||||
.iso 38;5;124
|
||||
.bin 38;5;124
|
||||
.nrg 38;5;124
|
||||
.qcow 38;5;124
|
||||
.sparseimage 38;5;124
|
||||
.toast 38;5;124
|
||||
.vcd 38;5;124
|
||||
.vmdk 38;5;124
|
||||
# }}}
|
||||
# databases {{{2
|
||||
.accdb 38;5;60
|
||||
.accde 38;5;60
|
||||
.accdr 38;5;60
|
||||
.accdt 38;5;60
|
||||
.db 38;5;60
|
||||
.fmp12 38;5;60
|
||||
.fp7 38;5;60
|
||||
.localstorage 38;5;60
|
||||
.mdb 38;5;60
|
||||
.mde 38;5;60
|
||||
.sqlite 38;5;60
|
||||
.typelib 38;5;60
|
||||
# NetCDF database
|
||||
.nc 38;5;60
|
||||
# }}}
|
||||
# tempfiles {{{1
|
||||
# undo files
|
||||
.pacnew 38;5;33
|
||||
.un~ 38;5;241
|
||||
.orig 38;5;241
|
||||
# backups
|
||||
.BUP 38;5;241
|
||||
.bak 38;5;241
|
||||
.o 38;5;241 # *nix Object file (shared libraries, core dumps etc)
|
||||
.rlib 38;5;241 # Static rust library
|
||||
# temporary files
|
||||
.swp 38;5;244
|
||||
.swo 38;5;244
|
||||
.tmp 38;5;244
|
||||
.sassc 38;5;244
|
||||
# state files
|
||||
.pid 38;5;248
|
||||
.state 38;5;248
|
||||
*lockfile 38;5;248
|
||||
# error logs
|
||||
.err 38;5;160;1
|
||||
.error 38;5;160;1
|
||||
.stderr 38;5;160;1
|
||||
# state dumps
|
||||
.dump 38;5;241
|
||||
.stackdump 38;5;241
|
||||
.zcompdump 38;5;241
|
||||
.zwc 38;5;241
|
||||
# tcpdump, network traffic capture
|
||||
.pcap 38;5;29
|
||||
.cap 38;5;29
|
||||
.dmp 38;5;29
|
||||
# macOS
|
||||
.DS_Store 38;5;239
|
||||
.localized 38;5;239
|
||||
.CFUserTextEncoding 38;5;239
|
||||
# }}}
|
||||
# hosts {{{1
|
||||
# /etc/hosts.{deny,allow}
|
||||
.allow 38;5;112
|
||||
.deny 38;5;196
|
||||
# }}}
|
||||
# systemd {{{1
|
||||
# http://www.freedesktop.org/software/systemd/man/systemd.unit.html
|
||||
.service 38;5;45
|
||||
*@.service 38;5;45
|
||||
.socket 38;5;45
|
||||
.swap 38;5;45
|
||||
.device 38;5;45
|
||||
.mount 38;5;45
|
||||
.automount 38;5;45
|
||||
.target 38;5;45
|
||||
.path 38;5;45
|
||||
.timer 38;5;45
|
||||
.snapshot 38;5;45
|
||||
# }}}
|
||||
# metadata {{{1
|
||||
.application 38;5;116
|
||||
.cue 38;5;116
|
||||
.description 38;5;116
|
||||
.directory 38;5;116
|
||||
.m3u 38;5;116
|
||||
.m3u8 38;5;116
|
||||
.md5 38;5;116
|
||||
.properties 38;5;116
|
||||
.sfv 38;5;116
|
||||
.srt 38;5;116
|
||||
.theme 38;5;116
|
||||
.torrent 38;5;116
|
||||
.urlview 38;5;116
|
||||
# }}}
|
||||
# encrypted data {{{1
|
||||
.asc 38;5;192;3
|
||||
.bfe 38;5;192;3
|
||||
.enc 38;5;192;3
|
||||
.gpg 38;5;192;3
|
||||
.signature 38;5;192;3
|
||||
.sig 38;5;192;3
|
||||
.p12 38;5;192;3
|
||||
.pem 38;5;192;3
|
||||
.pgp 38;5;192;3
|
||||
.asc 38;5;192;3
|
||||
.enc 38;5;192;3
|
||||
.sig 38;5;192;3
|
||||
# 1}}}
|
||||
# emulators {{{1
|
||||
.32x 38;5;213
|
||||
.cdi 38;5;213
|
||||
.fm2 38;5;213
|
||||
.rom 38;5;213
|
||||
.sav 38;5;213
|
||||
.st 38;5;213
|
||||
# atari
|
||||
.a00 38;5;213
|
||||
.a52 38;5;213
|
||||
.A64 38;5;213
|
||||
.a64 38;5;213
|
||||
.a78 38;5;213
|
||||
.adf 38;5;213
|
||||
.atr 38;5;213
|
||||
# nintendo
|
||||
.gb 38;5;213
|
||||
.gba 38;5;213
|
||||
.gbc 38;5;213
|
||||
.gel 38;5;213
|
||||
.gg 38;5;213
|
||||
.ggl 38;5;213
|
||||
.ipk 38;5;213 # Nintendo (DS Packed Images)
|
||||
.j64 38;5;213
|
||||
.nds 38;5;213
|
||||
.nes 38;5;213
|
||||
# Sega
|
||||
.sms 38;5;213
|
||||
# }}}
|
||||
# unsorted {{{1
|
||||
#
|
||||
# Portable Object Translation for GNU Gettext
|
||||
.pot 38;5;7
|
||||
# CAD files for printed circuit boards
|
||||
.pcb 38;5;7
|
||||
# groff (rendering app for texinfo)
|
||||
.mm 38;5;7
|
||||
# perldoc
|
||||
.pod 38;5;7
|
||||
# GIMP brush
|
||||
.gbr 38;5;7
|
||||
# printer spool file
|
||||
.spl 38;5;7
|
||||
# GIMP project file
|
||||
.scm 38;5;7
|
||||
# RStudio project file
|
||||
.Rproj 38;5;11
|
||||
# Nokia Symbian OS files
|
||||
.sis 38;5;7
|
||||
|
||||
.1p 38;5;7
|
||||
.3p 38;5;7
|
||||
.cnc 38;5;7
|
||||
.def 38;5;7
|
||||
.ex 38;5;7
|
||||
.example 38;5;7
|
||||
.feature 38;5;7
|
||||
.ger 38;5;7
|
||||
.map 38;5;7
|
||||
.mf 38;5;7
|
||||
.mfasl 38;5;7
|
||||
.mi 38;5;7
|
||||
.mtx 38;5;7
|
||||
.pc 38;5;7
|
||||
.pi 38;5;7
|
||||
.plt 38;5;7
|
||||
.pm 38;5;7
|
||||
.rb 38;5;7
|
||||
.rdf 38;5;7
|
||||
.rst 38;5;7
|
||||
.ru 38;5;7
|
||||
.sch 38;5;7
|
||||
.sty 38;5;7
|
||||
.sug 38;5;7
|
||||
.t 38;5;7
|
||||
.tdy 38;5;7
|
||||
.tfm 38;5;7
|
||||
.tfnt 38;5;7
|
||||
.tg 38;5;7
|
||||
.vcard 38;5;7
|
||||
.vcf 38;5;7
|
||||
.xln 38;5;7
|
||||
# AppCode files
|
||||
.iml 38;5;166
|
||||
# Xcode files
|
||||
.xcconfig 1
|
||||
.entitlements 1
|
||||
.strings 1
|
||||
.storyboard 38;5;196
|
||||
.xcsettings 1
|
||||
.xib 38;5;208
|
||||
# }}}
|
||||
# termcap {{{1
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode-256color
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM screen.rxvt
|
||||
TERM terminator
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
# }}}
|
||||
|
||||
|
||||
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
|
@ -5,11 +5,12 @@ alias mutt='neomutt'
|
|||
alias rg='ranger'
|
||||
alias pmix='ncpamixer'
|
||||
alias amix='alsamixer'
|
||||
alias v='nvim'
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias chat='irssi'
|
||||
alias play='ncmpcpp'
|
||||
alias tsrc='transmission-remote-cli'
|
||||
alias torr='transmission-remote-cli'
|
||||
alias cal='calcurse'
|
||||
alias py='python '
|
||||
alias py2='python2 '
|
||||
|
@ -20,6 +21,7 @@ alias p='pacui'
|
|||
alias sr='sr -browser=$CLIBROWSER' # open in cli browser
|
||||
alias surfraw='surfraw -browser=$BROWSER' # open in gui browser
|
||||
alias foxy='FoxDot & disown'
|
||||
alias tx='tmux new -A'
|
||||
|
||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||
alias chmod='chmod -v'
|
||||
|
@ -27,7 +29,7 @@ alias chown='chown -v'
|
|||
alias mv='mv -iv'
|
||||
alias rmdir='rmdir -v' # rm empty directory only
|
||||
alias rm='rm -iv' # Always confirm before deleting things
|
||||
alias mkdir='mkdir -pv' # Make parent directories that don't exist
|
||||
alias mkdir='mkdir -pv' # Make parent directories that dont exist
|
||||
alias cp="cp -aiv" # Confirm before overwriting something
|
||||
alias ln='ln -iv'
|
||||
alias rename='rename -v'
|
||||
|
@ -35,8 +37,7 @@ alias mount='mount -v | column -t'
|
|||
alias umount='umount -v'
|
||||
|
||||
# Opinionated
|
||||
alias tx='tmux -2'
|
||||
alias ydl='youtube-dl -ic'
|
||||
alias ytdl='youtube-dl -ic'
|
||||
alias ls='ls -F --color=always --group-directories-first'
|
||||
alias grep='grep --color=tty -d skip'
|
||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||
|
@ -58,9 +59,6 @@ alias dd="dd status=progress"
|
|||
# Commands
|
||||
alias svi="sudo nvim"
|
||||
alias pacmir='sudo pacman-mirrors -f5'
|
||||
alias tis='tig status'
|
||||
alias til='tig log'
|
||||
alias tib='tig blame -C'
|
||||
alias fuck='sudo pacman -Rns'
|
||||
alias upd='trizen -Syu'
|
||||
alias ytw='youtube-viewer -C -D -W -f -7 --results=10'
|
||||
|
@ -68,11 +66,10 @@ alias hoy='calcurse -a --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %
|
|||
alias week='calcurse -r7 --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %m (%S a %E)\n"'
|
||||
alias todo='calcurse -t --format-todo "(%p) %m\n"'
|
||||
alias winclass='xprop | grep WM_CLASS' # for bspwm rules
|
||||
alias path='echo -e ${PATH//:/\\n}' # Pretty-print of some PATH variables
|
||||
alias path='echo -e ${PATH//:/\\n}' # Pretty print of some PATH variables
|
||||
alias compare='grep -nFxvf' # Usage: compare <file1> <file2>
|
||||
alias pwn='chmod +x'
|
||||
alias ta='tmux attach -t'
|
||||
alias tnw='tmux new -s'
|
||||
alias tls='tmux ls'
|
||||
alias tk='tmux kill-session -t'
|
||||
alias lst='ls -FAghoBtH --group-directories-first --dereference-command-line-symlink-to-dir --time-style=+"%d-%m-%Y %H:%M"'
|
|
@ -4,7 +4,6 @@
|
|||
# Completion Dots {{{
|
||||
# if you want red dots to be displayed while waiting for completion
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
if [[ $COMPLETION_WAITING_DOTS = true ]]; then
|
||||
expand-or-complete-with-dots() {
|
||||
# toggle line-wrapping off and back on again
|
||||
|
@ -46,8 +45,8 @@ orphans() {
|
|||
}
|
||||
|
||||
paclist() {
|
||||
pacman -Qqettn > ~/paketes.txt
|
||||
pacman -Qqettm > ~/paurketos.txt
|
||||
pacman -Qqettn >! ~/paketes.txt
|
||||
pacman -Qqettm >! ~/paurketos.txt
|
||||
}
|
||||
|
||||
pacfix() {
|
||||
|
@ -125,7 +124,6 @@ function fkill {
|
|||
# }}}
|
||||
|
||||
# Bunch of one liners {{{
|
||||
|
||||
# colorized cat
|
||||
function cot() {
|
||||
for file in "$@"
|
||||
|
@ -144,7 +142,6 @@ shot() { maim -d 5 -q -u ~/Pictures/scrot/$(date +%s).png && notify-send 'Screen
|
|||
|
||||
# Set wallpaper
|
||||
wpp() { hsetroot -fill ~/Pictures/wallpaper/$1 ;}
|
||||
|
||||
# }}}
|
||||
|
||||
# vim:foldmethod=marker:foldlevel=0
|
|
@ -1,238 +0,0 @@
|
|||
: 1531748215:0;rld bar
|
||||
: 1531748234:0;zpl times
|
||||
: 1531748278:0;zpl
|
||||
: 1531748283:0;ls
|
||||
: 1531748428:0;zplay cdlist
|
||||
: 1531748449:0;zpl cdlist
|
||||
: 1531748476:0;ls
|
||||
: 1531748486:0;zpl
|
||||
: 1531748495:0;zpl cdreplay
|
||||
: 1531748534:0;zpl ls
|
||||
: 1531756053:0;upd
|
||||
: 1531760078:0;vi .gtkrc-2.0
|
||||
: 1531760128:0;vi .config/gtk-3.0/settings.ini
|
||||
: 1531760166:0;hx-stat
|
||||
: 1531760256:0;hx-add .config/zsh
|
||||
: 1531760266:0;hx-stat
|
||||
: 1531760287:0;cfg .config/zsh/alias.zsh
|
||||
: 1531760301:0;vi .config/zsh/dotfiles.zsh
|
||||
: 1531760403:0;hx-add .config/zsh
|
||||
: 1531760418:0;hx-stat
|
||||
: 1531760453:0;git reset HEAD .config/zsh/histfile
|
||||
: 1531760466:0;git reset HEAD ~/.config/zsh/histfile
|
||||
: 1531760476:0;.config/zsh
|
||||
: 1531760486:0;git reset HEAD histfile
|
||||
: 1531785577:0;vi bin/screenit
|
||||
: 1531785602:0;screenit j
|
||||
: 1531785613:0;vi bin/screenit
|
||||
: 1531785644:0;screenit p
|
||||
: 1531785701:0;screenit j
|
||||
: 1531785791:0;vi bin/screenit
|
||||
: 1531785847:0;screenit p
|
||||
: 1531785972:0;vi bin/screenit
|
||||
: 1531786005:0;ffmpeg -f jack -i ffmpeg -y out.wav
|
||||
: 1531786014:0;p i
|
||||
: 1531786132:0;screenit j
|
||||
: 1531786511:0;play
|
||||
: 1531789443:0;polybye
|
||||
: 1531791865:0;rld bar
|
||||
: 1531791892:0;htop
|
||||
: 1531792704:0;p i
|
||||
: 1531797099:0;cfg zsh
|
||||
: 1531797440:0;vi .config/zsh/options.zsh
|
||||
: 1531798122:0;cfg zsh
|
||||
: 1531798755:0;Videos/Learning/fox
|
||||
: 1531798756:0;ls
|
||||
: 1531798772:0;ytl https://www.youtube.com/watch?v=bE_7weF3WCo&feature=youtu.be
|
||||
: 1531798807:0;Videos/Learning/fox
|
||||
: 1531798837:0;vi ~/.config/zsh/fun.zsh
|
||||
: 1531798859:0;vi ~/.config/zsh/alias.zsh
|
||||
: 1531798875:0;ydl https://www.youtube.com/watch?v=bE_7weF3WCo&feature=youtu.be
|
||||
: 1531801591:0;~
|
||||
: 1531801597:0;vi bin/livecode
|
||||
: 1531801611:0;vi bin/deadcode
|
||||
: 1531801633:0;vi Music/LiveCoding/foxy.scd
|
||||
: 1531801645:0;livecode
|
||||
: 1531801646:0;scsynth -u 57110
|
||||
: 1531801649:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531801654:0;foxy
|
||||
: 1531805295:0;deadcode
|
||||
: 1531805312:0;htop
|
||||
: 1531805330:0;vi bin/deadcode
|
||||
: 1531805341:0;deadcode
|
||||
: 1531805497:0;zpl times
|
||||
: 1531805628:0;cfg zsh
|
||||
: 1531806623:0;zpl times
|
||||
: 1531841539:0;zpl
|
||||
: 1531841602:0;zpl clist
|
||||
: 1531841659:0;zpl update --all
|
||||
: 1531841912:0;reboot
|
||||
: 1531842081:0;zpl times
|
||||
: 1531842150:0;livecode
|
||||
: 1531842151:0;scsynth -u 57110
|
||||
: 1531842154:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531842159:0;foxy
|
||||
: 1531842251:0;deadcode
|
||||
: 1531842272:0;cfg zsh
|
||||
: 1531842370:0;cfg tx
|
||||
: 1531842501:0;livecode
|
||||
: 1531842501:0;scsynth -u 57110
|
||||
: 1531842505:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531842510:0;foxy
|
||||
: 1531846201:0;deadcode
|
||||
: 1531846215:0;htop
|
||||
: 1531846224:0;vi bin/deadcode
|
||||
: 1531846245:0;htop
|
||||
: 1531846299:0;deadcode
|
||||
: 1531846330:0;tx
|
||||
: 1531846342:0;tk 0
|
||||
: 1531846345:0;rld bar
|
||||
: 1531860291:0;play
|
||||
: 1531860542:0;amix
|
||||
: 1531860562:0;play
|
||||
: 1531860591:0;amix
|
||||
: 1531860684:0;pmix
|
||||
: 1531861405:0;play
|
||||
: 1531864447:0;livecode
|
||||
: 1531864448:0;scsynth -u 57110
|
||||
: 1531864451:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531864456:0;foxy
|
||||
: 1531864712:0;bmenu
|
||||
: 1531866500:0;deadcode
|
||||
: 1531866541:0;htop
|
||||
: 1531866556:0;deadcode
|
||||
: 1531866592:0;htop
|
||||
: 1531866615:0;deadcode
|
||||
: 1531866629:0;tk "Livecode ~Ar"
|
||||
: 1531936530:0;zpl times
|
||||
: 1531937351:0;cfg vi
|
||||
: 1531942798:0;python -m FoxDot --pipe
|
||||
: 1531942919:0;upd
|
||||
: 1531943338:0;cfg zsh
|
||||
: 1531943352:0;cfg vi
|
||||
: 1531943370:0;tx
|
||||
: 1531943379:0;cfg zsh
|
||||
: 1531943388:0;tk 0
|
||||
: 1531952646:0;zpl times
|
||||
: 1531952657:0;bmenu
|
||||
: 1531964644:0;zpl times
|
||||
: 1531964676:0;cfg zsh
|
||||
: 1531966143:0;false
|
||||
: 1531966153:0;cfg zsh
|
||||
: 1531966183:0;false
|
||||
: 1531970644:0;htop
|
||||
: 1531971229:0;rld bar
|
||||
: 1531975092:0;zpl times
|
||||
: 1531975135:0;rld bar
|
||||
: 1531976032:0;zpl times
|
||||
: 1531976042:0;Documents/Pd/mi_pc-extended
|
||||
: 1531976052:0;gstat
|
||||
: 1531976056:0;g status
|
||||
: 1531976068:0;ga -vu
|
||||
: 1531976093:0;gcmsg "El patch de la muerte esta arreglado :)"
|
||||
: 1531976107:0;gp
|
||||
: 1531976230:0;~
|
||||
: 1531976248:0;.zplugin/plugins/eendroroy---alien-minimal
|
||||
: 1531976250:0;ls
|
||||
: 1531976265:0;cot README.md
|
||||
: 1531976802:0;ls
|
||||
: 1531976812:0;vi alien-minimal.zsh
|
||||
: 1531976877:0;modules
|
||||
: 1531976878:0;ls
|
||||
: 1531976890:0;vi git.zsh
|
||||
: 1531977044:0;vi init.zsh
|
||||
: 1531977067:0;vi prompt.zsh
|
||||
: 1531977093:0;up
|
||||
: 1531977098:0;libs
|
||||
: 1531977100:0;ls
|
||||
: 1531977109:0;promptlib
|
||||
: 1531977111:0;ls
|
||||
: 1531977121:0;vi activate
|
||||
: 1531977130:0;modules
|
||||
: 1531977132:0;ls
|
||||
: 1531977153:0;vi git.zsh
|
||||
: 1532009627:0;zpl times
|
||||
: 1532009638:0;Documents/
|
||||
: 1532009641:0;ls
|
||||
: 1532009653:0;Algorave\ Resources
|
||||
: 1532009654:0;ls
|
||||
: 1532009673:0;g clone jositux/livecodear
|
||||
: 1532013019:0;~/bin
|
||||
: 1532013032:0;g clone munshkr/vim-tidal
|
||||
: 1532013057:0;vim-tidal
|
||||
: 1532013059:0;ls
|
||||
: 1532013290:0;cfg bar
|
||||
: 1532013409:0;zpl times
|
||||
: 1532013415:0;rld bar
|
||||
: 1532013473:0;cfg bar
|
||||
: 1532013488:0;rld bar
|
||||
: 1532014073:0;udiskie
|
||||
: 1532014571:0;ls
|
||||
: 1532014578:0;cot README.md
|
||||
: 1532014587:0;lass README.md
|
||||
: 1532014675:0;up
|
||||
: 1532014689:0;g clone jpalardy/vim-slime
|
||||
: 1532014909:0;cfg vi
|
||||
: 1532016022:0;~/.co
|
||||
: 1532016029:0;~/.config/nvim/colors
|
||||
: 1532016033:0;vi turtles.vim
|
||||
: 1532020841:0;cfg vi
|
||||
: 1532022740:0;~/bin
|
||||
: 1532022804:0;play
|
||||
: 1532022841:0;cfg bar
|
||||
: 1532023697:0;rld bar
|
||||
: 1532023706:0;play
|
||||
: 1532023740:0;cfg bar
|
||||
: 1532023827:0;p i
|
||||
: 1532024218:0;cfg bar
|
||||
: 1532024247:0;rld bar
|
||||
: 1532024254:0;cfg bar
|
||||
: 1532024275:0;rld bar
|
||||
: 1532024281:0;play
|
||||
: 1532024395:0;cfg bar
|
||||
: 1532024435:0;rld bar
|
||||
: 1532024492:0;cfg vi
|
||||
: 1532024804:0;play
|
||||
: 1532025219:0;cfg bar
|
||||
: 1532025233:0;rld bar
|
||||
: 1532025242:0;cfg bar
|
||||
: 1532025251:0;rld bar
|
||||
: 1532025268:0;cfg bar
|
||||
: 1532025390:0;rld bar
|
||||
: 1532025414:0;play
|
||||
: 1532025690:0;rld bar
|
||||
: 1532025701:0;play
|
||||
: 1532025789:0;rld bar
|
||||
: 1532025859:0;upd
|
||||
: 1532026371:0;~/.config/nvim/colors
|
||||
: 1532026374:0;vi turtles.vim
|
||||
: 1532026529:0;tx
|
||||
: 1532026532:0;play
|
||||
: 1532026693:0;vi
|
||||
: 1532026993:0;cfg vi
|
||||
: 1532028669:0;vi cosito
|
||||
: 1532028728:0;cfg vi
|
||||
: 1532029804:0;vi cosito
|
||||
: 1532029854:0;cfg vi
|
||||
: 1532031123:0;vi foo
|
||||
: 1532044757:0;.config/mutt
|
||||
: 1532044762:0;g pull
|
||||
: 1532044777:0;g stash
|
||||
: 1532044801:0;vi etc/muttcol
|
||||
: 1532044840:0;gl
|
||||
: 1532045233:0;lass README.md
|
||||
: 1532045371:0;vi personal.muttrc
|
||||
: 1532046270:0;hx-stat
|
||||
: 1532046322:0;hx-rm etc/mailcap
|
||||
: 1532046324:0;hx-stat
|
||||
: 1532046335:0;hx-add mailcap
|
||||
: 1532108643:0;upd
|
||||
: 1532117326:0;cfg bar
|
||||
: 1532142918:0;livecode
|
||||
: 1532142920:0;scsynth -u 57110
|
||||
: 1532142923:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1532142928:0;foxy
|
||||
: 1532147689:0;locate worksheet.py
|
||||
: 1532147902:0;deadcode
|
||||
: 1532148337:0;hx-stat
|
||||
: 1532148357:0;hx-up
|
|
@ -38,7 +38,7 @@ alias gcp='git cherry-pick'
|
|||
alias gcpa='git cherry-pick --abort'
|
||||
alias gcpc='git cherry-pick --continue'
|
||||
alias gcs='git commit -S'
|
||||
alias gd='git diff'
|
||||
alias gd='git diff --color | diff-so-fancy'
|
||||
alias gdca='git diff --cached'
|
||||
alias gdcw='git diff --cached --word-diff'
|
||||
alias gdct='git describe --tags `git rev-list --tags --max-count=1`'
|
||||
|
|
|
@ -8,6 +8,7 @@ unsetopt nomatch
|
|||
unsetopt menucomplete
|
||||
unsetopt flowcontrol
|
||||
unsetopt correctall
|
||||
setopt NOCLOBBER
|
||||
setopt completealiases
|
||||
setopt autocd
|
||||
setopt autoresume
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
include "/home/deadguy/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="8089"
|
||||
gtk-icon-theme-name="Papirus-Dark"
|
||||
gtk-icon-theme-name="ArchLabs-Light"
|
||||
gtk-font-name="Inter UI Medium 9"
|
||||
gtk-cursor-theme-name="Alkano"
|
||||
gtk-cursor-theme-size=0
|
||||
|
|
|
@ -55,7 +55,7 @@ window {
|
|||
children: [mainbox];
|
||||
border: 0 0 0 1px solid;
|
||||
border-color: @active-background;
|
||||
margin: 22px 0 0 0;
|
||||
margin: 0 0 0 0;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# vim:filetype=config:tw=80:et
|
||||
|
||||
background "#080808"
|
||||
decorations none
|
||||
dockapp_mode none
|
||||
fuzzy_edges 0
|
||||
geometry 1x1+0+0
|
||||
grow_gravity NW
|
||||
icon_gravity NW
|
||||
icon_size 16
|
||||
log_level err
|
||||
kludges fix_window_pos,force_icons_size
|
||||
max_geometry 0x0
|
||||
no_shrink false
|
||||
parent_bg false
|
||||
scrollbars none
|
||||
skip_taskbar true
|
||||
sticky true
|
||||
tint_color black
|
||||
tint_level 255
|
||||
transparent false
|
||||
vertical true
|
||||
window_layer top
|
||||
window_strut auto
|
||||
window_type dock
|
||||
xsync false
|
||||
|
45
.tmux.conf
45
.tmux.conf
|
@ -1,15 +1,16 @@
|
|||
# Set the default TERM
|
||||
# TERM
|
||||
set -g default-terminal tmux-256color
|
||||
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
|
||||
# Basics
|
||||
# Opciones basicas
|
||||
set -g set-clipboard on
|
||||
set -sg escape-time 0
|
||||
set -g mouse on
|
||||
set -gq status-utf8 on
|
||||
setw -gq utf8 on
|
||||
|
||||
# Windows
|
||||
# Ventanas
|
||||
set -g base-index 1
|
||||
setw -g automatic-rename on
|
||||
set -g renumber-windows on
|
||||
|
@ -18,7 +19,7 @@ set -g renumber-windows on
|
|||
setw -g pane-base-index 1
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# Notifications
|
||||
# Notificaciones
|
||||
set -g monitor-activity on
|
||||
set -g visual-activity off
|
||||
set -g visual-bell off
|
||||
|
@ -33,19 +34,23 @@ set -g status-keys vi
|
|||
setw -g automatic-rename-format "#{s/zsh//:pane_current_command}"
|
||||
setw -g pane-border-style fg=colour8
|
||||
setw -g pane-active-border-style fg=colour8
|
||||
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 status-style bg=default,fg=colour7
|
||||
set -g status-interval 1
|
||||
set -g status-left ''
|
||||
set -g status-right '#[fg=colour4]#S'
|
||||
set -g status-right '#(txbar)#[fg=colour4] %R #[fg=colour2,bold]#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-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},}} "
|
||||
|
||||
# Unbind defaults
|
||||
# Limpiar atajos
|
||||
unbind-key -a
|
||||
unbind-key C-b
|
||||
unbind-key space
|
||||
|
@ -53,11 +58,11 @@ unbind-key '"'
|
|||
unbind-key %
|
||||
unbind-key q
|
||||
|
||||
# Prefix
|
||||
# Prefijo
|
||||
set -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Misc
|
||||
# Varios
|
||||
bind-key ? list-keys
|
||||
bind-key d detach-client
|
||||
bind-key : command-prompt
|
||||
|
@ -66,39 +71,39 @@ bind-key T command-prompt 'rename-window %%'
|
|||
bind-key S command-prompt 'rename-session %%'
|
||||
bind-key r source-file $HOME/.tmux.conf \; display "Config Reloaded!"
|
||||
|
||||
# Switch panes using Alt-arrow without prefix
|
||||
# Cambiar de pane usando alt-flecha sin prefijo
|
||||
bind-key -n M-Left select-pane -L
|
||||
bind-key -n M-Right select-pane -R
|
||||
bind-key -n M-Up select-pane -U
|
||||
bind-key -n M-Down select-pane -D
|
||||
|
||||
# Swap panes
|
||||
# Trocar panes usando alt-flecha con prefijo
|
||||
bind-key M-Left swap-pane -s {left-of}
|
||||
bind-key M-Right swap-pane -s {right-of}
|
||||
bind-key M-Up swap-pane -U
|
||||
bind-key M-Down swap-pane -D
|
||||
|
||||
# Resize panes
|
||||
# Redimensionar
|
||||
bind-key J resize-pane -D 2
|
||||
bind-key K resize-pane -U 2
|
||||
bind-key H resize-pane -L 2
|
||||
bind-key L resize-pane -R 2
|
||||
|
||||
# Split panes
|
||||
# Dividir
|
||||
bind-key | split-window -h -c "#{pane_current_path}"
|
||||
bind-key - split-window -v -c "#{pane_current_path}"
|
||||
bind-key M-| split-window -fh -c "#{pane_current_path}"
|
||||
bind-key M-- split-window -fv -c "#{pane_current_path}"
|
||||
bind-key X select-layout even-vertical
|
||||
|
||||
# Zoom pane
|
||||
# Zoom
|
||||
bind-key -n M-z resize-pane -Z
|
||||
|
||||
# Close pane
|
||||
# Cerrar
|
||||
bind-key q kill-window
|
||||
bind-key x kill-pane
|
||||
|
||||
# Go to window
|
||||
# Ir a ventana
|
||||
bind-key 1 select-window -t :1
|
||||
bind-key 2 select-window -t :2
|
||||
bind-key 3 select-window -t :3
|
||||
|
@ -110,9 +115,13 @@ bind-key 8 select-window -t :8
|
|||
bind-key 9 select-window -t :9
|
||||
bind-key 0 select-window -t :0
|
||||
|
||||
# Window
|
||||
# Movimiento de ventanas
|
||||
bind-key Enter new-window
|
||||
bind-key Tab choose-window
|
||||
bind-key -n S-left prev
|
||||
bind-key -n S-right next
|
||||
bind-key -n C-left swap-window -t -1
|
||||
bind-key -n C-right swap-window -t +1
|
||||
|
||||
# Urlview
|
||||
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
||||
|
@ -121,13 +130,13 @@ bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-wind
|
|||
bind-key [ copy-mode
|
||||
bind-key ] paste-buffer
|
||||
|
||||
# Copy/paste. Selecting any text with mouse automatically copies it to the clipboard
|
||||
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
|
||||
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind-key C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
|
||||
# Toggle the status bar
|
||||
# Prender y apagar statusbar
|
||||
bind-key / set-option -g status
|
||||
|
||||
# Better mouse support
|
||||
|
|
4
.urlview
4
.urlview
|
@ -1,8 +1,6 @@
|
|||
# regular expression to use to match URLs
|
||||
|
||||
REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
|
||||
|
||||
# command to invoke for selected URL
|
||||
COMMAND webcap
|
||||
|
||||
# set to yes to enable menu wrapping
|
||||
WRAP Yes
|
||||
|
|
5
.xinitrc
5
.xinitrc
|
@ -18,7 +18,10 @@ xset s noexpose &
|
|||
|
||||
setxkbmap -option caps:escape
|
||||
wmname LG3D &
|
||||
gnome-keyring-daemon --start --components=pkcs11 &
|
||||
#gnome-keyring-daemon --start --components=pkcs11 &
|
||||
dbus-update-activation-environment --systemd DISPLAY
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
||||
export SSH_AUTH_SOCK
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
sxhkd &
|
||||
xfce4-power-manager &
|
||||
|
|
49
.zshrc
49
.zshrc
|
@ -3,12 +3,15 @@
|
|||
|
||||
# Exports {{{
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="subl"
|
||||
export VISUAL="nano"
|
||||
export BROWSER="firefox"
|
||||
export CLIBROWSER="links"
|
||||
export GREP_COLOR="0;32"
|
||||
export PULSEMIXER_BAR_STYLE="┌╶┐╴└┘▮ ◆┆"
|
||||
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
||||
export TIME_STYLE="long-iso"
|
||||
export BLOCK_SIZE="'1"
|
||||
export QUOTING_STYLE=literal
|
||||
# }}}
|
||||
|
||||
# Zplugin {{{
|
||||
|
@ -23,43 +26,10 @@ zplugin load peterhurford/up.zsh
|
|||
zplugin load hlissner/zsh-autopair
|
||||
zplugin ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX" nocompile'!'
|
||||
zplugin light tj/git-extras
|
||||
|
||||
zplugin ice pick"bin/git-dsf" as"program"
|
||||
zplugin light zdharma/zsh-diff-so-fancy
|
||||
|
||||
zplugin ice pick"c.zsh" atclone"dircolors -b LS_COLORS > c.zsh" atpull"%atclone"
|
||||
zplugin light trapd00r/LS_COLORS
|
||||
# }}}
|
||||
|
||||
# Prompt {{{
|
||||
setopt promptsubst
|
||||
zplugin ice pick"async.zsh" src"pure.zsh"; zplugin light sindresorhus/pure
|
||||
PURE_CMD_MAX_EXEC_TIME=1000000
|
||||
VIM_PROMPT=">"
|
||||
prompt_newline='%666v'
|
||||
PROMPT=' %(?.%B%F{green}.%B%F{red})${VIM_PROMPT}%b%f '
|
||||
#PROMPT='%(?.%B%F{green}.%B%F{red}>%B%F{green})${VIM_PROMPT}%b%f '
|
||||
prompt_pure_update_vim_prompt() {
|
||||
zle || {
|
||||
print "error: pure_update_vim_prompt must be called when zle is active"
|
||||
return 1
|
||||
}
|
||||
VIM_PROMPT=${${KEYMAP/vicmd/<}/(main|viins)/>}
|
||||
zle .reset-prompt
|
||||
}
|
||||
|
||||
function zle-line-init zle-keymap-select {
|
||||
prompt_pure_update_vim_prompt
|
||||
}
|
||||
export KEYTIMEOUT=1
|
||||
zle -N zle-line-init
|
||||
zle -N zle-keymap-select
|
||||
# }}}
|
||||
|
||||
# History Highlight Hooha {{{
|
||||
# Load all my stuff, sometimes i feel like zplugin is too convoluted
|
||||
zplugin ice atinit'local i; for i in *.zsh; do source $i; done'; zpl light ~/.config/zsh
|
||||
|
||||
zplugin ice wait"0" blockf lucid
|
||||
zplugin light zsh-users/zsh-completions
|
||||
zplugin ice wait"0" lucid atinit"zpcompinit; zpcdreplay"
|
||||
|
@ -80,8 +50,7 @@ zstyle ':completion:*:correct:*' insert-unambiguous true
|
|||
zstyle ':completion:*:corrections' format '%d %B(%F{red}errors: %e%f)%b'
|
||||
zstyle ':completion:*:correct:*' original true
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' format $'\n%BCompleting %F{magenta}%d%f%b'
|
||||
zstyle ':completion:*:descriptions' format '%F{yellow}%B--- %d%b --- %f'
|
||||
zstyle ':completion:*:descriptions' format $'\n%F{yellow}--- %d --- %f'
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
|
||||
zstyle ':completion:*:matches' group 'yes'
|
||||
zstyle ':completion:*' group-name ''
|
||||
|
@ -91,7 +60,7 @@ zstyle ':completion:*:options' description 'yes'
|
|||
zstyle ':completion:*:processes' command 'ps -au $USER -o pid,stat,%cpu,%mem,cputime,command'
|
||||
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
zstyle ':completion:*' verbose true
|
||||
zstyle ':completion:*:warnings' format 'No matches for: %B%F{cyan}%d%f%b'
|
||||
zstyle ':completion:*:warnings' format 'No matches for: %F{cyan}%d%f'
|
||||
zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
|
||||
zstyle ':completion:*:processes-names' command 'ps c -u ${USER} -o command | uniq'
|
||||
zstyle ':completion:*:manuals' separate-sections true
|
||||
|
@ -100,11 +69,13 @@ zstyle ':completion:*:man:*' menu yes select
|
|||
zstyle ':completion:*' completer _oldlist _expand _complete _files _ignored
|
||||
zstyle ':completion:*' rehash true
|
||||
zstyle ':completion:*:parameters' list-colors '=*=34'
|
||||
zstyle ':completion:*:commands' list-colors '=*=1;32'
|
||||
zstyle ':completion:*:commands' list-colors '=*=32'
|
||||
zstyle ':completion:*:builtins' list-colors '=*=1;38;5;142'
|
||||
zstyle ':completion:*:aliases' list-colors '=*=2;38;5;120'
|
||||
zstyle ':completion:*:options' list-colors '=^(-- *)=34'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
||||
zstyle ':completion:*' list-separator "XX"
|
||||
zstyle ':completion:*:default' list-colors '=(#b)*(XX *)=36=31' '=*=36'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*( *[a-z])*=34=31=33'
|
||||
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
|
||||
zstyle ':completion::complete:*' use-cache on
|
||||
zstyle ':completion::complete:*' cache-path "$HOME/.zplugin/cache"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! updates=$(trizen -Su --aur --quiet | wc -l); then
|
||||
updates=0
|
||||
fi
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
notify-send -t 3000 "$updates updates available"
|
||||
#echo "↓ $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
2
bin/cfg
2
bin/cfg
|
@ -5,7 +5,7 @@ case $1 in
|
|||
start) $EDITOR ~/.config/bspwm/autostart ;;
|
||||
wm) $EDITOR ~/.config/bspwm/bspwmrc ;;
|
||||
keys) $EDITOR ~/.config/sxhkd/sxhkdrc ;;
|
||||
mutt) $EDITOR ~/.config/mutt/personal.muttrc ;;
|
||||
mutt) $EDITOR ~/.config/mutt/muttrc ;;
|
||||
zsh) $EDITOR ~/.zshrc ;;
|
||||
bar) $EDITOR ~/.config/polybar/config ;;
|
||||
dunst) $EDITOR ~/.config/dunst/dunstrc ;;
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export DISPLAY=:0.0
|
||||
|
||||
if ping -q -w 1 -c 1 "$(ip r | grep -m 1 default | cut -d ' ' -f 3)" >/dev/null
|
||||
then
|
||||
# Run offlineimap. You can feed this script different settings.
|
||||
offlineimap -o "$@"
|
||||
|
||||
# Check all accounts/mailboxes for new mail. Notify if there is new content.
|
||||
for account in ~/.mail/*
|
||||
do
|
||||
[[ -e $account ]] || break
|
||||
#List unread messages newer than last mailsync and count them
|
||||
newcount=$(find "$account"/INBOX/new/ -type f -newer ~/.config/mutt/etc/mailsynclastrun 2> /dev/null | wc -l)
|
||||
if [ "$newcount" -gt 0 ]
|
||||
then
|
||||
cuenta=$(echo "$account" | rev | cut -d"/" -f1-1 | rev)
|
||||
notify-send "$newcount new message(s) in $cuenta"
|
||||
fi
|
||||
done
|
||||
#Create a touch file that indicates the time of the last run of mailsync
|
||||
notmuch new
|
||||
touch ~/.config/mutt/etc/mailsynclastrun
|
||||
else
|
||||
exit
|
||||
fi
|
|
@ -6,7 +6,7 @@ FILE="$FOLDER/$1"
|
|||
if [[ -f $FILE ]]; then
|
||||
echo -e "There's a file called that already..."
|
||||
else
|
||||
echo -e "#!/bin/bash\n\n" > $FILE
|
||||
chmod +x $FILE
|
||||
$EDITOR $FILE
|
||||
echo -e "#!/bin/bash\\n\\n" > "$FILE"
|
||||
chmod +x "$FILE"
|
||||
$EDITOR "$FILE"
|
||||
fi
|
||||
|
|
2
bin/deci
2
bin/deci
|
@ -3,5 +3,5 @@
|
|||
# Showing off during live shows
|
||||
|
||||
echo " "
|
||||
toilet -t -f rustofat " $@ " | lolcat
|
||||
toilet -t -f 3d " $@ " | lolcat
|
||||
echo " "
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
# there are two different ways this script can work.
|
||||
# for the first way, uncomment the two lines after the if and place two '.' in front of the /$1
|
||||
# this creates a new directory in the directory where the compressed file is and dumps the content in it
|
||||
# for the second way, comment the two lines under the if and place just one '.' in front of the /$1
|
||||
# this just dumps the content of the compressed file in the same directory of the compressed file
|
||||
if [ -f "$1" ] ; then
|
||||
NAME=${1%.*}
|
||||
mkdir "$NAME" && cd "$NAME"
|
||||
case "$1" in
|
||||
*.tar.bz2) tar xvjf ../"$1" ;;
|
||||
*.tar.gz) tar xvzf ../"$1" ;;
|
||||
*.tar.xz) tar xvJf ../"$1" ;;
|
||||
*.lzma) unlzma ../"$1" ;;
|
||||
*.bz2) bunzip2 ../"$1" ;;
|
||||
*.rar) unrar x -ad ../"$1" ;;
|
||||
*.gz) gunzip ../"$1" ;;
|
||||
*.tar) tar xvf ../"$1" ;;
|
||||
*.tbz2) tar xvjf ../"$1" ;;
|
||||
*.tgz) tar xvzf ../"$1" ;;
|
||||
*.zip) unzip ../"$1" ;;
|
||||
*.Z) uncompress ../"$1" ;;
|
||||
*.7z) 7z x ../"$1" ;;
|
||||
*.xz) unxz ../"$1" ;;
|
||||
*.exe) cabextract ../"$1" ;;
|
||||
*) echo "extract: '$1' - unknown archive method" ;;
|
||||
esac
|
||||
else
|
||||
echo "$1 - file does not exist"
|
||||
fi
|
|
@ -48,8 +48,3 @@ case $1 in
|
|||
*) 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,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
git-download(){
|
||||
folder=${@/tree\/master/trunk}
|
||||
folder=${folder/blob\/master/trunk}
|
||||
svn export "$folder"
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
#all_monitors=$(xrandr -q | awk '/connected/ {print $1}')
|
||||
#default_screen=$(xrandr | awk '/ connected/ {print $1;exit;}')
|
||||
#extra_monitors=$(xrandr -q | awk '/connected/ {print $1}' | grep -v $default_screen)
|
||||
|
||||
##First, configure stuff with xrandr
|
||||
#[[ $(who) != "" ]] && USER=$(who | grep :0\) | cut -f 1 -d ' ') || \
|
||||
#USER=$(echo /home/* | cut -f 3 -d '/')
|
||||
|
||||
#export DISPLAY=:0.0
|
||||
#export XAUTHORITY=/home/$USER/.Xauthority
|
||||
|
||||
#for monitor in $extra_monitors; do
|
||||
# prev_mon=$(xrandr | awk '/connected/ {print $1}' | grep -B1 "^$monitor" | grep -vE "^$monitor|^--$")
|
||||
# xrandr --output $monitor \
|
||||
# --auto \
|
||||
# --right-of $prev_mon
|
||||
#done
|
||||
|
||||
##Then, create workspaces on all monitors
|
||||
I=1
|
||||
M=$(bspc query -M | wc -l)
|
||||
if [[ "$M" == 1 ]]; then
|
||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||
elif [[ "$M" == 2 ]]; then
|
||||
bspc monitor $(bspc query -M | awk NR==1) -d 1 2 3 4 5
|
||||
bspc monitor $(bspc query -M | awk NR==2) -d 6 7 8 9 10
|
||||
elif [[ "$M" == 3 ]]; then
|
||||
bspc monitor $(bspc query -M | awk NR==1) -d 1 2 3 4
|
||||
bspc monitor $(bspc query -M | awk NR==2) -d 5 6 7
|
||||
bspc monitor $(bspc query -M | awk NR==3) -d 8 9 10
|
||||
elif [[ "$M" == 4 ]]; then
|
||||
bspc monitor $(bspc query -M | awk NR==1) -d 1 2 3
|
||||
bspc monitor $(bspc query -M | awk NR==2) -d 4 5 6
|
||||
bspc monitor $(bspc query -M | awk NR==3) -d 7 8
|
||||
bspc monitor $(bspc query -M | awk NR==4) -d 9 10
|
||||
elif [[ "$M" == 5 ]]; then
|
||||
bspc monitor $(bspc query -M | awk NR==1) -d 1 2
|
||||
bspc monitor $(bspc query -M | awk NR==2) -d 3 4
|
||||
bspc monitor $(bspc query -M | awk NR==3) -d 5 6
|
||||
bspc monitor $(bspc query -M | awk NR==4) -d 7 8
|
||||
bspc monitor $(bspc query -M | awk NR==5) -d 9 10
|
||||
else
|
||||
for monitor in $(bspc query -M); do
|
||||
bspc monitor $monitor \
|
||||
-n "$I" \
|
||||
-d $I/{a,b,c}
|
||||
let I++
|
||||
done
|
||||
fi
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
desk=$(bspc query -T -d | jq '.name' | sed -r 's/("|")//g')
|
||||
|
||||
dunstify -a BSPWM -u low -r 5769 -t 1000 "$desk"
|
201
bin/pavolume.sh
201
bin/pavolume.sh
|
@ -1,201 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# finds the active sink for pulse audio and increments the volume. useful when you have multiple audio outputs and have a key bound to vol-up and down
|
||||
# https://github.com/jaagr/polybar/wiki/User-contributed-modules#pulseaudio-volume
|
||||
|
||||
osd='yes'
|
||||
inc='2'
|
||||
capvol='no'
|
||||
maxvol='150'
|
||||
autosync='no'
|
||||
|
||||
# Muted status
|
||||
# yes: muted
|
||||
# no : not muted
|
||||
curStatus="no"
|
||||
active_sink=""
|
||||
limit=$((100 - inc))
|
||||
maxlimit=$((maxvol - inc))
|
||||
|
||||
reloadSink() {
|
||||
active_sink=$(pacmd list-sinks | awk '/\* index:/{print $3}')
|
||||
}
|
||||
|
||||
function volUp {
|
||||
|
||||
getCurVol
|
||||
|
||||
if [ "$capvol" = 'yes' ]
|
||||
then
|
||||
if [ "$curVol" -le 100 ] && [ "$curVol" -ge "$limit" ]
|
||||
then
|
||||
pactl set-sink-volume "$active_sink" -- 100%
|
||||
elif [ "$curVol" -lt "$limit" ]
|
||||
then
|
||||
pactl set-sink-volume "$active_sink" -- "+$inc%"
|
||||
fi
|
||||
elif [ "$curVol" -le "$maxvol" ] && [ "$curVol" -ge "$maxlimit" ]
|
||||
then
|
||||
pactl set-sink-volume "$active_sink" "$maxvol%"
|
||||
elif [ "$curVol" -lt "$maxlimit" ]
|
||||
then
|
||||
pactl set-sink-volume "$active_sink" "+$inc%"
|
||||
fi
|
||||
|
||||
getCurVol
|
||||
|
||||
if [ ${osd} = 'yes' ]
|
||||
then
|
||||
notify-send -t 5000 " $curVol%"
|
||||
fi
|
||||
|
||||
if [ ${autosync} = 'yes' ]
|
||||
then
|
||||
volSync
|
||||
fi
|
||||
}
|
||||
|
||||
function volDown {
|
||||
|
||||
pactl set-sink-volume "$active_sink" "-$inc%"
|
||||
getCurVol
|
||||
|
||||
if [ ${osd} = 'yes' ]
|
||||
then
|
||||
notify-send -t 5000 " $curVol%"
|
||||
fi
|
||||
|
||||
if [ ${autosync} = 'yes' ]
|
||||
then
|
||||
volSync
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function getSinkInputs {
|
||||
input_array=$(pacmd list-sink-inputs | grep -B 4 "sink: $1 " | awk '/index:/{print $2}')
|
||||
}
|
||||
|
||||
function volSync {
|
||||
getSinkInputs "$active_sink"
|
||||
getCurVol
|
||||
|
||||
for each in $input_array
|
||||
do
|
||||
pactl set-sink-input-volume "$each" "$curVol%"
|
||||
done
|
||||
}
|
||||
|
||||
function getCurVol {
|
||||
curVol=$(pacmd list-sinks | grep -wA 15 'index: '"$active_sink"'' | grep 'volume:' | grep -E -v 'base volume:' | awk -F : '{print $3}' | grep -o -P '.{0,3}%'| sed s/.$// | tr -d ' ')
|
||||
}
|
||||
|
||||
function volMute {
|
||||
case "$1" in
|
||||
mute)
|
||||
pactl set-sink-mute "$active_sink" 1
|
||||
curVol=0
|
||||
status=1
|
||||
|
||||
if [ ${osd} = 'yes' ]
|
||||
then
|
||||
notify-send -t 5000 " muted" #{$curVol} ${status}
|
||||
fi
|
||||
|
||||
;;
|
||||
unmute)
|
||||
pactl set-sink-mute "$active_sink" 0
|
||||
getCurVol
|
||||
status=0
|
||||
|
||||
if [ ${osd} = 'yes' ]
|
||||
then
|
||||
notify-send -t 5000 " $curVol%"
|
||||
fi
|
||||
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
function volMuteStatus {
|
||||
curStatus=$(pacmd list-sinks | grep -wA 15 "index: $active_sink" | awk '/muted/{ print $2}')
|
||||
}
|
||||
|
||||
# Prints output for bar
|
||||
# Listens for events for fast update speed
|
||||
function listen {
|
||||
firstrun=0
|
||||
|
||||
pactl subscribe 2>/dev/null | {
|
||||
while true; do
|
||||
{
|
||||
# If this is the first time just continue
|
||||
# and print the current state
|
||||
# Otherwise wait for events
|
||||
# This is to prevent the module being empty until
|
||||
# an event occurs
|
||||
if [ $firstrun -eq 0 ]
|
||||
then
|
||||
firstrun=1
|
||||
else
|
||||
read -r event || break
|
||||
if ! echo "$event" | grep -e "on card" -e "on sink"
|
||||
then
|
||||
# Avoid double events
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
} &>/dev/null
|
||||
output
|
||||
done
|
||||
}
|
||||
}
|
||||
|
||||
function output() {
|
||||
reloadSink
|
||||
getCurVol
|
||||
volMuteStatus
|
||||
if [ "${curStatus}" = 'yes' ]
|
||||
then
|
||||
echo " $curVol%"
|
||||
else
|
||||
echo " $curVol%"
|
||||
fi
|
||||
} #}}}
|
||||
|
||||
reloadSink
|
||||
case "$1" in
|
||||
--up)
|
||||
volUp
|
||||
;;
|
||||
--down)
|
||||
volDown
|
||||
;;
|
||||
--togmute)
|
||||
volMuteStatus
|
||||
if [ "$curStatus" = 'yes' ]
|
||||
then
|
||||
volMute unmute
|
||||
else
|
||||
volMute mute
|
||||
fi
|
||||
;;
|
||||
--mute)
|
||||
volMute mute
|
||||
;;
|
||||
--unmute)
|
||||
volMute unmute
|
||||
;;
|
||||
--sync)
|
||||
volSync
|
||||
;;
|
||||
--listen)
|
||||
# Listen for changes and immediately create new output for the bar
|
||||
# This is faster than having the script on an interval
|
||||
listen
|
||||
;;
|
||||
*)
|
||||
# By default print output for bar
|
||||
output
|
||||
;;
|
||||
esac
|
1
bin/rld
1
bin/rld
|
@ -4,6 +4,7 @@ case $1 in
|
|||
zsh) source ~/.zshrc ;;
|
||||
fonts) fc-cache -v -f ;;
|
||||
keys) pkill -USR1 -x sxhkd ;;
|
||||
st) xrdb ~/.Xresources && pkill -USR1 -x st ;;
|
||||
dunst) ~/.config/dunst/./reload ;;
|
||||
comp) pkill compton && compton -bcCGf ;;
|
||||
xres) xrdb ~/.Xresources ;;
|
||||
|
|
14
bin/skyterm
14
bin/skyterm
|
@ -2,28 +2,28 @@
|
|||
|
||||
terminal="st"
|
||||
|
||||
if [ -z $(xdotool search --classname "dropdown") ]; then
|
||||
bspc rule -a $terminal:dropdown state=floating,hidden=on,sticky=on layer=above,focus=on,rectangle=1362x250+2+527
|
||||
if [ -z "$(xdotool search --classname "dropdown")" ]; then
|
||||
bspc rule -a $terminal:dropdown state=floating,hidden=on,border=off,sticky=on layer=above,focus=on,rectangle=1364x250+1+527
|
||||
|
||||
# Use of xtoolwait is recommended instead of the until-loop.
|
||||
# One or the other is needed to wait for the terminal to be
|
||||
# mapped to a window before continuing the script.
|
||||
# xtoolwait, as the name implies, does not work with wayland.
|
||||
#xtoolwait "$terminal" -c "$terminal" -n dropdown
|
||||
($terminal -c $terminal -n dropdown &); until [ $(bspc query -N -n .hidden | tail -n1) ]; do :; done
|
||||
($terminal -c $terminal -n dropdown &); until [ "$(bspc query -N -n .hidden | tail -n1)" ]; do :; done
|
||||
|
||||
# find the newest hidden terminal
|
||||
wid=$(bspc query -N -n .hidden | tail -n1)
|
||||
|
||||
compton-trans -w $wid -o 80
|
||||
#compton-trans -w $wid -o 80
|
||||
|
||||
# Reveal the terminal once all the geometric changes are complete
|
||||
bspc node $wid -g hidden=off -f
|
||||
bspc node "$wid" -g hidden=off -f
|
||||
|
||||
bspc rule -r $terminal:dropdown
|
||||
else
|
||||
wid=$(printf "0x%x" $(xdotool search --classname "dropdown"))
|
||||
wid=$(printf "0x%x" "$(xdotool search --classname "dropdown")")
|
||||
|
||||
# toggle visibility of dropdown menu
|
||||
bspc node $wid -g hidden -f
|
||||
bspc node "$wid" -g hidden -f
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if command -v tmux >/dev/null 2>&1; then
|
||||
test -z "$TMUX" && (tmux a || tmux)
|
||||
fi
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Clears the build files of a LaTeX/XeLaTeX build.
|
||||
# I have vim run this file whenever I exit a .tex file.
|
||||
|
||||
[[ "$1" == *.tex ]] || exit
|
||||
|
||||
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
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
sleep 5
|
||||
xdotool search --class stalonetray windowunmap
|
||||
bspc config top_padding 6
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
xdotool search --class stalonetray windowmap
|
||||
#bspc config top_padding 6
|
|
@ -23,10 +23,8 @@ if [ -d /sys/class/power_supply/BAT0 ]; then
|
|||
echo -ne " $HEART $current_charge "
|
||||
fi
|
||||
|
||||
if cat /sys/class/net/wlo1/operstate | grep -q 'up'; then
|
||||
if grep -q 'up' /sys/class/net/wlo1/operstate; then
|
||||
net="$(awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless)"
|
||||
echo -ne "#[fg=cyan]$WIFI ${net} "
|
||||
echo -ne "#[fg=colour177]$WIFI ${net} "
|
||||
|
||||
fi
|
||||
|
||||
#echo -ne " $HEART $current_charge #[fg=cyan]$WIFI ${net} "
|
||||
|
|
33
bin/webcap
33
bin/webcap
|
@ -4,16 +4,31 @@
|
|||
# Opens the url with xdg-open unless it is an image,
|
||||
|
||||
ext="${1##*.}"
|
||||
mpvFiles="mkv mp4 gif"
|
||||
mpvFiles="mkv mp4 gif webm"
|
||||
fehFiles="png jpg jpeg jpe"
|
||||
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
||||
|
||||
if echo "$fehFiles" | grep -w "$ext" > /dev/null; then
|
||||
nohup imv "$1" >/dev/null &
|
||||
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
|
||||
nohup wget "$1" >/dev/null &
|
||||
# List of sites that will be opened in mpv.
|
||||
vidsites="youtube.com
|
||||
\|hooktube.com
|
||||
\|bitchute.com
|
||||
\|vimeo.com
|
||||
\|dailymotion.com
|
||||
"
|
||||
|
||||
ext="${1##*.}"
|
||||
mpvFiles="mkv mp4 gif webm"
|
||||
fehFiles="png jpg jpeg jpe"
|
||||
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
||||
|
||||
if echo $fehFiles | grep -w $ext > /dev/null; then
|
||||
setsid nohup sxiv "$1" >/dev/null & disown
|
||||
elif echo $mpvFiles | grep -w $ext > /dev/null; then
|
||||
setsid nohup mpv -quiet "$1" > /dev/null & disown
|
||||
elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
||||
wget "$1" >/dev/null & disown
|
||||
elif echo "$@" | grep "$vidsites">/dev/null; then
|
||||
setsid nohup mpv -quiet "$1" > /dev/null & disown
|
||||
else
|
||||
nohup "$BROWSER" "$1" >/dev/null &
|
||||
fi
|
||||
setsid nohup $BROWSER "$1" 2>/dev/null & disown
|
||||
fi
|
22
paketes.txt
22
paketes.txt
|
@ -2,6 +2,8 @@ accountsservice
|
|||
acpi
|
||||
acpid
|
||||
adobe-source-code-pro-fonts
|
||||
adobe-source-han-sans-jp-fonts
|
||||
adobe-source-sans-pro-fonts
|
||||
aisleriot
|
||||
alsa-oss
|
||||
amsynth
|
||||
|
@ -22,7 +24,6 @@ bspwm
|
|||
bzr
|
||||
cadence
|
||||
calf
|
||||
cataclysm-dda
|
||||
catfish
|
||||
catimg
|
||||
ccache
|
||||
|
@ -38,11 +39,11 @@ dhclient
|
|||
dhcpcd
|
||||
dhex
|
||||
dialog
|
||||
diff-so-fancy
|
||||
discount
|
||||
dnsmasq
|
||||
docx2txt
|
||||
downgrade
|
||||
dwarffortress
|
||||
ecryptfs-utils
|
||||
efitools
|
||||
ethtool
|
||||
|
@ -64,6 +65,8 @@ gst-libav
|
|||
gst-plugins-bad
|
||||
gst-plugins-good
|
||||
gst-plugins-ugly
|
||||
gtk-engine-murrine
|
||||
gtk-engines
|
||||
gucharmap
|
||||
gufw
|
||||
gvfs-afc
|
||||
|
@ -75,8 +78,10 @@ hdparm
|
|||
highlight
|
||||
htop
|
||||
hub
|
||||
hunspell-es_any
|
||||
hunspell-es_ar
|
||||
hydrogen
|
||||
imv
|
||||
inkscape
|
||||
intel-ucode
|
||||
iputils
|
||||
ipw2100-fw
|
||||
|
@ -128,6 +133,7 @@ nano
|
|||
nbd
|
||||
ncdu
|
||||
ncmpcpp
|
||||
neomutt
|
||||
net-snmp
|
||||
netctl
|
||||
network-manager-applet
|
||||
|
@ -147,9 +153,9 @@ open-fuse-iso
|
|||
os-prober
|
||||
p7zip
|
||||
paprefs
|
||||
parallel
|
||||
patch
|
||||
pavucontrol
|
||||
pd
|
||||
pd-l2ork
|
||||
perl-clone
|
||||
perl-curses-ui
|
||||
|
@ -170,7 +176,6 @@ pulseaudio-bluetooth
|
|||
pulseaudio-ctl
|
||||
pulseaudio-equalizer
|
||||
pulseaudio-jack
|
||||
pulseaudio-zeroconf
|
||||
pulsemixer
|
||||
python-beautifulsoup4
|
||||
python-isort
|
||||
|
@ -178,6 +183,7 @@ python-language-server
|
|||
python-mpd2
|
||||
python-neovim
|
||||
python-opengl
|
||||
python-pillow
|
||||
python-pip
|
||||
python-pycurl
|
||||
python-pydocstyle
|
||||
|
@ -187,6 +193,7 @@ python-pystemmer
|
|||
python-pytest-cache
|
||||
python-pytest-flake8
|
||||
python-setproctitle
|
||||
python-virtualenv
|
||||
python2-lxml
|
||||
python2-numpy
|
||||
qalculate-gtk
|
||||
|
@ -209,6 +216,7 @@ soundfont-fluid
|
|||
sox
|
||||
squashfs-tools
|
||||
srandrd
|
||||
stalonetray
|
||||
strace
|
||||
sublime-text
|
||||
surfraw
|
||||
|
@ -227,18 +235,19 @@ texlive-science
|
|||
the_silver_searcher
|
||||
thermald
|
||||
thunar-volman
|
||||
tig
|
||||
tmux
|
||||
transmission-cli
|
||||
tree
|
||||
trizen
|
||||
ttf-anonymous-pro
|
||||
ttf-hanazono
|
||||
ttf-montserrat
|
||||
tumbler
|
||||
unace
|
||||
unarj
|
||||
uncrustify
|
||||
unrar
|
||||
urxvt-perls
|
||||
usb_modeswitch
|
||||
usbutils
|
||||
vco-plugins
|
||||
|
@ -281,7 +290,6 @@ xorg-xlsclients
|
|||
xorg-xrefresh
|
||||
xorg-xsetroot
|
||||
xorg-xvinfo
|
||||
xsel
|
||||
xtitle
|
||||
yapf
|
||||
youtube-dl
|
||||
|
|
|
@ -17,11 +17,8 @@ distrho-lv2-git
|
|||
distrho-vst-git
|
||||
dpf-plugins-git
|
||||
dunst-git
|
||||
dwarffortress-terminal-fonts
|
||||
dwarftherapist
|
||||
figlet-fonts
|
||||
flif-git
|
||||
fritzing
|
||||
gimp-font-rendering-fix
|
||||
gimp-plugin-akkana-git
|
||||
gimp-plugin-create-layer-mask-from
|
||||
|
@ -36,7 +33,6 @@ gimp-plugin-wavelet-sharpen
|
|||
gnome-vfs
|
||||
godot
|
||||
gohufont
|
||||
helm-vst
|
||||
hsetroot
|
||||
ibniz-git
|
||||
icons-in-terminal
|
||||
|
@ -45,23 +41,22 @@ imlib2-bpg-git
|
|||
imlib2-webp-git
|
||||
lab
|
||||
libbpg
|
||||
linux-ck
|
||||
lmms-orgmaker-samples
|
||||
megatools
|
||||
modprobed-db
|
||||
mons
|
||||
ncpamixer-git
|
||||
neomutt-git
|
||||
neovim-drop-in
|
||||
njconnect
|
||||
oomox
|
||||
openav-artyfx-git
|
||||
otf-san-francisco
|
||||
pablodraw
|
||||
pacnews-neovim
|
||||
papirus-icon-theme-git
|
||||
pcmciautils
|
||||
perl-extract-url
|
||||
perl-getopt-long-descriptive
|
||||
perl-uri-find
|
||||
phallus-fonts-git
|
||||
pmount
|
||||
pymdown-extensions
|
||||
python-lolcat
|
||||
|
@ -82,6 +77,7 @@ toilet-fonts
|
|||
transmission-remote-cli-git
|
||||
ttf-clear-sans
|
||||
ttf-ibm-plex-git
|
||||
ttf-inter-ui
|
||||
ttf-iosevka
|
||||
ttf-iosevka-term
|
||||
ttf-monaco
|
||||
|
@ -90,5 +86,4 @@ unclutter-xfixes-git
|
|||
urlview
|
||||
xcursor-alkano-default
|
||||
xzoom
|
||||
zd1211-firmware
|
||||
zsh-completions-git
|
||||
|
|
Reference in New Issue