dot

packages and services management
Log | Files | Refs | README

commit c6c81bf481d20d532687d71d0809763f9c2b230f
parent 8a7813b8f671c50365e85789399d96d66632b15e
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 12 Apr 2017 00:36:43 +0200

longer scripts names now that iomenu supports them nicely

Diffstat:
M.config/git/config | 12------------
D.config/user-dirs.dirs | 8--------
M.emacs.d/init.el | 3++-
D.mailrc | 182-------------------------------------------------------------------------------
M.profile | 7+++----
Mbin/build | 2+-
Rbin/cal-dir -> bin/calendar-dir | 0
Rbin/cal-show -> bin/calendar-show | 0
Rbin/ed-title -> bin/edit-title | 0
Mbin/io-edit | 21+++++++++------------
Rbin/mb-all -> bin/mblaze-all | 0
Rbin/mb-filter -> bin/mblaze-filter | 0
Rbin/scr-brightness -> bin/screen-brightness | 0
Rbin/scr-cast -> bin/screen-cast | 0
Rbin/scr-rotate -> bin/screen-rotate | 0
Rbin/srv-http -> bin/service-http | 0
Rbin/srv-ii -> bin/service-ii | 0
Rbin/srv-irc -> bin/service-irc | 0
18 files changed, 15 insertions(+), 220 deletions(-)

