dgy
/
hexagons
Archived
1
0
Fork 0

arroz todos los dias porque macrisis

This commit is contained in:
deadguy 2019-04-25 00:39:38 -03:00
parent 7d9c09fa26
commit e6ef260de7
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
22 changed files with 554 additions and 497 deletions

View File

@ -9,14 +9,14 @@
! red
*.color1: #ec5252
*.color9: #ff9191
*.color9: #fb4934
! green
*.color2: #407e4a
*.color10: #b8bb26
*.color10: #98971a
! yellow
*.color3: #d49b41
*.color3: #d79921
*.color11: #fabd2f
! blue
@ -24,16 +24,16 @@
*.color12: #0474a7
! magenta
*.color5: #cb5a80
*.color13: #ff79c6
*.color5: #b16286
*.color13: #d3869b
! cyan
*.color6: #5d879c
*.color14: #8be9fd
*.color6: #689d64
*.color14: #8ec07c
! white
*.color7: #c8c8c8
*.color15: #e0e0e0
*.color7: #a89984
*.color15: #c9c9c9
!URxvt.font: xft:sarasatermj:size=10
!URxvt.font: -t-cherry-medium-r-normal--13-120-96-96-c-100-iso8859-1

View File

@ -3,10 +3,10 @@ set -euf -o pipefail
multipantalla &
# variables
gap=8
pad=6
panel=22
b_width=2
b_width=4
export b_width
export gap
export pad
@ -19,11 +19,7 @@ bspc config left_padding 0
bspc config right_padding 0
bspc config bottom_padding 0
#for side in top right bottom left; do
# bspc config ${side}_monocle_padding -"$(bspc config ${side}_padding)"
#done
# Settings
# Opciones
bspc config gapless_monocle true
bspc config borderless_monocle true
bspc config single_monocle true
@ -51,7 +47,7 @@ xrdb -merge "${HOME}/.Xresources"
bspc config normal_border_color "$(get_xrdb color0)"
bspc config focused_border_color "$(get_xrdb color3)"
bspc config active_border_color "$(get_xrdb color8)"
bspc config presel_feedback_color "$(get_xrdb color6)"
bspc config presel_feedback_color "$(get_xrdb color5)"
bspc config border_width $b_width
# Flotantes
@ -87,7 +83,7 @@ bspc rule -a Firefox desktop='^2'
bspc rule -a Termite:archi desktop='^3'
bspc rule -a Termite:multi desktop='^1'
# scripts utiles
setbg &
unclutter &
actualizar &
correo &
bspborders

View File

@ -1,8 +1,6 @@
#backend = "glx";
backend = "xrender";
paint-on-overlay = true;
vsync = "none";
#vsync = "opengl-swc";
glx-no-rebind-pixmap = true;
refresh-rate = 0;
glx-swap-method = "undefined";
@ -41,11 +39,9 @@ fade-out-step = 0.3;
blur-background = true;
blur-background-frame = true;
blur-background-fixed = true;
#blur-method = "kawase"
blur-kern = "3x3box";
opacity-rule = [
"20:class_g = 'Bspwm' && class_i = 'presel_feedback'",
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];

View File

@ -1,12 +1,28 @@
# vim: filetype=neomuttrc
source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
source /home/deadguy/.config/mutt/accounts/1-alex.muttrc # mw-autogenerated
macro index,pager i1 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com" # mw-autogenerated
macro index,pager i2 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com" # mw-autogenerated
macro index,pager i3 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/3-zeta.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc" # mw-autogenerated
set mailcap_path = ~/.config/mailcap
set mailcap_path = ~/.config/mutt/mailcap
source "~/.config/mutt/gpg.rc"
macro index,pager i1 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
source /home/deadguy/.config/mutt/accounts/alex.muttrc
macro index,pager i2 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
macro index,pager i3 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/zeta.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
macro index O "<shell-escape>correo -Va<enter>" "run offlineimap to sync all mail"
macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
bind index,pager,browser D half-down
bind index,pager,browser U half-up
bind index <space> collapse-thread
bind index d delete-message
bind index u undelete-message
bind index <left> previous-unread
bind index <right> next-unread
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> previous-undeleted
bind pager <right> next-undeleted
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
@ -17,13 +33,11 @@ set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set new_mail_command="notify-send -a neomutt -u normal 'You Got Mail' '%n new messages, %u unread.' &"
set date_format ="%a %d %b %R"
set alias_format = " %4n %t %-20a %r "
set autoedit ## Skip directly to composing
set sendmail_wait = 1 ## wait for sending to complete
set attribution = "El %d, %n escribio:" ## set the attribution
set reply_to ## reply to Reply to: field
set sig_dashes ## dashes before sig
set text_flowed = yes ## Eliminate odd line breaks
set skip_quoted_offset = 3
@ -49,24 +63,3 @@ 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"

View File

