APATH := $(realpath .)
FILES := bin
-DOTFILES := bash* conky* flexget git* goobookrc msmtp* mutt ncmpcpp offlineimap* profile weechat xbindkeysrc Xresources xprofile zprofile zshrc
+DOTFILES := conky* git* goobookrc msmtp* mutt ncmpcpp offlineimap* profile weechat xbindkeysrc Xresources xprofile zprofile zshrc
CONFIGFILES := aliases compton.conf git mimeo.conf mpd retroarch vim xkb zsh
.PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
local utils = require("utils")
-utils.run_once("dwb")
-utils.run_once("dwb", "-r social --name dwb-social", "dwb-social")
-utils.run_once("urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png -e ncmpcpp", nil, "ncmpcpp")
-utils.run_once("urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png -e weechat", nil, "weechat")
-utils.run_once("urxvtc -name mutt -icon ~/src/dotfiles/icons/internet-mail.png -e mutt", nil, "mutt")
-utils.run_once("dropboxd")
+utils.run_once("dwb", "-r")
+utils.run_once("dwb", "-r social --name dwb-social")
+utils.run_once("urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png -e ncmpcpp", nil, "ncmpcpp")
+utils.run_once("urxvtc -name mopidy -icon ~/src/dotfiles/icons/bmp.png -e ncmpcpp -p 6601", nil, "ncmpcpp -p 6601")
+utils.run_once("urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png -e weechat", nil, "weechat")
+utils.run_once("urxvtc -name mutt -icon ~/src/dotfiles/icons/internet-mail.png -e mutt", nil, "mutt")
-- Notification library
naughty = require("naughty")
menubar = require("menubar")
--- Pulseaudio widget
---local APW = require("apw/widget")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- Set keys
root.keys(globalkeys)
--- {{{ Autostart applications
+-- Autostart applications
require("autostart")
--- }}}
{ rule = { class = "URxvt", instance = "ncmpcpp" },
properties = { tag = mediatag,
function (c) awful.client.setmaster(c) end } },
+ { rule = { class = "URxvt", instance = "mopidy" },
+ properties = { tag = mediatag,
+ function (c) awful.client.setmaster(c) end } },
{ rule = { class = "URxvt", instance = "weechat" },
properties = { tag = imtag,
function (c) awful.client.setmaster(c) end } },
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
- left_layout:add(mylauncher)
+ -- left_layout:add(mylauncher)
left_layout:add(mytaglist[s])
left_layout:add(mypromptbox[s])
-Subproject commit 20156ff10e67c67965aeaf6ada1d5e02a581d600
+Subproject commit 8a6072a452dc516ab5d896c84319089c21a678ca
-- Select device
local device = ""
if utils.host == "chronos" then device = "alsa_output.pci-0000_00_1b.0.analog-stereo" end
-if utils.host == "shada" then device = "alsa_output.pci-0000_00_14.2.analog-stereo" end
+if utils.host == "shada" then device = "surround31" end
-- Register widget
volwidget = wibox.widget.textbox()
vicious.register(volwidget, vicious.contrib.pulse, '<span font="Symbola 12">🔊</span> '.."$1", 1, device)
#!/bin/bash
-dwb -r social --name dwb-social "$@"
+exec dwb -r social --name dwb-social "$@"
https://www.facebook.com/ Facebook
https://www.humblebundle.com/ Humble Bundle
https://www.loomio.org/ Loomio
+http://blog.techdev.de/code-snippet-edit-a-file-in-all-branches-using-git/ Code Snippet: Edit a File in all Branches using Git | techdev Solutions
.facebook.com
.github.com
.gitorious.org
+.gmail.com
.google.co.uk
.google.com
.google.nl
.usenet-crawler.com
.userscripts.org
.www.dropbox.com
+.www.facebook.com
+.www.gmail.com
.www.loomio.org
.www.usenet-crawler.com
.www.youtube.com
community.playstarbound.com
duckduckgo.com
eleum.unimaas.nl
+facebook.com
forums.introversion.co.uk
gist.github.com
github.com
gitorious.org
+gmail.com
+google.com
jolla.com
loomio.org
mail.google.com
www.bnpparibasfortis.be
www.chakra-project.org
www.dropbox.com
+www.facebook.com
+www.gmail.com
www.humblebundle.com
www.introversion.co.uk
www.loomio.org
duckduckgo.com
eleum.unimaas.nl
en.wikipedia.org
+encrypted.google.com
github.com
gitorious.org
groups.google.com
localhost
mail.google.com
+maps.google.com
np.reddit.com
piratenpad.de
plus.google.com
together.jolla.com
translate.google.com
wiki.ros.org
+www.amazon.co.uk
www.amazon.com
www.dropbox.com
www.facebook.com
www.reddit.com
www.ros.org
www.usenet-crawler.com
-www.youtube.com
[default]
-save_search_field=gs
-tab_new=ga
-allow_session_cookie_tmp=CT
-allow_cookie=CC
-allow_session_cookie=CS
-bookmark=M
-buffers=gt
-cancel_download=ad
-sanitize=
-clear_tab=gc
-only=
-close_tab=d
+save_search_field= gs
+tab_new= ga
+allow_session_cookie_tmp= CT
+allow_cookie= CC
+allow_session_cookie= CS
+bookmark= M
+buffers= gt
+cancel_download= ad
+sanitize=
+clear_tab= gc
+only=
+close_tab= d
entry_escape=Control c
entry_confirm=Control g
entry_history_back=Control k
complete_path=Control p
complete_searchengines=Control S
complete_userscript=Control U
-download=gd
+download= gd
download_set_execute=Control x
-command_mode=:
-tabdo=
-execute_javascript=
-eval=
-execute_userscript=eu
-find_backward_ic=c?
-find_backward=?
-find_forward_ic=c/
-find_forward=/
-find_next=n
-find_previous=N
-focus_input=gi
-focus_next=K
-focus_tab=T
-focus_prev=J
-win_hist_back=wh
-tab_hist_back=th
-history_back=H
-win_hist_forward=wl
-tab_hist_forward=tl
-history_forward=L
-insert_mode=i
-show_keys=Sk
-load_html=
-load_html_tab=
-lock_domain=xd
-lock_uri=xu
-tab_move_left=gl
-tab_move_right=gr
-tab_move=gm
+command_mode= :
+tabdo=
+execute_javascript=
+eval=
+execute_userscript= eu
+find_backward_ic= c?
+find_backward= ?
+find_forward_ic= c/
+find_forward= /
+find_next= n
+find_previous= N
+focus_input= gi
+focus_next= K
+focus_tab= T
+focus_prev= J
+win_hist_back= wh
+tab_hist_back= th
+history_back= H
+win_hist_forward= wl
+tab_hist_forward= tl
+history_forward= L
+insert_mode= i
+show_keys= Sk
+load_html=
+load_html_tab=
+lock_domain= xd
+lock_uri= xu
+tab_move_left= gl
+tab_move_right= gr
+tab_move= gm
normal_mode=Control n
open_editor=Control e
-quickmark=b
-tab_quickmark=B
-win_quickmark=wb
+quickmark= b
+tab_quickmark= B
+win_quickmark= wb
start_page=Control h
-web_inspector=wi
-paste=pp
-tab_paste=Pp
-win_paste=wp
-paste_primary=pP
-win_paste_primary=wP
-tab_paste_primary=PP
+web_inspector= wi
+paste= pp
+tab_paste= Pp
+win_paste= wp
+paste_primary= pP
+win_paste_primary= wP
+tab_paste_primary= PP
print=Control Mod1 p
protect=Control P
quit=Control q
-reload_bookmarks=
-reload=r
-reload_bypass_cache=R
-reload_quickmarks=
-reload_userscripts=
-save=sf
-save_session=ZZ
-save_named_session=gZZ
-save_quickmark=m
-scroll_down=j
-scroll_right=l
-scroll_left=h
+reload_bookmarks=
+reload= r
+reload_bypass_cache= R
+reload_quickmarks=
+reload_userscripts=
+save= sf
+save_session= ZZ
+save_named_session= gZZ
+save_quickmark= m
+scroll_down= j
+scroll_right= l
+scroll_left= h
scroll_page_down=Control f
scroll_page_up=Control b
scroll_halfpage_down=Control d
scroll_halfpage_up=Control u
-scroll_bottom=G
-scroll_top=gg
-scroll_up=k
-local_set=
-set=
-set_key=sk
-set_local_setting=sl
-set_setting=ss
-show_settings=Ss
-print_preview=
-show_bookmarks=Sb
-show_downloads=Sd
-show_history=Sh
-show_quickmarks=Sq
+scroll_bottom= G
+scroll_top= gg
+scroll_up= k
+local_set=
+set=
+set_key= sk
+set_local_setting= sl
+set_setting= ss
+show_settings= Ss
+print_preview=
+show_bookmarks= Sb
+show_downloads= Sd
+show_history= Sh
+show_quickmarks= Sq
stop_loading=Control s
-toggle_local_setting=
-toggle_setting=
+toggle_local_setting=
+toggle_setting=
toggle_tab=Control @Tab@
-toggle_plugins_host_tmp=pth
-toggle_scripts_host=tsh
-toggle_scripts_host_tmp=tth
-toggle_scripts_uri=tsu
-toggle_plugins_uri_tmp=ptu
-toggle_scripts_uri_tmp=ttu
-fullscreen=@F11@
-toggle_hidden_files=g.
-toggle_plugins_host=ph
-toggle_plugins_uri=pu
-presentation_mode=@F12@
+toggle_plugins_host_tmp= pth
+toggle_scripts_host= tsh
+toggle_scripts_host_tmp= tth
+toggle_scripts_uri= tsu
+toggle_plugins_uri_tmp= ptu
+toggle_scripts_uri_tmp= ttu
+fullscreen= @F11@
+toggle_hidden_files= g.
+toggle_plugins_host= ph
+toggle_plugins_uri= pu
+presentation_mode= @F12@
proxy=Control p
-visible=xv
-toggle_bars=xx
-toggle_statusbar=xb
-toggle_tabbar=xt
-undo=u
-view_source=gf
-dump=
-yank_title=yt
-yank_title_primary=yT
-yank=yy
-yank_primary=yY
-zoom==
-zoom_in=+
-zoom_out=-
-hints_background=;b
-hints_images_background=.i
-hints_url_background=.o
-backopen_url=xO
-backopen=xo
-bookmarks=gb
-hints=f
-hints_clipboard=;y
-hints_download=;d
-hints_editable=;e
-hints_images=;i
-hints_links=;;
-hints_primary=;Y
-hints_rapid=;r
-hints_url=;o
-new_tab=V
-new_win=W
-open_url=go
-open=o
-hints_tab=F
-hints_images_tab=;I
-hints_url_tab=;O
-tab_bookmarks=gB
-tabopen_url=gO
-tabopen=O
-hints_win=wf
-hints_rapid_win=;R
-win_bookmarks=wB
-winopen_url=wO
-winopen=wo
-adblock_reload_rules=
-visual_mode=v
-tabgrep=
-repeat=.
+visible= xv
+toggle_bars= xx
+toggle_statusbar= xb
+toggle_tabbar= xt
+undo= u
+view_source= gf
+dump=
+yank_title= yt
+yank_title_primary= yT
+yank= yy
+yank_primary= yY
+zoom= =
+zoom_in= +
+zoom_out= -
+hints_background= ;b
+hints_images_background= .i
+hints_url_background= .o
+backopen_url= xO
+backopen= xo
+bookmarks= gb
+hints= f
+hints_clipboard= ;y
+hints_download= ;d
+hints_editable= ;e
+hints_images= ;i
+hints_links= ;;
+hints_primary= ;Y
+hints_rapid= ;r
+hints_url= ;o
+new_tab= V
+new_win= W
+open_url= go
+open= o
+hints_tab= F
+hints_images_tab= ;I
+hints_url_tab= ;O
+tab_bookmarks= gB
+tabopen_url= gO
+tabopen= O
+hints_win= wf
+hints_rapid_win= ;R
+win_bookmarks= wB
+winopen_url= wO
+winopen= wo
+adblock_reload_rules=
+visual_mode= v
+tabgrep=
+repeat= .
entry_delete_active=Control d
-jump='
-mark=`
-hints_selector=
+jump= '
+mark= `
+hints_selector=
[mail]
save_search_field=gs
"docs.ros.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" },
"paste.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" },
"plus.google.com" : { "user-stylesheet-uri" : "" },
+ "maps.google.com" : { "user-stylesheet-uri" : "" },
"www.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
},
// Settings applied based on the uri
--- /dev/null
+#!javascript
+
+var regex = new RegExp("(https?://vimeo.com/)(\\d*)");
+
+Signal.connect("navigation", function (wv, frame, request) {
+ if (wv.mainFrame == frame && regex.test(request.uri)) {
+ var uri = system.spawnSync("youtube-dl -g "+request.uri.replace(regex, "$1$2"));
+ system.spawn("mpv "+uri.stdout);
+ }
+ return false;
+});
-#!javascript
+#!javascript
var regex = new RegExp("(https?://www.youtube.com/watch\\?)(?:.*&)*(v=.*)");
smtpserver = smtp.gmail.com
smtpuser = samir.benmendil@gmail.com
smtpserverport = 587
+[mergetool "fugitive"]
+ cmd = vim -f -c \"Gvdiff\" \"$MERGED\"
+[merge]
+ tool = fugitive
+[mergetool]
+ prompt = no
Bundle 'bling/vim-airline'
Bundle 'elzr/vim-json'
-Bundle 'ervandew/ag.git'
+Bundle 'rking/ag.vim'
Bundle 'http://git.code.sf.net/p/vim-latex/vim-latex'
Bundle 'kien/ctrlp.vim'
Bundle 'kshenoy/vim-signature'
Bundle 'firef0x/pkgbuild.vim'
Bundle 'derekwyatt/vim-fswitch'
" seems to have problems right now... may be add later?
-"Bundle 'jalcine/cmake.vim'
-Bundle 'powerman/vim-plugin-viewdoc'
+" Bundle 'jalcine/cmake.vim'
+" Bundle 'powerman/vim-plugin-viewdoc'
+
+Bundle 'airblade/vim-gitgutter'
+Bundle 'Raimondi/delimitMate'
+Bundle 'SirVer/ultisnips'
+Bundle 'Lokaltog/vim-easymotion'
" remove entries first
set runtimepath -=$HOME/.vim
" whether to use a popup menu for Insert mode completion
set completeopt=longest,menuone,preview
-" Indent if we're at the beginning of a line. Else, do completion.
-function! InsertTabWrapper()
- let col = col('.') - 1
- if !col || getline('.')[col - 1] !~ '\k'
- return "\<Tab>"
- else
- return "\<C-N>"
-endif
-endfunction
-inoremap <Tab> <C-R>=InsertTabWrapper()<CR>
-inoremap <S-Tab> <C-P>
-
" fix legacy vi inconsistency
map Y y$
" plugins {{{1
" ag {{{2
let g:AgSmartCase = 1
+nnoremap <leader>ag yiw:Ag \12"<cr>
+vnoremap <leader>ag y:Ag \12"<cr>
" airline {{{2
let g:airline_detect_whitespace=2
let g:tagbar_width = 25
let g:tagbar_iconchars = ['+', '-']
+" UltiSnips {{{2
+let g:UltiSnipsEditSplit = 'vertical'
+let g:UltiSnipsSnippetsDir = "$XDG_CONFIG_HOME/vim/ultisnips"
+
" YouCompleteMe {{{2
let g:ycm_extra_conf_globlist = ['~/src/*','/mnt/data/src/*']
let g:ycm_add_preview_to_completeopt = 1
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_MultipleCompileFormats='pdf'
-" vim-viewdoc {{{2
-let g:no_viewdoc_maps = 1
-nnoremap K :call ViewDoc('doc', '<cword>')<cr>
+" " vim-viewdoc {{{2
+" let g:no_viewdoc_maps = 1
+" nnoremap K :call ViewDoc('doc', '<cword>')<cr>
" functions {{{1
" auto source vimrc when saved
name_lower_case = on
nick_prefix = ""
nick_suffix = ""
-path = "%h/logs/"
+path = "~/.cache/weechat/logs/"
replacement_char = "_"
time_format = "%Y-%m-%d %H:%M:%S"
-#!/usr/bin/env bash
+#!/usr/bin/env zsh
export PATH="$HOME/bin:$PATH"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fpath
# initialise completion
-[[ -d "$ZSH_CACHE" ]] || mkdir -p "$ZSH_CACHE"
autoload -U compinit; compinit -d "$ZSH_CACHE/zcompdump"
# miscelaneous options
typeset -U path # make path a unique array
[[ -d ~/.local/bin ]] && path=(~/.local/bin $path)
[[ -d ~/bin ]] && path=(~/bin $path)
-[[ -d /extra ]] && path=($path /extra/bin /extra/usr/bin /extra/sbin /extra/usr/sbin)
[[ -d /opt/android-sdk ]] && path=($path /opt/android-sdk/platform-tools)
# source aliases