diff --git a/.config/git/config b/.config/git/config @@ -1,15 +1,3 @@ -# git configuration file - [user] email = mail@josuah.net name = Josuah Demangeon - -[core] - excludesfile = ~/.gitignore - -[color] - ui = auto - -[alias] - log = log --graph --color - status = status -s diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs @@ -1,8 +0,0 @@ -XDG_DESKTOP_DIR="/tmp" -XDG_DOCUMENTS_DIR="$HOME/documents" -XDG_DOWNLOAD_DIR="$HOME/downloads" -XDG_MUSIC_DIR="$HOME/music" -XDG_PICTURES_DIR="$HOME/images" -XDG_PUBLICSHARE_DIR="/tmp" -XDG_TEMPLATES_DIR="/tmp" -XDG_VIDEOS_DIR="$HOME/videos" diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -24,13 +24,14 @@ (require 'package) (setq package-list '(ivy swiper counsel)) + (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) (unless package-archive-contents (package-refresh-contents)) -(dolist (package package-list) +(dolist (package '(ivy swiper counsel)) (unless (package-installed-p package) (package-install package))) diff --git a/.mailrc b/.mailrc @@ -1,182 +0,0 @@ -# mailx configuration file - - -set sendmail="~/.local/bin/msmtp" - -# Do not save message to mbox -set hold -set keepsave - - -# display ---------------------------------------------------------------------- - -# Do not send output to pager under this number of line, and also add colours if -set crt colour-pager - -# Startup into interactive mode even if the (given) mailbox is empty -set emptystart - -# Define date display in header summary -set datefield="%R %m-%d" datefield-markout-older=" %g-%m-%d" - -# A nice prompt for ISO 6429/ECMA-48 terminals. -#set prompt="\033[1m\?\$ \@>\033[0m " - - -# composing -------------------------------------------------------------------- - -# Automatically quote the text of the message that is responded to. -set quote - -# Quote the original message in replies by "> " as usual on the Internet -set indentprefix="> " - -# When replying to or forwarding a message the comment and name parts of email -# addresses are removed unless this variable is set. -set fullnames - -# When composing messages a line consisting of `.' finalizes a message -set dot - -# Ask for a message subject. -set ask - -# Immediately start $EDITOR (or $VISUAL) when composing a message -set editalong - - -# headline --------------------------------------------------------------------- - -set headline="%>%a %m %-f %11d %i%-s" - -# Mark messages that have been answered -set markanswered - -# Prints a header summary on folder change and thus complements -set header bsdannounce - -# Try to circumvent false or missing MIME Content-Type descriptions. -set mime-counter-evidence - -# Enter threaded mode automatically -set autosort=thread - -# Scroll to the lastest message -set showlast - -# On group replies, specify only the sender of the original mail in To: and -# mention it's other recipients in the secondary Cc: instead of placing them -# all together in To: -set recipients-in-cc - -# Outgoing messages are sent in UTF-8 if possible, otherwise LATIN1. -set sendcharsets=utf-8,iso-8859-1 - -# When sending a message wait until the MTA (including the builtin SMTP one) -# exits before accepting further commands. Only way to see the MTA's errors. -set sendwait - -# Display real sender names in header summaries instead of only addresses -set showname - -# Show recipients of messages sent by the user himself in header summaries -set showto - - -# commands --------------------------------------------------------------------- - -# Only include these selected header fields when forwarding messages -fwdretain subject date from to - -# Only include the selected header fields when printing messages -retain date from to cc subject message-id mail-followup-to reply-to - - -# attachments ------------------------------------------------------------------ - -# HTML as text, inline display via w3m -set pipe-text/html="w3m -dump" - -# Attachment downloads -set pipe-application/pdf=" tee > \ - \"$HOME/.cache/mail/${NAIL_FILENAME-$NAIL_FILENAME_GENERATED.pdf}\"" -set pipe-application/html="tee > \ - \"$HOME/.cache/mail/${NAIL_FILENAME-$NAIL_FILENAME_GENERATED.html}\"" - -# If threaded mode is activated, automatically collapse thread -#uncollapse - - -# macros ---------------------------------------------------------------------- - -define filter { - - # mailing lists - - move (from "lobste.rs") ~/mail/lobsters - - move (from "reddit") ~/mail/reddit - - move (from "disqus") ~/mail/disqus - - move (from "nixers.net") ~/mail/nixers - - move (from "sachachua.com") ~/mail/sachachua - - move (cc "mmh@marmaro.de") ~/mail/mmh - move (to "mmh@marmaro.de") ~/mail/mmh - - move (subject "[gobolinux-") ~/mail/gobolinux - - move (from "suckless.org") ~/mail/suckless - move (to "suckless.org") ~/mail/suckless - move (cc "suckless.org") ~/mail/suckless - - move (from "fsf.org") ~/mail/fsf - - move (to "listes.etudiant.univ-rennes1.fr") ~/mail/univ-rennes1 - move (header List-Id "foad.univ-rennes1.fr") ~/mail/univ-rennes1 - move (header Received "vmsympa1.univ-rennes1.fr") ~/mail/univ-rennes1 - move (header Return-Path "listes.univ-rennes1.fr") ~/mail/univ-rennes1 - - move (header List-Id "breizh-entropy.org") ~/mail/breizh-entropy - - move (subject "[repo.or.cz]") ~/mail/repo.or.cz - - move (from "github.com") ~/mail/github - - move (from "stackexchange.com") ~/mail/stackexchange - - move (from "researchgate") ~/mail/researchgate - - move (from "twitter.com") ~/mail/twitter - - move (from "bandcamp.com") ~/mail/bandcamp - move (from "Cryo Chamber") ~/mail/bandcamp - - move (from "keybase.io") ~/mail/keybase - - move (from "wordpress.com") ~/mail/wordpress - - move (from "google.com") ~/mail/google - - move (from "@free-mobile.fr") ~/mail/utilities - - move (from "@paypal") ~/mail/payment - move (from "coinbase.com") ~/mail/payment - - move (from "gandi.net") ~/mail/webservices - - move (from "@amazon") ~/mail/webstores - - move (from "crous-rennes.fr") ~/mail/housing - - move (from "sncf.com") ~/mail/transports - move (from "captaintrain.com") ~/mail/transports - move (from "flixbus") ~/mail/transports - move (from "megabus") ~/mail/transports - move (from "ouigo") ~/mail/transports - move (from "ouibus") ~/mail/transports - move (from "keolis.com") ~/mail/transports - move (from "BlaBlaCar") ~/mail/transports -} diff --git a/.profile b/.profile @@ -37,7 +37,6 @@ PS3=': ' # core -alias p='io-path' alias l='ls -lhp' alias la='ls -lhpA' alias cl='printf "\033[H\033[2J"' @@ -48,9 +47,9 @@ alias j='jobs' alias v='io-edit' alias a='io-abduco' alias r='io-run' -alias f='find ! -path "*/.git/*" -type f | iomenu -l 255' -alias d='find ! -path "*/.git/*" -type d | iomenu -l 255' -alias c='cd "$(io-path)"' +alias f='find . ! -path "*/.git/*" -type f | iomenu -p file' +alias d='find . ! -path "*/.git/*" -type d | iomenu -p directory' +alias c='cd "$(find "$HOME" -type d | iomenu -p cd)"' alias i='ii-client' diff --git a/bin/build b/bin/build @@ -41,7 +41,7 @@ die() info() { - printf '\033[36m%-12s \033[1m%s\033[m\n' "$1" "$2" 1>&2 + printf '%-12s %s\n' "$1" "$2" 1>&2 } diff --git a/bin/cal-dir b/bin/calendar-dir diff --git a/bin/cal-show b/bin/calendar-show diff --git a/bin/ed-title b/bin/edit-title diff --git a/bin/io-edit b/bin/io-edit @@ -6,15 +6,13 @@ CACHE="${XDG_CACHE_HOME:-$HOME/.cache}" path() { - if [ -f "$1" ] - then - printf '%s\n' "$( - [ -d "${1%/*}" ] && cd "${1%/*}" - pwd - )/${1##*/}" - else - [ -f "$CACHE/io/files" ] && tac "$CACHE/files" | iomenu -l 10 - fi | tee -a "$CACHE/io/files" + { + printf '# Recent files\n' + tac "$CACHE/io/files" + + printf '# All files\n' + find "$HOME" -type f ! -path '*/.git/*' + } | iomenu -l 255 -s | tee -a "$CACHE/io/files" } @@ -27,7 +25,7 @@ history() )" "$path" > "$CACHE/io/files" done - printf '%s\n' "$(tail "$CACHE/io/files")" > "$CACHE/files" + printf '%s\n' "$(tail "$CACHE/io/files")" > "$CACHE/io/files" } @@ -36,10 +34,9 @@ main() mkdir -p "$CACHE/io" touch "$CACHE/io/files" - [ -d "$1" ] && file="$(path "$(io-path)")" || file="$(path "$1")" + file="$(path)" # terminal name - printf '\033]0;%s\007' "$file" history [ "$file" ] && [ -d "${file%/*}" ] && exec $EDITOR "$file" diff --git a/bin/mb-all b/bin/mblaze-all diff --git a/bin/mb-filter b/bin/mblaze-filter diff --git a/bin/scr-brightness b/bin/screen-brightness diff --git a/bin/scr-cast b/bin/screen-cast diff --git a/bin/scr-rotate b/bin/screen-rotate diff --git a/bin/srv-http b/bin/service-http diff --git a/bin/srv-ii b/bin/service-ii diff --git a/bin/srv-irc b/bin/service-irc