@ -1,18 +1,28 @@
# opciones basicas
refresh-on-startup yes
always-display-description true
display-article-progress yes
article-sort-order date-asc
feed-sort-order title-dec
text-width 80
auto-reload yes
articlelist-format "%4i %S %f (%D) %6L │ %?T? %-17T; ?%t"
# formatos
articlelist-format "%4i %S %f (%D) %6L %?T? %-17T; ?%t"
feedlist-format "%4i %n %S %11u %t"
feedlist-title-format "%N: (%u/%t) Feeds"
articlelist-title-format "%N: (%u/%t) %T [%U]"
searchresult-title-format "%N: (%u/%t) Search"
filebrowser-title-format "%N: %f %?O?Open File&Save File?"
help-title-format "%N: Help"
selecttag-title-format "%N: Select Tag"
selectfilter-title-format "%N: Select Filter"
itemview-title-format "%N: %T"
urlview-title-format "%N: URLs"
dialogs-title-format "%N: Dialogs"
notify-format "%n Articulos no leidos"
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
# teclas
bind-key j down
bind-key k up
#bind-key j next articlelist
#bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
@ -28,21 +38,15 @@ bind-key D pb-download
bind-key U show-urls
bind-key x pb-delete
bind-key ^t next-unread
bind-key SPACE open-search
bind-key / open-search
#color listnormal cyan default
#color listfocus black yellow standout bold
#color listnormal_unread blue default
#color listfocus_unread yellow default bold
#color info red black bold
#color article cyan default
color listnormal color15 color0
color listfocus color6 color8
color listnormal_unread color2 color0
color listfocus_unread color6 color8
color info color6 color8
color background color9 color0
# colores
color listnormal cyan default
color listfocus green default standout bold
color listnormal_unread blue default
color listfocus_unread yellow default bold
color info default default bold
color article cyan default
highlight article "^(Feed|Title|Author|Link|Date):.*" color4 default
highlight article "^Podcast Download URL:.*" color5 default
@ -52,15 +56,24 @@ highlight article "\\[image [0-9][0-9]*\\]" color2 default
highlight article "\\[embedded flash: [0-9][0-9]*\\]" color5 default
highlight article ":.*\\(link\\)$" color12 default
highlight article ":.*\\(image\\)$" color2 default
highlight article ":.*\\(embedded flash\\)$" color3 default
highlight article ":.*\\(embedded flash\\)$" color3 default
# programas externos
notify-program "notify-send"
browser linkhandler
player mpv
save-path ~/.config/newsboat/saved
html-renderer "w3m -dump -T text/html"
# macros con prefijo
macro , open-in-browser
macro t set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler
macro t set browser "transmission-remote --add %u"; open-in-browser ; set browser linkhandler
macro d set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
macro w set browser "w3m"; open-in-browser ; set browser linkhandler
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
macro w set browser "tmux split-window && tmux send-keys '$w3m %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
macro r set browser "tmux split-window && tmux send-keys 'rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
macro s set browser "tmux split-window && tmux send-keys 'ranger ~/.config/newsboat/saved && tmux kill-pane\n'" ; open-in-browser ; set browser linkhandler
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler
# vim: ft=conf cms=#%s

View File

@ -3,10 +3,19 @@
https://www.questionablecontent.net/QCRSS.xml "~Questionable Content"
http://www.empoweredcomic.com/comic/rss "~Empowered"
-------BLOGS------------
https://chiptuneswin.com/blog/feed/ "~Chiptunes=WIN"
https://vimways.org/index.xml "Vimways"
-------YOUTUBE-----------
https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg "~DistroTube"
https://www.youtube.com/feeds/videos.xml?user=gotbletu "~Gotbletu"
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith"
https://www.youtube.com/feeds/videos.xml?user=JtheLinuxguy "~Learn Linux"
https://www.youtube.com/feeds/videos.xml?user=moviebob "~Moviebob"
https://www.youtube.com/feeds/videos.xml?playlist_id=PLXleEiD94A2d6WdmDU0h7dXJg8scAaZ9U "~Moviebob Reviews"
https://www.youtube.com/feeds/videos.xml?channel_id=UCu8YylsPiu9XfaQC74Hr_Gw "~Seth's Bike Hacks"
https://www.youtube.com/feeds/videos.xml?channel_id=UCXKYjkimgemQuuNP-JRTz2Q "~Mundo Ciclismo TV"
https://www.youtube.com/feeds/videos.xml?user=tvmultimediacine "~Ruta Cleta"
@ -38,6 +47,4 @@ https://www.reddit.com/r/algorave.rss "~Algorave"
https://www.reddit.com/r/livecoding.rss "~Livecoding"
https://www.reddit.com/r/argentina.rss "~Argentina"
-------OTROS------------
https://vimways.org/index.xml "Vimways"

View File

@ -34,7 +34,9 @@ filter_unmatched_urls = true
# emit escape sequences for extra modified keys
#modify_other_keys = false
[colors]
# special
foreground = #d3d7cf
foreground_bold = #d3d7cf
@ -47,14 +49,14 @@ color8 = #555555
# red
color1 = #ec5252
color9 = #ff9191
color9 = #fb4934
#green
# green
color2 = #407e4a
color10 = #b8bb26
color10 = #98971a
# yellow
color3 = #d49b41
color3 = #d79921
color11 = #fabd2f
# blue
@ -62,16 +64,17 @@ color4 = #008bbd
color12 = #0474a7
# magenta
color5 = #cb5a80
color13 = #ff79c6
color5 = #b16286
color13 = #d3869b
# cyan
color6 = #5d879c
color14 = #8be9fd
color6 = #689d64
color14 = #8ec07c
# white
color7 = #c8c8c8
color15 = #e0e0e0
color7 = #a89984
color15 = #c9c9c9
[hints]
padding = 4

View File

@ -1,7 +0,0 @@
SHORTCUT
COMMAND firefox %s &
HTML_TAGS a,iframe,link
ALTSELECT Q
DEFAULT_VIEW context
DISPLAY_SANITIZED
PERSISTENT

View File

