diff --git a/Utils/urgent.sh b/Utils/urgent.sh new file mode 100755 index 0000000..25e4720 --- /dev/null +++ b/Utils/urgent.sh @@ -0,0 +1,9 @@ +#!/bin/bash +LIGHT=/sys/class/leds/tpacpi\:\:thinklight/brightness +echo 255 > $LIGHT +sleep .3 +echo 0 > $LIGHT +sleep .3 +echo 255 > $LIGHT +sleep .3 +echo 0 > $LIGHT diff --git a/bashrc b/bashrc index 3da257f..989f1ba 100644 --- a/bashrc +++ b/bashrc @@ -99,6 +99,8 @@ alias la='ls -lah' alias sudp='sudo' #fuck tpyos :p alias sudpo='sudo' +alias halt='sudo poweroff' + #alias pacman='pacman-color' alias pacmacn='pacman' # '[r]emove [o]rphans' - recursively remove ALL orphaned packages @@ -152,6 +154,7 @@ alias op='xdg-open' alias o='octave' alias cdu='cdu -idh' alias dus='du -sh * | sort -h' +alias im='dtach -A /dev/shm/im profanity' # }}} diff --git a/dwm/config.h b/dwm/config.h index 2a5d81a..7110791 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -18,6 +18,8 @@ static const Bool topbar = True; /* False means bottom bar */ /* tagging */ static const char *tags[] = { "web", "mails", "term", "chat", "media", "misc", "misc2", }; +static const char *urgent_cmd = "/home/frank/Programmation/dotfiles/Utils/urgent.sh"; + static const Rule rules[] = { /* xprop(1): * WM_CLASS(STRING) = instance, class diff --git a/dwm/dwm.c b/dwm/dwm.c index 7941bd1..4ba9efc 100644 --- a/dwm/dwm.c +++ b/dwm/dwm.c @@ -2059,8 +2059,18 @@ updatewmhints(Client *c) { wmh->flags &= ~XUrgencyHint; XSetWMHints(dpy, c->win, wmh); } - else + else { /* FIXME FRANK */ + //strcpy(stext, "YopYop"); + if(urgent_cmd && wmh->flags &XUrgencyHint) { + if(fork() == 0) { + system(urgent_cmd); + exit(EXIT_SUCCESS); + } + } + //drawbar(selmon); + c->isurgent = (wmh->flags & XUrgencyHint) ? True : False; + } if(wmh->flags & InputHint) c->neverfocus = !wmh->input; else diff --git a/mutt/muttrc b/mutt/muttrc index 5d8f523..3c3a6fc 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -66,6 +66,7 @@ set text_flowed ignore "Authentication-Results:" ignore "DomainKey-Signature:" ignore "DKIM-Signature:" +my_hdr X-URL: http://frank.villaro-dixon.eu hdr_order Date From To Cc alternative_order text/plain text/html * auto_view text/html diff --git a/vim/skeletons/skel.latex b/vim/skeletons/skel.latex index 77deb0a..cd5357c 100644 --- a/vim/skeletons/skel.latex +++ b/vim/skeletons/skel.latex @@ -1,9 +1,7 @@ \documentclass[11pt]{article} -\usepackage[utf8]{inputenc} - +\usepackage{frank_tex} \title{\textbf{<+TITLE+>}} -\author{Frank Villaro-Dixon} \date{} \begin{document}