Merge branch 'master' of github.com:IvanMalison/dotfiles

This commit is contained in:
Ivan Malison 2017-03-25 06:58:58 -07:00
commit 8004ece8ef
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
6 changed files with 67 additions and 10 deletions

View File

@ -42,3 +42,4 @@
/user-dirs.locale /user-dirs.locale
/vlc/ /vlc/
/xfce4/ /xfce4/
/.mono/keypairs/

View File

@ -0,0 +1,19 @@
output HDMI-1
off
output DP-0
off
output DP-1
off
output DP-2
off
output DP-3
off
output HDMI-0
mode 3840x2160
pos 0x0
rate 60.00
output DVI-D-0
mode 2560x1440
pos 0x2160
primary
rate 59.95

View File

@ -0,0 +1,2 @@
DVI-D-0 00ffffffffffff0010ac7e404c33353220180103803c2278ea4bb5a7564ba3250a5054a54b008100b300d100714fa9408180d1c00101565e00a0a0a029503020350055502100001a000000ff00374a4e59353438363235334c0a000000fc0044454c4c205532373133484d0a000000fd0031561d711c000a20202020202000e4
HDMI-0 00ffffffffffff001e6d010001010101011a010380a05a780aee91a3544c99260f5054a108003140454061407140818001010101010108e80030f2705a80b0588a0040846300001e023a801871382d40582c450040846300001e000000fd003a3e1e883c000a202020202020000000fc004c47205456205256550a2020200102020354f1506110222005040302015d5e5f66626364293d06c01507500957076e030c003000b83c2000800102030467d85dc401788003e200cfee0146d00024180900ad5244a9230ce305c000e3060501e30f0110011d8018711c1620582c250040846300009e662150b051001b304070360040846300001e0000000000000070

View File

@ -998,6 +998,7 @@ This was stolen from https://github.com/jwiegley/dot-emacs
(,mode-name ,disable-value))) (,mode-name ,disable-value)))
(imalison:disable-mode-hook linum-mode) (imalison:disable-mode-hook linum-mode)
(imalison:disable-mode-hook nlinum-mode)
(imalison:disable-mode-hook yas-minor-mode) (imalison:disable-mode-hook yas-minor-mode)
#+END_SRC #+END_SRC
** Other ** Other
@ -1141,12 +1142,27 @@ I keep it around just in case I need it.
(line-number-mode t) (line-number-mode t)
(column-number-mode t) (column-number-mode t)
#+END_SRC #+END_SRC
Linum can be really slow on large files so it does not make sense to *** nlinum
have it on by default. Its probably safe to turn it on when in a Linum/NLinum can be really slow on large files so it does not make sense to have
programming mode. it on by default. Its probably safe to turn it on when in a programming mode.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(global-linum-mode -1) (global-linum-mode -1)
(add-hook 'prog-mode-hook (lambda () (linum-mode t))) #+END_SRC
#+BEGIN_SRC emacs-lisp
(use-package nlinum
:demand t
:config
(progn
(add-hook 'prog-mode-hook (lambda () (nlinum-mode t)))
(defun imalison-nlinum-mode-hook ()
(when nlinum-mode
(setq-local nlinum-format
(concat "%" (number-to-string
;; Guesstimate number of buffer lines.
(ceiling (log (max 1 (/ (buffer-size) 80)) 10)))
"d"))))
(add-hook 'nlinum-mode-hook #'imalison-nlinum-mode-hook)))
#+END_SRC #+END_SRC
** Backups ** Backups
*** Put them all in one directory *** Put them all in one directory

View File

@ -1,11 +1,29 @@
#!/usr/bin/env bash #!/usr/bin/env zsh
function get_all_commands {
IFS=: get_all_executables () {
for exec_path in $PATH; do for exec_path in $path; do
test -r "$exec_path" && \ test -r "$exec_path" && \
find "$exec_path" -maxdepth 1 -executable ! -type d -printf "%f\n" find "$exec_path" -maxdepth 1 -executable ! -type d -printf "%f\n"
done done
} }
selected=$(get_all_commands | rofi -dmenu -i) get_all_functions () {
"$selected" print -l ${(ok)functions}
}
get_all_aliases () {
alias | cut -d = -f 1
}
selected=$({ get_all_executables; get_all_aliases; get_all_functions; } | rofi -dmenu -i -kb-custom-1 "Alt+c")
rofi_exit="$?"
args=""
case "$rofi_exit" in
1)
exit
;;
10)
args=$(echo "" | rofi -dmenu)
esac
eval "$selected $args"

View File

@ -8,3 +8,4 @@
/xmonad.hi /xmonad.hi
/xmonad.o /xmonad.o
/xmonad.state /xmonad.state
/prompt-history