@ -1,165 +0,0 @@
#
# ██
# ░██
# ░██ ██████ ██████ ███████ ██████ █████
# ░██████ ░░██░░█ ██░░░░██░░██░░░██░░░░██ ██░░░██
# ░██░░░██ ░██ ░ ░██ ░██ ░██ ░██ ██ ░███████
# ░██ ░██ ░██ ░██ ░██ ░██ ░██ ██ ░██░░░░
# ░██████ ░███ ░░██████ ███ ░██ ██████░░██████
# ░░░░░ ░░░ ░░░░░░ ░░░ ░░ ░░░░░░ ░░░░░░
#
#
# neongold originally by xero https://github.com/xero/dotfiles
# tweaked by deadguy. i'm really sorry...
default_color = "-1";
info_eol = "false";
replaces = { "[]" = "%w$*%n"; };
abstracts = {
indent_default = " + %y│%n ";
line_start = "";
timestamp = "";
hilight = "%_$*%_";
error = "%r$*%n";
channel = "%w$*%n";
nick = "%_$*%_";
nickhost = "%g$*";
server = "%_$*%_";
comment = "%n(%w$*%n)";
reason = "{comment $*}";
mode = "{comment $*}";
channick_hilight = "%g$*%N";
chanhost_hilight = "{nickhost $*}";
channick = "$*";
chanhost = "{nickhost $*}";
channelhilight = "%g$*%n";
ban = "$*";
msgnick = "%y$0%w$1 %y│ %N";
ownmsgnick = "%y$0%w$1 %y│ %N";
ownnick = "%9%p$*%_%n";
pubnick = "%N$*%n";
menick = "%y$*%y";
# generic one that's used by most actions
action = "%n %y └╌╌ %I%P$* %P";
# own action, both private/public
ownaction = "%n %y └╌╌ %I%P$* %P";
# own action with target, both private/public
ownaction_target = "{action $*}";
# private action sent by others
pvtaction = "{action $*}";
pvtaction_query = "{action $*}";
# public action sent by others
pubaction = "{action $*}";
whois = "%w │ %n$1-";
ownnotice = "%NNote n = %Mnew%n $0 ($1-) ";
notice = "%M$*%n ";
pubnotice_channel = " %N($*)";
pvtnotice_host = " %N($*)";
servernotice = " %N($*)";
ownctcp = "%N$0 (%w$1-%N) ";
ctcp = "%N$*%n";
wallop = "%w$*%n: ";
wallop_nick = "%n$*";
wallop_action = "%w * $*%n ";
names_users = " %y┌─┄┄─┄┄──┘ %nusers in %b$1";
names_nick = "$2$0%n$1 ";
names_nick_op = "{names_nick $* %w}";
names_nick_halfop = "{names_nick $* %w}";
names_nick_voice = "{names_nick $* %w}";
names_prefix = " %y│ %n$1";
names_channel = "%W$*%n";
sb_background = "%N%N";
sb_prompt_bg = "%n";
sbstart = " %y┌─┄┄─────┘%w";
sbend = " ";
topicsbstart = " %y ┌┄┄%b$*";
awlbarend = " ";
topicsbend = "$*";
prompt = " %y└──┄┄╼%n ";
sb = "%N$*%N ";
sbmode = " ";
sbaway = " ";
sbservertag = " ";
sbnickmode = " ";
sb_act_msg = "%Y$*";
sb_act_hilight = "%M$*";
};
formats = {
"fe-common/core" = {
line_start_irssi = "{line_start}";
join = "%n %y ├─┄┄ %gjoin: %C{channick $0} %c(%c{nickhost %c$1}%c)";
part = "%n %y ┄┄─┤ %gpart: %C{channick $0} %c(%c{nickhost %c$1}%c)";
quit = "%n %y ┈┈┤ %rquit: %C{channick $0} {reason %Y$2}";
kick = "%n %y ╾┄┄┼ %b{channick $0} %nwas kicked by $2 %w{reason %R$3}";
nick_changed = " %y┄┼┄┄ %w{channick $0}%y is now %W{channick $1}";
your_nick_changed = " %y┄┼┄┄ %w{channick $0}%y == %W{channick $1}";
new_topic = "%y ┌─┄┄─────┘%n\012%y │ %wtopic %W'$2' %wset by $0\012%y └─┄┄─┄┄──┐ ";
endofnames = "%y └─┄┄─┄┄──┐ %btotal: {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normies%n";
#nick padding
pubmsg = " %y│%N $1";
own_msg = " %y│%N $1";
own_msg_channel = "{ownmsgnick $3 {ownnick $[-10]0}{msgchannel $1}}$2";
own_msg_private_query = " {ownprivmsgnick {ownprivnick $[-10]2}}$1";
pubmsg_me = "{pubmsghinick $[-10]0 {menick $2}}%y$1";
pubmsg_me_channel = "{pubmsghinick $3 {menick $[-10]0}{msgchannel $1}}$2";
pubmsg_hilight_channel = "{pubmsghinick $0 $[-10]1$4{msgchannel $2}}$3";
pubmsg_hilight = "{pubmsghinick $3 {menick $[-10]1}}$2";
pubmsg_channel = "{pubmsgnick {pubnick %G$[-10]0}$2}$1";
msg_private_query = " {privmsgnick $[-10]0}$2";
};
"fe-common/irc" = {
chanmode_change = "%n %y╎ %W%9mode%_ %w(%M{channick $1}%w) %nby $2";
server_chanmode_change = "%n %y┆ %W%9mode%_ %w{channick $1} %n(%w$2%n)";
whois = "%y┌─┄┄ %n\012%y│ %wuser %b$0 %w(%n$1%b@%n$2%w) %n\012%y│ %wname %n$3%n";
whois_idle = "%y│ %widle%b %|$1d $2h $3m $4s";
whois_idle_signon = "%y│ %widle%b %|$1d $2h $3m $4s {comment signon: $5}";
whois_server = "%y│ %wserv%b %|$1 {comment $2}";
whois_oper = "%y│ %woper%b {hilight $1}";
whois_registered = "%y│ %wrgis%n yes";
whois_help = "%y│ %whelp%b available for help";
whois_modes = "%y│ %wmode%b $1";
whois_realhost = "%y│ %wreal%b $1-";
whois_usermode = "%y│ %wumod%b $1";
whois_channels = "%y│ %wchan%b %|$1";
whois_away = "%y│ %waway%b %|$1";
whois_special = "%y│ %winfo%b {comment %|$1}";
whois_extra = "%y│ %wextr%b %|$1";
end_of_whois = "%y└─┄┄ ";
whois_not_found = "%y──┄┄ %wthere is no such nick %b$0";
topic = " %y ├─┄┄┄─┄";
topic_info = " %y │ %wtopic set by %b$0 %B(%w$1%B)";
channel_synced = "%n %N sync %y╪ %n{hilight $1} secs%: %y ├─┄┄┄─┄";
channel_created = " %n created %y╞ %n$1";
log_day_changed = "%y ┌─┄┄─────┘%n\\012%y │ It is now %A %d %b %Y\\012%y └─┄┄─┄┄──┐ ";
};
"Irssi::Script::adv_windowlist" = {
awl_display_header = "%U%9%w$C";
awl_display_nokey = " $Q$N${cumode_space}$H$C$S";
awl_display_key = " $Q${cumode_space}$H$C$S";
awl_display_nokey_visible = " %I$Q$N${cumode_space}$H$C$S";
awl_display_key_visible = " %I$Q${cumode_space}$H$C$S";
awl_display_nokey_active = "%k%4 $Q$N${cumode_space}$H$C$S";
awl_display_key_active = "%k%4 $Q${cumode_space}$H$C$S";
awl_abbrev_chars = "+x{301c}";
};
};

