1
0
Fork 0
This commit is contained in:
Jeremy Kaplan 2016-07-08 19:16:09 -04:00
commit c36c3feba9
8 changed files with 82 additions and 74 deletions

View file

@ -15,11 +15,11 @@ bspc config remove_unplugged_monitors true
bspc monitor -d 1 2 3 4 5 6 7 8 9 10 bspc monitor -d 1 2 3 4 5 6 7 8 9 10
bspc rule -r *:*
bspc rule -a Gimp state=floating bspc rule -a Gimp state=floating
bspc rule -a Slack desktop='^8' bspc rule -a Slack desktop='^8'
bspc config external_rules_command "$XDG_CONFIG_HOME/bspwm/external_rules"
pulseaudio --check || pulseaudio pulseaudio --check || pulseaudio
ps -u jdkaplan | grep -o xss-lock || xss-lock -- i3lock -e -i ~/images/lockscreen.png & ps -u jdkaplan | grep -oq xss-lock || xss-lock -- i3lock -e -i ~/images/lockscreen.png &
nitrogen --restore & nitrogen --restore &
ps -u jdkaplan | grep -o panel && pkill panel; $XDG_CONFIG_HOME/panel/panel & ps -u jdkaplan | grep -oq panel && pkill panel; $XDG_CONFIG_HOME/panel/panel &

View file

@ -1,11 +0,0 @@
#!/bin/sh
wid=$1
class=$2
instance=$3
echo "$wid|$class|$instance" >> ~/tmp/rules.log
if [ "$instance" = Mutt ] ; then
echo 'desktop=^9'
fi

View file

