From 47c7939e51a7250e050c21dae2992e4fa72e1fdd Mon Sep 17 00:00:00 2001 From: RenatoXSR Date: Sat, 16 Mar 2019 14:35:06 -0300 Subject: [PATCH] fc28 to fc29 upgrade - abnt, zshrc, polybar, sudoers, davfs, sway --- .zshrc | 192 ++++++++ abnt-estilo-fdusp-notas-de-rodape.csl | 441 +++++++++++++++++ abnt-estilo-fdusp.csl | 610 +++++++++++++++++++++++ abnt-renato-antigo.csl | 10 + abnt-renato-fdusp.csl | 607 +++++++++++++++++++++++ abnt-renato.csl | 331 +++++++++++++ abnt-rxsr-completo-v1.csl | 10 + abnt-ufpr.csl | 236 +++++++++ abnt.csl | 463 ++++++++++++++++++ davfs2/fstab | 10 + polybar/config.fc29.vjf15511x | 677 ++++++++++++++++++++++++++ polybar/polybar.desktop | 10 + sudoers/renato | 1 + sway/config.vaio-vjf155f11x.fc29 | 398 +++++++++++++++ zshrc/cheat.sh | 2 + zshrc/zshrc.fc29.vjf15511x | 194 ++++++++ 16 files changed, 4192 insertions(+) create mode 100644 .zshrc create mode 100644 abnt-estilo-fdusp-notas-de-rodape.csl create mode 100644 abnt-estilo-fdusp.csl create mode 100644 abnt-renato-antigo.csl create mode 100644 abnt-renato-fdusp.csl create mode 100644 abnt-renato.csl create mode 100644 abnt-rxsr-completo-v1.csl create mode 100644 abnt-ufpr.csl create mode 100644 abnt.csl create mode 100644 davfs2/fstab create mode 100644 polybar/config.fc29.vjf15511x create mode 100644 polybar/polybar.desktop create mode 100644 sudoers/renato create mode 100644 sway/config.vaio-vjf155f11x.fc29 create mode 100644 zshrc/cheat.sh create mode 100644 zshrc/zshrc.fc29.vjf15511x diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..6c2b295 --- /dev/null +++ b/.zshrc @@ -0,0 +1,192 @@ +###################################################################### +# mako's zshrc file, v0.1 +# +# +###################################################################### + +# next lets set some enviromental/shell pref stuff up +# setopt NOHUP +#setopt NOTIFY +#setopt NO_FLOW_CONTROL +setopt APPEND_HISTORY +# setopt AUTO_LIST # these two should be turned off +# setopt AUTO_REMOVE_SLASH +# setopt AUTO_RESUME # tries to resume command of same name +unsetopt BG_NICE # do NOT nice bg commands +setopt CORRECT # command CORRECTION +setopt EXTENDED_HISTORY # puts timestamps in the history +# setopt HASH_CMDS # turns on hashing +setopt HIST_ALLOW_CLOBBER +setopt HIST_REDUCE_BLANKS +setopt INC_APPEND_HISTORY SHARE_HISTORY +setopt ALL_EXPORT + +setopt MENUCOMPLETE +# Set/unset shell options +setopt notify globdots correct pushdtohome cdablevars autolist +setopt correctall autocd recexact longlistjobs +setopt autoresume histignoredups pushdsilent noclobber +setopt autopushd pushdminus extendedglob rcquotes mailwarning +unsetopt bgnice autoparamslash + +# Autoload zsh modules when they are referenced +zmodload -a zsh/stat stat +zmodload -a zsh/zpty zpty +zmodload -a zsh/zprof zprof + +# mapfile : parameter already exists +#zmodload -ap zsh/mapfile mapfile + + +PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:$PATH" +TZ="America/Sao_Paulo" +HISTFILE=$HOME/.zhistory +HISTSIZE=1000 +SAVEHIST=1000 +HOSTNAME="`hostname`" +PAGER='less' +EDITOR='vim' + autoload colors zsh/terminfo + if [[ "$terminfo[colors]" -ge 8 ]]; then + colors + fi + for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do + eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}' + eval PR_LIGHT_$color='%{$fg[${(L)color}]%}' + (( count = $count + 1 )) + done + PR_NO_COLOR="%{$terminfo[sgr0]%}" +PS1="[$PR_MAGENTA%n$PR_NO_COLOR@$PR_GREEN%U%m%u$PR_NO_COLOR:$PR_RED%2c$PR_NO_COLOR]%(!.#.$) " +RPS1="$PR_MAGENTA(%D{%d-%m-%y %H:%M})$PR_NO_COLOR" +#LANGUAGE= +LC_ALL='pt_BR.UTF-8' +LANG='pt_BR.UTF-8' +LC_CTYPE=C +DISPLAY=:0 + +if [ $SSH_TTY ]; then + MUTT_EDITOR=vim +else + MUTT_EDITOR=emacsclient.emacs-snapshot +fi + +unsetopt ALL_EXPORT +# # -------------------------------------------------------------------- +# # aliases +# # -------------------------------------------------------------------- +alias slrn="slrn -n" +alias man='LC_ALL=pt_BR.UTF-8 LANG=pt_BR.UTF-8 man' +alias f=finger +alias ll='ls -ashpGl --color ' +alias ls='ls -G --color ' +alias offlineimap-tty='offlineimap -u TTY.TTYUI' +alias hnb-partecs='hnb $HOME/partecs/partecs-hnb.xml' +alias rest2html-css='rst2html --embed-stylesheet --stylesheet-path=/usr/share/python-docutils/s5_html/themes/default/print.css' +alias dmesg="sudo dmesg" +#if [[ $HOSTNAME == "kamna" ]] { +# alias emacs='emacs -l ~/.emacs.kamna' +#} + +# alias =clear +stty erase ^H &>/dev/null +bindkey "^[[3~" delete-char +#chpwd() { +# [[ -t 1 ]] || return +# case $TERM in +# sun-cmd) print -Pn "\e]l%~\e\\" +# ;; +# *xterm*|screen|rxvt|(dt|k|E)term) print -Pn "\e]2;%~\a" +# ;; +# esac +#} + +#chpwd + +autoload -U compinit +compinit +bindkey '^r' history-incremental-search-backward +bindkey "^[[5~" up-line-or-history +bindkey "^[[6~" down-line-or-history +bindkey "^[[H" beginning-of-line +bindkey "^[[1~" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[4~" end-of-line +bindkey ' ' magic-space # also do history expansion on space +bindkey '^I' complete-word # complete on tab, leave expansion to _expand + +zstyle ':completion::complete:*' use-cache on +zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST + +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s' +zstyle ':completion:*' menu select=1 _complete _ignored _approximate +zstyle -e ':completion:*:approximate:*' max-errors \ + 'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )' +zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s' +zstyle ':completion:*:processes' command 'ps -axw' +zstyle ':completion:*:processes-names' command 'ps -awxho command' +# Completion Styles +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +# list of completers to use +zstyle ':completion:*::::' completer _expand _complete _ignored _approximate + +# allow one error for every three characters typed in approximate completer +zstyle -e ':completion:*:approximate:*' max-errors \ + 'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )' + +# insert all expansions for expand completer +zstyle ':completion:*:expand:*' tag-order all-expansions +# +#NEW completion: +# 1. All /etc/hosts hostnames are in autocomplete +# 2. If you have a comment in /etc/hosts like #%foobar.domain, +# then foobar.domain will show up in autocomplete! +zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}') +# formatting and messages +zstyle ':completion:*' verbose yes +zstyle ':completion:*:descriptions' format '%B%d%b' +zstyle ':completion:*:messages' format '%d' +zstyle ':completion:*:warnings' format 'No matches for: %d' +zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b' +zstyle ':completion:*' group-name '' + +# match uppercase from lowercase +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + +# offer indexes before parameters in subscripts +zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters + +# command for process lists, the local web server details and host completion +#zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args' +#zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html' +zstyle '*' hosts $hosts + +# Filename suffixes to ignore during completion (except after rm command) +zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \ + '*?.old' '*?.pro' +# the same for old style completion +#fignore=(.o .c~ .old .pro) + +# ignore completion functions (until the _ignored completer) +zstyle ':completion:*:functions' ignored-patterns '_*' +zstyle ':completion:*:scp:*' tag-order \ + files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *' +zstyle ':completion:*:scp:*' group-order \ + files all-files users hosts-domain hosts-host hosts-ipaddr +zstyle ':completion:*:ssh:*' tag-order \ + users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *' +zstyle ':completion:*:ssh:*' group-order \ + hosts-domain hosts-host users hosts-ipaddr +zstyle '*' single-ignored show + +source $HOME/.bash_aliases + +source $HOME/.profile + +#source /home/renato/WebApp/silvrosa.llm-node.google-api.sh + +test -r $HOME/.opam/opam-init/init.sh && . $HOME/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true + +mount | grep "${HOME}/drive.silveirarosa.com" > /dev/null || $HOME/.opam/default/bin/google-drive-ocamlfuse $HOME/drive.silveirarosa.com + +# diff --git a/abnt-estilo-fdusp-notas-de-rodape.csl b/abnt-estilo-fdusp-notas-de-rodape.csl new file mode 100644 index 0000000..a337f87 --- /dev/null +++ b/abnt-estilo-fdusp-notas-de-rodape.csl @@ -0,0 +1,441 @@ + + diff --git a/abnt-estilo-fdusp.csl b/abnt-estilo-fdusp.csl new file mode 100644 index 0000000..94335de --- /dev/null +++ b/abnt-estilo-fdusp.csl @@ -0,0 +1,610 @@ + + diff --git a/abnt-renato-antigo.csl b/abnt-renato-antigo.csl new file mode 100644 index 0000000..19e17ab --- /dev/null +++ b/abnt-renato-antigo.csl @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/abnt-renato-fdusp.csl b/abnt-renato-fdusp.csl new file mode 100644 index 0000000..3ffd31b --- /dev/null +++ b/abnt-renato-fdusp.csl @@ -0,0 +1,607 @@ + + diff --git a/abnt-renato.csl b/abnt-renato.csl new file mode 100644 index 0000000..f58ef6e --- /dev/null +++ b/abnt-renato.csl @@ -0,0 +1,331 @@ + + diff --git a/abnt-rxsr-completo-v1.csl b/abnt-rxsr-completo-v1.csl new file mode 100644 index 0000000..f2704a4 --- /dev/null +++ b/abnt-rxsr-completo-v1.csl @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/abnt-ufpr.csl b/abnt-ufpr.csl new file mode 100644 index 0000000..82e8428 --- /dev/null +++ b/abnt-ufpr.csl @@ -0,0 +1,236 @@ + + \ No newline at end of file diff --git a/abnt.csl b/abnt.csl new file mode 100644 index 0000000..be7b5ca --- /dev/null +++ b/abnt.csl @@ -0,0 +1,463 @@ + + diff --git a/davfs2/fstab b/davfs2/fstab new file mode 100644 index 0000000..3289f1a --- /dev/null +++ b/davfs2/fstab @@ -0,0 +1,10 @@ +# renato@cloud.silveirarosa.com (Nextcloud Webdav) +https://cloud.silveirarosa.com/remote.php/webdav /media/renato/cloud.silveirarosa.com davfs rw,user,uid=renato,noauto,_netdev 0 0 + +# renato@cloud.renatorosa.com (Nextcloud Webdav) +https://cloud.renatorosa.com/remote.php/webdav /media/renato/cloud.renatorosa.com davfs rw,user,uid=renato,noauto,_netdev 0 0 + +# renato@sp.renatorosa.com (SSH FS) +sshfs#renato@sp.renatorosa.com /media/renato/sp.renatorosa.com fuse rw,user,uid=renato,gid=renato,allow_other,defer_permissions,noauto,_netdev 0 0 + + diff --git a/polybar/config.fc29.vjf15511x b/polybar/config.fc29.vjf15511x new file mode 100644 index 0000000..631b6da --- /dev/null +++ b/polybar/config.fc29.vjf15511x @@ -0,0 +1,677 @@ +;===================================================== +; +; To learn more about how to configure Polybar +; go to https://github.com/jaagr/polybar +; +; The README contains alot of information +; +;===================================================== + +[colors] +;background = ${xrdb:color0:#222} +background = #222 +;background = #0222 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #dfdfdf +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +[bar/general] +locale = pt_BR.UTF-8 + +[bar/default] +inherit = bar/general +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +;radius = 6.0 +fixed-center = false +bottom=true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +border-size = 0 +border-color = #0888 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +;font-0 = fixed:pixelsize=10;1 +;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +;font-2 = siji:pixelsize=10;1 +font-0 = DejaVuSansMono:antialias=false:size=9;1 +font-1 = DejaVuSans:size=9:antialias=false;0 +font-2 = FontAwesome:size=9;0 +font-3 = "Font Awesome 5 Free:style=Regular:pixelsize=9;1" +font-4 = "Font Awesome 5 Free:style=Solid:pixelsize=9;1" +font-5 = "Font Awesome 5 Brands:pixelsize=9;1" +font-6 = siji:pixelsize=9;1 + +modules-left = i3 xwindow +;modules-left = i3 + +;modules-center = mpd +modules-right = filesystem backlight volume xkeyboard memory cpu eth wlan wg temperature battery date powermenu + +tray-position = right +tray-padding = 2 +;tray-transparent = true +tray-transparent = false +;tray-background = #0063ff +tray-background = ${colors.background} + +;wm-restack = bspwm +wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +;;;;;;;;;;;;;;;; +; ; ; ; +; ; xwindow ; ; +; ; ; ; +[module/xwindow] +type = internal/xwindow + +; Available tags: +;