281
.irssi/config Normal file
View File

@ -0,0 +1,281 @@
utf8 = "on";
servers = (
{
address = "irc.undernet.org";
chatnet = "Undernet";
port = "6667";
},
{
address = "irc.freenode.net";
chatnet = "Freenode";
port = "6667";
use_ssl = "no";
ssl_verify = "no";
},
{
address = "irc.rizon.net";
chatnet = "Rizon";
port = "6697";
use_tls = "yes";
tls_cert = "~/.irssi/Rizon.pem";
tls_verify = "yes";
},
{
address = "unix.chat";
chatnet = "nixers";
port = "6697";
use_ssl = "yes";
ssl_verify = "no";
},
{
address = "ssl.efnet.org";
chatnet = "EFNet";
port = "9999";
use_tls = "yes";
}
);
chatnets = {
freenode = { type = "IRC"; };
Rizon = { type = "IRC"; };
nixers = { type = "IRC"; };
EFNet = { type = "IRC"; };
Undernet = { type = "IRC"; };
};
channels = (
{
name = "#archlinux-offtopic";
chatnet = "freenode";
autojoin = "yes";
},
{
name = "#archlinux-newbie";
chatnet = "freenode";
autojoin = "yes";
},
{ name = "#distrotube"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#pvm"; chatnet = "EFNet"; autojoin = "yes"; },
{ name = "#unix"; chatnet = "nixers"; autojoin = "Yes"; },
{ name = "#rice"; chatnet = "rizon"; autojoin = "yes"; },
{ name = "#unixporn"; chatnet = "nixers"; autojoin = "Yes"; },
{
name = "#idleRPG";
chatnet = "freenode";
autojoin = "yes";
autosendcmd = "/^msg IdleBot LOGIN deadguy mierdor";
},
{
name = "#rizonirpg";
chatnet = "Rizon";
autojoin = "yes";
autosendcmd = "/^msg RizonIRPG LOGIN deadguy panocha";
}
);
aliases = {
ATAG = "WINDOW SERVER";
ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
THEMERELOAD = "SCRIPT EXEC Irssi::themes_reload()";
J = "JOIN";
M = "MSG";
P = "PART";
Q = "QUIT";
S = "QUERY";
U = "UNQUERY";
RUN = "SCRIPT LOAD";
SAY = "MSG *";
WC = "WINDOW CLOSE";
WG = "WINDOW GOTO";
WM = "WINDOW MOVE";
WL = "WINDOW LIST";
W = "WHOIS";
ns = "msg nickserv";
cs = "msg chanserv";
};
settings = {
core = {
real_name = "deadguy";
user_name = "deadguy";
nick = "deadguy";
quit_message = "9";
};
"fe-text" = {
actlist_sort = "refnum";
term_force_colors = "yes";
indent = "12";
};
"fe-common/core" = {
theme = "zinc";
autolog_path = "";
autolog = "no";
autocreate_own_query = "yes";
autocreate_query_level = "MSGS";
use_status_window = "yes";
reuse_unused_windows = "no";
window_auto_change = "no";
activity_hide_targets = "#RizonIRPG =RizonIRPG, #IdleRPG =IdleBot";
beep_msg_level = "MSGS HILIGHT";
beep_when_window_active = "no";
emphasis = "yes";
emphasis_italics = "yes";
emphasis_multiword = "yes";
emphasis_replace = "yes";
show_names_on_join = "no";
show_quit_once = "yes";
activity_hide_level = "QUITS JOINS PARTS KICKS MODES TOPIC NICKS";
};
"irc / core" = {
ctcp_userinfo_reply = "rip";
ctcp_version_reply = "rip";
max_ctcp_queue = "0";
};
"perl/core/scripts" = {
nickcolor_enable_prefix = "yes";
nickcolor_enable_truncate = "yes";
nickcolor_prefix_text = " ";
nickcolor_truncate_value = "-12";
nicklist_color = "yes";
awl_shared_sbar = "50<5";
awl_viewer = "no";
awl_hide_empty = "0";
awl_hide_data = "0";
awl_maxlines = "1";
awl_block = "25";
awl_sbar_maxlength = "yes";
awl_placement = "bottom";
awl_viewer_tmux_position = "right";
fancy_abbrev = "head";
awl_all_disable = "off";
awl_height_adjust = "1";
awl_position = "0";
awl_sort = "refnum+-last_line";
awl_last_line_shade = "30";
awl_mouse = "yes";
awl_mouse_offset = "0";
mouse_escape = "0";
mouse_scroll = "3";
};
"fe-common/irc" = {
query_track_nick_changes = "yes";
group_multi_mode = "yes";
};
"irc/core" = {
rejoin_channels_on_reconnect = "ON";
split_line_on_space = "yes";
part_message = "bai";
};
};
logs = { };
statusbar = {
items = {
barstart = "{sbstart}";
barend = "{sbend}";
topicbarstart = "{topicsbstart}";
topicbarend = "{topicsbend}";
time = "{sb $Z}";
user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
window = "{sb $winref:$tag/$itemname{sbmode $M}}";
window_empty = "{sb $winref{sbservertag $tag}}";
prompt = "{prompt $[.15]itemname}";
prompt_empty = "{prompt $winname}";
topic = " $topic";
topic_empty = " Irssi v$J - https://irssi.org";
lag = "{sb Lag: $0-}";
act = "{sb Act: $0-}";
more = "-- more --";
};
default = {
window = {
disabled = "no";
type = "window";
placement = "bottom";
position = "1";
visible = "active";
items = {
barstart = { priority = "100"; };
user = { };
window_empty = { };
lag = { priority = "-1"; };
awl_shared = { priority = "10"; alignment = "left"; };
awl_0 = { alignment = "left"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
window_inact = {
type = "window";
placement = "bottom";
position = "1";
visible = "inactive";
items = {
barstart = { priority = "100"; };
window = { };
window_empty = { };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
prompt = {
type = "root";
placement = "bottom";
position = "100";
visible = "always";
items = {
prompt = { priority = "-1"; };
prompt_empty = { priority = "-1"; };
input = { priority = "10"; };
};
};
topic = {
type = "root";
placement = "top";
position = "1";
visible = "always";
items = {
topicbarstart = { priority = "100"; };
topic = { };
topic_empty = { };
topicbarend = { priority = "100"; alignment = "right"; };
};
};
};
};
keyboard = (
{
key = "^O";
id = "command";
data = "script exec Irssi::Script::tmux_nicklist_portable::toggle_nicklist";
},
{ key = "meta-[M"; id = "command"; data = "mouse_xterm"; }
);
ignores = (
{ mask = "DCC"; level = "ALL"; },
{ mask = "CTCPS"; level = "ALL"; },
{ level = "CRAP"; }
);

View File

@ -1,11 +1,11 @@
#····································································
#···································································#
# ______ __ __ __ ______ #
# /\___ \ /\ \ /\ "-.\ \ /\ ___\ #
# \/_/ /__ \ \ \ \ \ \-. \ \ \ \____ #
# /\_____\ \ \_\ \ \_\\"\_\ \ \_____\ #
# \/_____/ \/_/ \/_/ \/_/ \/_____/ #
# #
#····································································
#···································································#
# GLOBALS------------------------------------------------------------
@ -27,7 +27,7 @@ abstracts = {
indent_default = " + ";
# text to insert at the beginning of each non-message line
line_start = "%r:%y:%g:%n ";
line_start = " ";
# timestamp styling
timestamp = "%Z5F5F5F$0-%n";
@ -120,20 +120,17 @@ abstracts = {
# Actions--------------------------------------------------------
# used internally by this theme
action_core = " %n:%n %y$0%n$1";
# generic one that's used by most actions
action = "{action_core $*} ";
action = " $I%P+ $* %I";
# own action, both private/public
ownaction = "{action $*}";
# own action with target, both private/public
ownaction_target = "{action_core $0}%K:%c$1%n ";
ownaction_target = "{action $*}";
# private action sent by others
pvtaction = "%_ (*) $*%n ";
pvtaction = "%_ (*) $*%n";
pvtaction_query = "{action $*}";
# public action sent by others
@ -211,22 +208,24 @@ abstracts = {
prompt = "%m×%n ";
sb = " %m-=%K[%w$*%K]%m=-%n";
sbmode = "%K(%n+%C$*%K)%n";
sbaway = " %K(%MzZzZ%K)";
sbmode = "%K(%n+%C$M%K)%n";
#sbaway = " %K(%MzZzZ%K)";
sbservertag = "%n:$0 (change with ^X)";
sbaway = " %g/* zZzZ */%n";
sbnickmode = " ";
# activity in statusbar
# ',' separator
sb_act_sep = "%K$*";
sb_act_sep = "";
# normal text
sb_act_text = "%c$*";
sb_act_text = "%K%9$*%n";
# public message
sb_act_msg = "%W$*";
sb_act_msg = "%Y%9$*%n";
# hilight
sb_act_hilight = "%M$*";
sb_act_hilight = "%R%9$*%n";
# hilight with specified color, $0 = color, $1 = text
sb_act_hilight_color = "$0$1-%w";
sb_act_hilight_color = "%R%9$1-%n";
#----------------------------------------------------------------
};
@ -236,35 +235,42 @@ formats = {
line_start_irssi = "{line_start}";
timestamp = "{timestamp $Z} ";
join = "%G>>%Z5F5F5F----join----%G>%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
join = "%G>>%Z5F5F5F----%Z7F7F7Fjoin%Z5F5F5F----%G>%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
part = "%B<<%Z5F5F5F----part----%B<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
kick = "%R<<%Z5F5F5F----kick----%R<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
kick = "%R<<%Z5F5F5F----%rkick%Z5F5F5F----%R<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
quit = "%M<<%Z5F5F5F----quit----%M<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
quit_once = "{channel $3} {channick $0} {chanhost $1} %kquit {reason %C$2}";
quit_once = "{channel $3} {channick $0} {chanhost $1} %nquit {reason %C$2}";
nick_changed = "%Z5F5F5F{channick $[-13]0} %G>%n {channick $1}";
your_nick_changed = "%Z5F5F5F you %G>%n {channick $1}";
new_topic = "%y ┌─┄┄─────┘%n\012%y │ %wtopic %W'$2' %wset by $0\012%y └─┄┄─┄┄──┐ ";
endofnames = "%y └─┄┄─┄┄──┐ %btotal: {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normies%n";
nick_changed = "%G{channick $[-13]0} == {channick $1}";
your_nick_changed = "%G you've become {channick $1}";
};
"fe-common/irc" = {
chanmode_change = "%Z5F5F5F─┄┄ %n mode %y!%n {channick $1}";
server_chanmode_change = "%Z5F5F5F─┄┄ %n mode %y!%n {channick $1}";
whois = "%Z5F5F5F┌┄┄ %n\012%c%Z5F5F5F│ user %n$0 (%n$1%c@%n$2) %n\012%c%Z5F5F5F│ name %n$3%n";
whois_idle = "%Z5F5F5F│ idle%n %│$1d $2h $3m $4s";
whois_idle_signon = "%Z5F5F5F│ idle%n %|$1d $2h $3m $4s {comment signon: $5}";
whois_server = "%Z5F5F5F│ serv%n %|$1 {comment $2}";
whois_oper = "%Z5F5F5F│ oper%n {hilight $1}";
whois_registered = "%Z5F5F5F│ rgis%n yes";
whois_help = "%Z5F5F5F│ help%n available for help";
whois_modes = "%Z5F5F5F│ mode%n $1";
whois_realhost = "%Z5F5F5F│ real%n $1-";
whois_usermode = "%Z5F5F5F│ umod%n $1";
whois_channels = "%Z5F5F5F│ chan%n %|$1";
whois_away = "%Z5F5F5F│ away%n %|$1";
whois_special = "%Z5F5F5F│ info%n {comment %|$1}";
whois_extra = "%Z5F5F5F│ extr%n %|$1";
end_of_whois = "%Z5F5F5F└┄┄ ";
whois_not_found = "%Z5F5F5F─┄┄ %nthere is no such nick $0";
chanmode_change = "%n %y╎ %W%9mode%_ %w(%M{channick $1}%w) %nby $2";
server_chanmode_change = "%n %y┆ %W%9mode%_ %w{channick $1} %n(%w$2%n)";
whois = "%y┌─┄┄ %n\012%y│ %wuser %b$0 %w(%n$1%b@%n$2%w) %n\012%y│ %wname %n$3%n";
whois_idle = "%y│ %widle%b %|$1d $2h $3m $4s";
whois_idle_signon = "%y│ %widle%b %|$1d $2h $3m $4s {comment signon: $5}";
whois_server = "%y│ %wserv%b %|$1 {comment $2}";
whois_oper = "%y│ %woper%b {hilight $1}";
whois_registered = "%y│ %wrgis%n yes";
whois_help = "%y│ %whelp%b available for help";
whois_modes = "%y│ %wmode%b $1";
whois_realhost = "%y│ %wreal%b $1-";
whois_usermode = "%y│ %wumod%b $1";
whois_channels = "%y│ %wchan%b %|$1";
whois_away = "%y│ %waway%b %|$1";
whois_special = "%y│ %winfo%b {comment %|$1}";
whois_extra = "%y│ %wextr%b %|$1";
end_of_whois = "%y└─┄┄ ";
whois_not_found = "%y──┄┄ %wthere is no such nick %b$0";
topic = " ";
topic_info = " %wtopic set by %b$0 %B(%w$1%B)";
channel_synced = "%n %N sync %n{hilight $1} secs%: ";
channel_created = " %n created %n$1";
log_day_changed = "%y ┌─┄┄─────┘%n\\012%y │ It is now %A %d %b %Y\\012%y └─┄┄─┄┄──┐ ";
own_action = "{ownaction $[-11]0} $1";
action_private = "{pvtaction $[-11]0}$1";
@ -280,5 +286,6 @@ formats = {
awl_display_nokey_active = "%g $Q$N${cumode_space}$H$C$S";
awl_display_key_active = "%g $Q${cumode_space}$H$C$S";
awl_abbrev_chars = "+x{301c}";
awl_title = "";
};
};

View File

@ -1,6 +0,0 @@
# 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

View File

@ -2,7 +2,9 @@ export TERMINAL="termite"
export EDITOR="nvim"
export GIT_EDITOR=$EDITOR
export BROWSER="firefox"
export CLIBROWSER="links"
export CLIBROWSER="elinks"
export READER="zathura"
export FILE="ranger"
export GREP_COLOR="0;32"
export PULSEMIXER_BAR_STYLE="┌╶┐╴└┘▮ ◆┆"
export RANGER_LOAD_DEFAULT_RC="FALSE"
@ -11,7 +13,8 @@ export BLOCK_SIZE="'1"
export QUOTING_STYLE=literal
export QT_QPA_PLATFORMTHEME=qt5ct
export SSH_ASKPASS="/usr/lib/seahorse/ssh-askpass"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
export MANPAGER="nvim +'set filetype=man' -"
export FFF_TRASH_CMD="rm"

131
.zshrc
View File

@ -1,7 +1,7 @@
# -*- mode: shell-script -*-
# vim:ft=zsh
# Profiling Tools {{{
# Comienzo de perfil {{{
PROFILE_STARTUP=false
if [[ "$PROFILE_STARTUP" == true ]]; then
zmodload zsh/zprof
@ -11,7 +11,7 @@ if [[ "$PROFILE_STARTUP" == true ]]; then
setopt xtrace prompt_subst
fi
# }}}
# Install Functions {{{
# Funciones {{{
MODULES_DIR="$HOME/.config/zsh"
UPDATE_INTERVAL=5
function _net_test() {
@ -136,14 +136,10 @@ function force_updates() {
)
}
# }}}
# Set Options For General Runtime {{{
# Opciones principales {{{
source $MODULES_DIR/dotfiles.zsh
# Load the prompt system and completion system and initilize them
autoload -Uz compinit promptinit
# Load and initialize the completion system ignoring insecure directories with a
# cache time of 20 hours, so it should almost always regenerate the first time a
# shell is opened each day.
autoload -Uz compinit
_comp_files=(${ZDOTDIR:-$HOME}/.zcompdump(Nm-20))
if (( $#_comp_files )); then
@ -154,72 +150,37 @@ fi
unset _comp_files
promptinit
# Load colors
autoload -U colors && colors
# Use case-insensitve globbing.
unsetopt CASE_GLOB
# glob dotfiles as well
setopt GLOBDOTS
# Sort filenames numerically when it makes sense
setopt numericglobsort
# Automatically change directory if a directory is entered
setopt autocd
setopt extendedglob
# Smart URLs
setopt NUMERICGLOBSORT
setopt AUTOCD
setopt EXTENDEDGLOB
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
# General
# Allow brace character class list expansion.
setopt BRACE_CCL
# Combine zero-length punctuation characters (accents) with the base character.
setopt COMBINING_CHARS
# Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'.
setopt RC_QUOTES
# Jobs
# List jobs in the long format by default.
setopt LONG_LIST_JOBS
# Attempt to resume existing job before creating a new process.
setopt AUTO_RESUME
# Report status of background jobs immediately.
setopt NOTIFY
# Don't run all background jobs at a lower priority.
unsetopt BG_NICE
# Don't kill jobs on shell exit.
unsetopt HUP
# Don't report on jobs when shell exit.
unsetopt CHECK_JOBS
setopt rm_star_wait
setopt list_types
# turn on corrections
setopt correct
# Disable some shell keyboard shortcuts
setopt RM_STAR_WAIT
setopt LIST_TYPES
setopt CORRECT
stty -ixon > /dev/null 2>/dev/null
# }}}
# Completion {{{
# Complete from both ends of a word.
# Autocompletar {{{
setopt COMPLETE_IN_WORD
# Move cursor to the end of a completed word.
setopt ALWAYS_TO_END
# Perform path search even on command names with slashes.
setopt PATH_DIRS
# Show completion menu on a successive tab press.
setopt AUTO_MENU
# Automatically list choices on ambiguous completion.
setopt AUTO_LIST
# If completed parameter is a directory, add a trailing slash.
setopt AUTO_PARAM_SLASH
setopt NO_COMPLETE_ALIASES
# Do not autoselect the first completion entry.
setopt COMPLETE_ALIASES
setopt MENU_COMPLETE
# Disable start/stop characters in shell editor.
unsetopt FLOW_CONTROL
setopt MARK_DIRS
@ -259,37 +220,26 @@ zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' rehash true
# }}}
# History {{{
# Historial {{{
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
HISTFILE="$MODULES_DIR/histfile"
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory notify
unsetopt beep extendedglob nomatch
# Treat the '!' character specially during expansion.
setopt APPENDHISTORY NOTIFY
unsetopt BEEP EXTENDEDGLOB NOMATCH
setopt BANG_HIST
# Write to the history file immediately, not when the shell exits.
setopt INC_APPEND_HISTORY
# Share history between all sessions.
setopt SHARE_HISTORY
# Expire a duplicate event first when trimming history.
setopt HIST_EXPIRE_DUPS_FIRST
# Do not record an event that was just recorded again.
setopt HIST_IGNORE_DUPS
# Delete an old recorded event if a new event is a duplicate.
setopt HIST_IGNORE_ALL_DUPS
# Do not display a previously found event.
setopt HIST_FIND_NO_DUPS
# Do not record an event starting with a space.
setopt HIST_IGNORE_SPACE
# Do not write a duplicate event to the history file.
setopt HIST_SAVE_NO_DUPS
# Do not execute immediately upon history expansion.
setopt HIST_VERIFY
# Show timestamp in history
setopt EXTENDED_HISTORY
# }}}
# All Other Packages {{{
# Plugins y extras {{{
source_or_install "$MODULES_DIR/agkozak/agkozak-zsh-prompt/agkozak-zsh-prompt.plugin.zsh" agkozak/agkozak-zsh-prompt
AGKOZAK_BLANK_LINES=1
AGKOZAK_CUSTOM_SYMBOLS=( '⇣⇡' '⇣' '⇡' '+' 'x' '!' '>' '?' )
@ -298,33 +248,42 @@ AGKOZAK_CUSTOM_PROMPT+=$'%B%F{blue}%2v%f%b '
AGKOZAK_CUSTOM_PROMPT+='%F{green}%(4V.:.%(!.%#.$))%f '
AGKOZAK_PROMPT_DIRTRIM=0
source /usr/share/zsh/plugins/zsh-autopair/autopair.zsh
source /usr/share/LS_COLORS/dircolors.sh
source $MODULES_DIR/up.plugin.zsh
source $MODULES_DIR/k.sh
source_or_install "$MODULES_DIR/zsh-users/zsh-completions/zsh-completions.plugin.zsh" zsh-users/zsh-completions
if [[ -d /usr/share/fzf ]]; then
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
fi
foreach programa (
LS_COLORS/dircolors.sh
fzf/key-bindings.zsh
fzf/completion.zsh
) {
source /usr/share/$programa
}
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
foreach plugin (
zsh-autopair/autopair.zsh
zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
zsh-history-substring-search/zsh-history-substring-search.zsh
) {
source /usr/share/zsh/plugins/$plugin
}
source $MODULES_DIR/keys.zsh
source $MODULES_DIR/extras.zsh
source $MODULES_DIR/fzf.zsh
source $MODULES_DIR/transmission.zsh
source $MODULES_DIR/aliases.plugin.zsh
source $MODULES_DIR/omg.zsh
foreach extra (
up.plugin.zsh
k.sh
keys.zsh
extras.zsh
fzf.zsh
transmission.zsh
aliases.plugin.zsh
omg.zsh
) {
source $MODULES_DIR/$extra
}
# }}}
# CDR, Persistent cd {{{
# CDR, el cd persistente {{{
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
DIRSTACKFILE="$HOME/.cache/zsh/dirs"
# make DIRSTACKFILE if it's not there
if [[ ! -a $DIRSTACKFILE ]]; then
mkdir -p $DIRSTACKFILE[0,-5]
touch $DIRSTACKFILE
@ -343,14 +302,10 @@ chpwd() {
DIRSTACKSIZE=20
setopt AUTO_PUSHD PUSHD_SILENT PUSHD_TO_HOME
# Remove duplicate entries
setopt PUSHD_IGNORE_DUPS
# This reverts the +/- operators.
setopt PUSHD_MINUS
# }}}
# End Profiling Script {{{
# Fin perfil {{{
if [[ "$PROFILE_STARTUP" == true ]]; then
unsetopt xtrace
exec 2>&3 3>&-

View File

@ -1,37 +1,17 @@
#!/usr/bin/env bash
set -euf -o pipefail
ping -q -c 1 1.1.1.1 > /dev/null || exit
export DISPLAY=:0.0
trap 'rm /tmp/{pacmanupdates,aurupdates} 2>/dev/null' INT TERM QUIT EXIT
# how long between checks
interval=${1:-72000}
nb_pac=$(checkupdates | tee /tmp/pacmanupdates | wc -l)
nb_aur=$(yay -Qua | tee /tmp/aurupdates | wc -l)
# check internet connection
connection() {
ping -q -c 1 1.1.1.1 > /dev/null || exit
}
checker() {
while true; do
nb_pac=$(checkupdates | tee /tmp/pacmanupdates | wc -l)
nb_aur=$(yay -Qua | tee /tmp/aurupdates | wc -l)
if ((nb_pac>0 || nb_aur>0)); then
((nb_aur>0)) && nb_aur="+ ${nb_aur}" && cat /tmp/aurupdates >> /tmp/pacmanupdates
((nb_aur==0)) && unset nb_aur
notify-send " You have ${nb_pac} ${nb_aur} updates"
fi
sleep "$interval"
done
}
waiter() {
if ! connection ; then
sleep 30 && waiter
else
checker
if ((nb_pac>0 || nb_aur>0)); then
((nb_aur>0)) && nb_aur="+ ${nb_aur}" && cat /tmp/aurupdates >> /tmp/pacmanupdates
((nb_aur==0)) && unset nb_aur
notify-send " You have ${nb_pac} ${nb_aur} updates"
fi
}
waiter

82
bin/cfg
View File

@ -1,31 +1,53 @@
#!/bin/bash
#!/usr/bin/env zsh
case $1 in
v) $EDITOR ~/.config/nvim/init.vim ;;
irc) $EDITOR ~/.irssi/config ;;
gtk3) $EDITOR ~/.config/gtk-3.0/settings.ini ;;
gtk2) $EDITOR ~/.gtkrc-2.0 ;;
wm) $EDITOR ~/.config/bspwm/bspwmrc ;;
keys) $EDITOR ~/.config/sxhkd/sxhkdrc ;;
mutt) $EDITOR ~/.config/mutt/muttrc ;;
zsh) $EDITOR ~/.zshrc ;;
alias) $EDITOR ~/.config/zsh/aliases.plugin.zsh ;;
bar) $EDITOR ~/.config/polybar/config ;;
dunst) $EDITOR ~/.config/dunst/dunstrc ;;
term) $EDITOR ~/.config/termite/config ;;
rofi) $EDITOR ~/.config/rofi/config.rasi;;
mpv) $EDITOR ~/.config/mpv/mpv.conf ;;
mpd) $EDITOR ~/.config/mpd/mpd.conf ;;
play) $EDITOR ~/.config/ncmpcpp/config ;;
rg) $EDITOR ~/.config/ranger/rc.conf ;;
rifle) $EDITOR ~/.config/ranger/rifle.conf ;;
scope) $EDITOR ~/.config/ranger/scope.sh ;;
tx) $EDITOR ~/.tmux.conf ;;
comp) $EDITOR ~/.config/compton.conf ;;
tsd) $EDITOR ~/.config/transmission-daemon/settings.json ;;
tsr) $EDITOR ~/.config/transmission-remote-cli/settings.cfg ;;
xinit) $EDITOR ~/.xinitrc ;;
xres) $EDITOR ~/.Xresources ;;
tray) $EDITOR ~/.stalonetrayrc ;;
*) echo "Can't help you with that" ;;
esac
function () {
# Bookmarks
local -A bookmarks=(
'v' '~/.config/nvim/init.vim'
'b' '~/.config/bspwm/bspwmrc'
'k' '~/.config/sxhkd/sxhkdrc'
'c' '~/.config/mutt/muttrc'
'z' '~/.zshrc'
'n' '~/.config/dunst/dunstrc'
't' '~/.config/termite/config'
'r' '~/.config/ranger/rc.conf'
'm' '~/.config/ncmpcpp/config'
'x' '~/.tmux.conf'
'i' '~/.xinitrc'
'u' '~/.config/newsboat/urls'
'a' '~/.config/zsh/aliases.plugin.zsh'
'g' '~/.config/compton.conf'
)
local selected_bookmark
if [[ "$1" != '' ]] {
selected_bookmark="${bookmarks[$1]}"
} else {
local bookmarks_table
local key
foreach key (${(k)bookmarks}) {
bookmarks_table+="$key ${bookmarks[$key]}\n"
}
if (! hash fzf &>/dev/null) {
return 1
} else {
selected_bookmark=$(
printf "$bookmarks_table" \
| fzf \
--exact \
--height='35%' \
)
selected_bookmark="${selected_bookmark[(ws: :)2]}"
}
}
if [[ "$selected_bookmark" != '' ]] {
eval $EDITOR "$selected_bookmark"
} else {
return 1
}
}