@ -14,11 +14,11 @@
go-mode go-mode
goto-chg goto-chg
haskell-mode haskell-mode
jinja2-mode jsx-mode
js2-mode
markdown-mode markdown-mode
php-mode php-mode
scala-mode scala-mode
tuareg
typescript-mode typescript-mode
undo-tree undo-tree
web-mode web-mode
@ -119,19 +119,6 @@
;; prettify symbols ;; prettify symbols
(global-prettify-symbols-mode 1) (global-prettify-symbols-mode 1)
(setq coq-symbols
'(
("forall" ?∀)
("->" ?→)
("exists" ?∃)
("=>" ?⇒)
))
(add-hook 'coq-mode-hook
(lambda ()
(dolist (binding coq-symbols)
(push binding prettify-symbols-alist))))
(put 'narrow-to-region 'disabled nil) (put 'narrow-to-region 'disabled nil)
(global-hl-line-mode 1) (global-hl-line-mode 1)
@ -176,7 +163,6 @@
(require 'php-mode) (require 'php-mode)
(require 'markdown-mode) (require 'markdown-mode)
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
@ -201,9 +187,6 @@
;; delete trailing whitespace on save ;; delete trailing whitespace on save
(add-hook 'prog-mode-hook (lambda () (add-to-list 'write-file-functions 'delete-trailing-whitespace))) (add-hook 'prog-mode-hook (lambda () (add-to-list 'write-file-functions 'delete-trailing-whitespace)))
(require 'jinja2-mode)
(add-to-list 'auto-mode-alist '("\\.jinja2\\'" . jinja2-mode))
;; found at https://gist.github.com/NFicano/1356280 ;; found at https://gist.github.com/NFicano/1356280
;; modified for 24.3 ;; modified for 24.3
@ -252,30 +235,22 @@ they line up with the line containing the corresponding opening bracket."
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent) (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(require 'web-mode) (require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.jsx?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.scss\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-hook 'web-mode-hook (add-hook 'web-mode-hook
(lambda () (lambda ()
(setq web-mode-markup-indent-offset 2) (setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2) (setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2) (setq web-mode-code-indent-offset 4)
(setq web-mode-enable-auto-pairing t) (setq web-mode-enable-auto-pairing t)
(setq web-mode-enable-auto-expanding t) (setq web-mode-enable-auto-expanding t)
(setq web-mode-enable-html-colorization t) (setq web-mode-enable-html-colorization t)
(setq web-mode-enable-css-colorization t) (setq web-mode-enable-css-colorization t)
(set-face-attribute 'web-mode-html-attr-name-face nil :foreground "#3387cc")
(set-face-attribute 'web-mode-html-attr-equal-face nil :foreground "gray60")
(set-face-attribute 'web-mode-html-tag-bracket-face nil :foreground "gray60")
(set-face-attribute 'web-mode-html-tag-face nil :foreground "#e9c062")
(define-key web-mode-map (kbd "C-c /") 'web-mode-element-close))) (define-key web-mode-map (kbd "C-c /") 'web-mode-element-close)))
(require 'go-mode-autoloads) (require 'go-mode-autoloads)
@ -283,3 +258,6 @@ they line up with the line containing the corresponding opening bracket."
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes") (add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'jdkaplan t) (load-theme 'jdkaplan t)
;; (load-theme 'jdkaplan-light t) ;; (load-theme 'jdkaplan-light t)
(require 'jsx-mode)
(require 'js2-mode)

View file

@ -1,27 +1,65 @@
(deftheme jdkaplan "jdkaplan's theme") (deftheme jdkaplan "jdkaplan's theme")
(custom-theme-set-faces
'jdkaplan
'(default ((t (:foreground "#e4e4e4" :background "#262626" ))))
'(cursor ((t (:background "#eeeeee" ))))
'(fringe ((t (:background "#262626" ))))
'(mode-line ((t (:foreground "#eeeeee" :background "#444444" ))))
'(mode-line-inactive ((t (:foreground "#444444" :background "#1e1e1e" ))))
'(vertical-border ((t (:foreground "#444444" :background "#262626" ))))
'(region ((t (:background "#3a3a3a" ))))
'(secondary-selection ((t (:background "#1e1e1e" ))))
'(font-lock-builtin-face ((t (:foreground "#f67f4e" ))))
'(font-lock-comment-face ((t (:foreground "#aaaaaa" ))))
'(font-lock-function-name-face ((t (:foreground "#00c7ff" ))))
'(font-lock-keyword-face ((t (:foreground "#3cc93a" ))))
'(font-lock-string-face ((t (:foreground "#a87f00" ))))
'(font-lock-type-face ((t (:foreground "#e8cf0e" ))))
'(font-lock-constant-face ((t (:foreground "#b987ff" ))))
'(font-lock-variable-name-face ((t (:foreground "#00c7ff" ))))
'(minibuffer-prompt ((t (:foreground "#c7c7c7" :bold t ))))
'(font-lock-warning-face ((t (:foreground "red" :bold t ))))
'(hl-line ((t (:background "black"))))
'(show-paren-match-face ((t (:foreground "orange" :background "black")))) (let (
(black "#1e1e1e")
(lightblack "#262626")
(darkgray "#3a3a3a")
(gray "#444444")
(lightgray "#c7c7c7")
(lightergray "#aaaaaa")
(darkwhite "#e4e4e4")
(white "#eeeeee")
(red "#ab4642")
(lightorange "#dc9656")
(orange "#f67f4e")
(goldenrod "#ccac62")
(paleyellow "#f7ca88")
(yellow "#e0d000")
(lime "#38ce35")
(palegreen "#a1d06c")
(green "#0cc91c")
(seagreen "#04d4a0")
(teal "#3ecae0")
(brightblue "#00c7ff")
(paleblue "#66C4FF")
(bluegray "#8bcef0")
(purple "#b98fff")
(tan "#d49804")
(brown "#a87f00")
(neutralbrown "#c78f6b")
) )
(custom-theme-set-faces
'jdkaplan
`(default ((t (:foreground ,darkwhite :background ,lightblack ))))
`(cursor ((t (:background ,white ))))
`(fringe ((t (:background ,lightblack ))))
`(mode-line ((t (:foreground ,white :background ,gray ))))
`(mode-line-inactive ((t (:foreground ,gray :background ,black ))))
`(vertical-border ((t (:foreground ,gray :background ,lightblack ))))
`(region ((t (:background ,darkgray ))))
`(secondary-selection ((t (:background ,black ))))
`(font-lock-builtin-face ((t (:foreground ,lightorange ))))
`(font-lock-comment-face ((t (:foreground ,lightergray ))))
`(font-lock-function-name-face ((t (:foreground ,paleblue ))))
`(font-lock-keyword-face ((t (:foreground ,lime ))))
`(font-lock-string-face ((t (:foreground ,goldenrod ))))
`(font-lock-type-face ((t (:foreground ,yellow ))))
`(font-lock-constant-face ((t (:foreground ,purple ))))
`(font-lock-variable-name-face ((t (:foreground ,paleblue ))))
`(minibuffer-prompt ((t (:foreground ,lightgray :bold t ))))
`(font-lock-warning-face ((t (:foreground ,red :bold t ))))
`(hl-line ((t (:background "black"))))
`(web-mode-html-attr-name-face ((t (:foreground ,palegreen ))))
`(web-mode-html-attr-equal-face ((t (:foreground "gray60" ))))
`(web-mode-html-tag-bracket-face ((t (:foreground "gray60" ))))
`(web-mode-html-tag-face ((t (:foreground ,bluegray ))))
`(web-mode-block-delimiter-face ((t (:foreground ,orange ))))
`(show-paren-match-face ((t (:foreground ,teal :bold t ))))
)
)
(provide-theme 'jdkaplan) (provide-theme 'jdkaplan)

View file

@ -77,10 +77,11 @@ def volume_update(_):
return 'volume', color_string("Vol: %d%s" % (volume, mute_icon), **kwargs) return 'volume', color_string("Vol: %d%s" % (volume, mute_icon), **kwargs)
def wifi_update(_): def wifi_update(_):
info = subprocess.check_output(['netctl-auto', 'current']) info = subprocess.check_output(['netctl-auto', 'list'])
info = info[:-1].decode('utf-8') active = [line for line in info.splitlines() if line[0] == '*']
if info:
interface, network = info.split('-', 1) if active:
interface, network = active[0].split('-', 1)
else: else:
interface, network = 'wlp2s0', '-' interface, network = 'wlp2s0', '-'
return 'wifi', color_string('{}: {}'.format(interface, network)) return 'wifi', color_string('{}: {}'.format(interface, network))

View file

@ -6,6 +6,7 @@ set passkeys+=feedly.com:jkJK
set passkeys+=pandora.com:<Right><Space> set passkeys+=pandora.com:<Right><Space>
set passkeys+=reddit.com:jkJKazxXcC=-[]1234567890 set passkeys+=reddit.com:jkJKazxXcC=-[]1234567890
set passkeys+=youtube.com:k set passkeys+=youtube.com:k
set passkeys+=soundcloud.com:<Space><Left><Right><Up><Down>lLMPRS1234567890
nmap J gt nmap J gt
nmap K gT nmap K gT

1
vim/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.netrwhist

View file

@ -1,4 +1,4 @@
export PATH=$PATH:$HOME/bin export PATH=$PATH:$HOME/bin:$HOME/.local/bin
export EDITOR='emacs' export EDITOR='emacs'
export VISUAL=$EDITOR export VISUAL=$EDITOR