Git: some aliases.
Awesome: luakit output redirection. Awesome: charging battery does not get in warning state anymore.master
parent
d378c9346b
commit
317a49e1ab
|
@ -129,7 +129,8 @@ if batl ~= "" then
|
|||
vicious.register(batwidget, vicious.widgets.bat,
|
||||
function (widget, args)
|
||||
-- We check if time is displayed (otherwise it's 'N/A'), and if minutes are less than limit.
|
||||
if string.len(args[3]) == 5
|
||||
if args[1] == "-"
|
||||
and string.len(args[3]) == 5
|
||||
and tonumber(string.sub(args[3],1,2)) == 0
|
||||
and tonumber(string.sub(args[3],4,5)) <= batlimit
|
||||
then
|
||||
|
@ -319,8 +320,8 @@ globalkeys = awful.util.table.join(
|
|||
awful.key({ }, "XF86Mail", function () awful.util.spawn(termcmd .. "mutt") end),
|
||||
|
||||
-- Web browser
|
||||
awful.key({ modkey, }, "w", function () awful.util.spawn("luakit") end),
|
||||
awful.key({ }, "XF86WWW", function () awful.util.spawn("luakit") end),
|
||||
awful.key({ modkey, }, "w", function () awful.util.spawn_with_shell("luakit 2>>/tmp/luakit.log") end),
|
||||
awful.key({ }, "XF86WWW", function () awful.util.spawn_with_shell("luakit 2>>/tmp/luakit.log") end),
|
||||
|
||||
-- Music player
|
||||
awful.key({ modkey, }, "a", function () awful.util.spawn(termcmd .. "cmus") end),
|
||||
|
|
37
.emacs
37
.emacs
|
@ -524,12 +524,47 @@ the line."
|
|||
(yas-load-directory yas-snippet-dirs)
|
||||
|
||||
;;==============================================================================
|
||||
;; AucTeX
|
||||
;; TeX and LaTeX
|
||||
;;==============================================================================
|
||||
|
||||
(setq tex-run-command "pdftex")
|
||||
;; (setq tex-command "pdftex") ; Same as above ?
|
||||
(setq latex-run-command "pdflatex")
|
||||
|
||||
|
||||
|
||||
;; (defun tex-print (&optional alt)
|
||||
;; "Print the .dvi file made by \\[tex-region], \\[tex-buffer] or \\[tex-file]. Runs the shell command defined by `tex-dvi-print-command'. If prefix argument
|
||||
;; is provided, use the alternative command, `tex-alt-dvi-print-command'."
|
||||
;; (interactive "P")
|
||||
;; (let ((print-file-name-dvi (tex-append tex-print-file ".pdf"))
|
||||
;; test-name)
|
||||
;; (if (and (not (equal (current-buffer) tex-last-buffer-texed))
|
||||
;; (buffer-file-name)
|
||||
;; ;; Check that this buffer's printed file is up to date.
|
||||
;; (file-newer-than-file-p
|
||||
;; (setq test-name (tex-append (buffer-file-name) ".pdf"))
|
||||
;; (buffer-file-name)))
|
||||
;; (setq print-file-name-dvi test-name))
|
||||
;; (if (not (file-exists-p print-file-name-dvi))
|
||||
;; (error "No appropriate `.dvi' file could be found")
|
||||
;; (if (tex-shell-running)
|
||||
;; (tex-kill-job)
|
||||
;; (tex-start-shell))
|
||||
;; (tex-send-command
|
||||
;; (if alt tex-alt-dvi-print-command tex-dvi-print-command)
|
||||
;; print-file-name-dvi t))))
|
||||
|
||||
;; (set-variable (quote tex-dvi-view-command) "zathura")
|
||||
|
||||
;; (setq tex-dvi-view-command "(f=*; pdflatex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")")
|
||||
;; (setq tex-dvi-view-command "(f=*; pdftex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")")
|
||||
|
||||
;; (defun tex-view ()
|
||||
;; (interactive)
|
||||
;; (tex-send-command "zathura" (tex-append tex-print-file ".pdf")))
|
||||
|
||||
|
||||
;;==============================================================================
|
||||
;; AucTeX
|
||||
;;==============================================================================
|
||||
|
|
|
@ -3,3 +3,6 @@
|
|||
name = Ambrevar
|
||||
[color]
|
||||
ui = true
|
||||
[alias]
|
||||
s = status -uno
|
||||
c = commit -a
|
||||
|
|
13
README
13
README
|
@ -1,7 +1,7 @@
|
|||
################################################################################
|
||||
# Unix Home Configuration #
|
||||
# Author: Ambrevar #
|
||||
# Date: 2012-08-07 #
|
||||
# Date: 2012-09-05 #
|
||||
################################################################################
|
||||
|
||||
Synopsis
|
||||
|
@ -11,7 +11,6 @@ Target distribution: Arch Linux (might work for most Unices as well)
|
|||
|
||||
Generic Comments
|
||||
****************
|
||||
|
||||
The only purpose is to be a source of inspiration. Examples are always a good
|
||||
technical support. (Especially for applications that do not provide examples in
|
||||
their documentation.) There is no use in blind-copying the content of any file
|
||||
|
@ -55,7 +54,7 @@ Vicious plugin, it is quite straightforward.
|
|||
|
||||
Emacs
|
||||
*****
|
||||
Extra deps: auctex, emacs-lua-mode, emacs-mediawiki, emacs-yasnippet.
|
||||
Extra deps: emacs-lua-mode, emacs-mediawiki, emacs-yasnippet.
|
||||
|
||||
Some keybindings and custom colors (for 256-colors terminals). Extended file
|
||||
support (shell files, mutt mails, Arch Linux PKGBUILDs). Some customization --
|
||||
|
@ -64,8 +63,8 @@ snippets). Some custom functions (duplicate line, unfill-paragraph, etc.).
|
|||
|
||||
Luakit
|
||||
******
|
||||
Some custom bindings, download location, search engines, etc.
|
||||
Functional Adblock script. Script+Plugin toggle.
|
||||
Some custom bindings, download location, search engines, etc. Script+Plugin
|
||||
toggle.
|
||||
|
||||
Mutt
|
||||
****
|
||||
|
@ -78,7 +77,7 @@ on the disk. As a result, I just get prompted for a main password on Mutt
|
|||
startup, then everything works out of the box.
|
||||
|
||||
I use GPG for password management because it is a Mutt dependency anyway. It
|
||||
could also work well with pwsafe or other tools.
|
||||
could also work well with ccrypt.
|
||||
|
||||
I'm using embedded IMAP and SMTP services -- you must provide the required
|
||||
compilation options.
|
||||
|
@ -149,7 +148,7 @@ URxvt: using the paste function from Muennich's clipboard on the same terminal
|
|||
where text was copied will make xsel crash.
|
||||
|
||||
Zathura: app will hang forever sometimes (when document is being regenerated, or
|
||||
when launched from Ranger).
|
||||
when launched from Ranger -- not sure).
|
||||
|
||||
################################################################################
|
||||
Complete applist
|
||||
|
|
Loading…
Reference in New Issue