View File

@ -1,25 +1,23 @@
#!/usr/bin/env bash
set -euf -o pipefail
#!/usr/bin/env sh
# Sync mail and give notification if there is new mail.
# how long between checks
interval=${1:-600}
ping -q -c 1 1.1.1.1 > /dev/null || exit
# check internet connection
connection() {
ping -q -c 1 1.1.1.1 > /dev/null || exit
}
export DISPLAY=:0.0
checker() {
mailsync
sleep "$interval"
}
notify() { notify-send " $2 new mail(s) in \`$1\` " ;}
waiter() {
if ! connection ; then
sleep 30 && waiter
else
checker
fi
}
# Run mbsync. You can feed this script different settings.
mbsync -a "$@"
waiter
# Check all accounts/mailboxes for new mail. Notify if there is new content.
for account in "$HOME/.local/share/mail/"*
do
acc="$(echo "$account" | sed "s/.*\///")"
newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null | wc -l)
[ "$newcount" -gt "0" ] && notify "$acc" "$newcount" &
done
notmuch new 2>/dev/null
#Create a touch file that indicates the time of the last run of mailsync
touch "$HOME/.config/mutt/.mailsynclastrun"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -euf -o pipefail
echo "╓───── m o u n t . p o i n t s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -a; echo ""; echo "╓───── d i s k . u s a g e"; echo "╙────────────────────────────────────── ─ ─ "; df -h;
echo "╓───── m o u n t . p o i n t s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -a; echo ""; echo "╓───── d i s k . u s a g e"; echo "╙────────────────────────────────────── ─ ─ "; dfc;

View File

@ -1,19 +0,0 @@
#!/usr/bin/env sh
# Sync mail and give notification if there is new mail.
notify() { notify-send-headless "<span weight='bold'>You've got mail</span>" " $2 new mail(s) in $1." ;}
# Run mbsync. You can feed this script different settings.
mbsync -a "$@"
# Check all accounts/mailboxes for new mail. Notify if there is new content.
for account in "$HOME/.local/share/mail/"*
do
acc="$(echo "$account" | sed "s/.*\///")"
newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/bin/.mailsynclastrun" 2> /dev/null | wc -l)
[ "$newcount" -gt "0" ] && notify "$acc" "$newcount" &
done
notmuch new 2>/dev/null
#Create a touch file that indicates the time of the last run of mailsync
touch "$HOME/.config/mutt/bin/.mailsynclastrun"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -euf -o pipefail
maim -u ~/Pictures/scrot/"$(date +%s)".png && notify-send -u low -t 3000 'Screen captured'
maim -u ~/Pictures/scrot/"$(date +%s)".png && notify-send -u low -t 3000 'Screen captured'