]> git.rmz.io Git - dotfiles.git/commitdiff
Merge branch 'flexget'
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 7 Jan 2015 02:49:21 +0000 (02:49 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 7 Jan 2015 02:49:21 +0000 (02:49 +0000)
24 files changed:
.gitmodules
Makefile
awesome/bindings.lua
awesome/rules.lua
bin/old/ubuntu-minimal-install [deleted file]
dwb/forms
dwb/userscripts/extension_loader.js
dwb/userstyles/imgur.com.css [new file with mode: 0644]
mpd/mpd.conf
mpv/.gitignore [new file with mode: 0644]
mpv/config [new file with mode: 0644]
mpv/input.conf [new file with mode: 0644]
ncmpcpp/bindings [new file with mode: 0644]
ncmpcpp/config
vim/filetype.vim
vim/ftplugin/PKGBUILD.vim
vim/ftplugin/roscpp.vim
vim/ultisnips/PKGBUILD.snippets [new file with mode: 0644]
vim/ultisnips/c.snippets
vim/vimrc
vim/ycm_extra_conf.py
xkb/symbols/dvorak
zsh/aliases/pacman.zsh
zsh/lib/ranger.zsh

index ed6c2a9730844ab066ac4d1d395f02a66692ad8b..b274d065bb404b8522e8a32421dece19196a297e 100644 (file)
@@ -1,6 +1,3 @@
-[submodule "awesome/vicious"]
-       path = awesome/vicious
-       url = http://git.sysphere.org/vicious
 [submodule "awesome/awesome-freedesktop"]
        path = awesome/awesome-freedesktop
        url = https://github.com/terceiro/awesome-freedesktop.git
index 3d0152424c93cfb57af7eefc847306cd10ed00f0..3c9162d2723f547cd2fba89e5382fa8346368d5c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ APATH := $(realpath .)
 
 FILES := bin
 DOTFILES := conky* git* goobookrc msmtp* mutt ncmpcpp profile weechat xbindkeysrc Xresources xprofile zprofile zshenv zshrc
-CONFIGFILES := aliases compton.conf git mimeo.conf mpd offlineimap ranger retroarch systemd vim xkb zsh
+CONFIGFILES := aliases compton.conf git mimeo.conf mpd mpv offlineimap ranger retroarch systemd vim xkb zsh
 
 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
index 5ff504ebf91021ab7a7cf641c0d5b78d31cd25a4..af2426e97a21420088b5e339aacf34083d4571ee 100644 (file)
@@ -70,8 +70,8 @@ globalkeys = awful.util.table.join(globalkeys,
     -- Prompt
     awful.key({ modkey }, "space", function () mypromptbox[mouse.screen]:run() end),
     -- switch layout
-    awful.key({ modkey }, "]", function () awful.layout.inc( 1, mouse.screen, layouts) end),
-    awful.key({ modkey }, "[", function () awful.layout.inc(-1, mouse.screen, layouts) end),
+    awful.key({ modkey }, "]", function () awful.layout.inc(layouts,  1) end),
+    awful.key({ modkey }, "[", function () awful.layout.inc(layouts, -1) end),
     -- resize slave
     awful.key({ modkey, "Control" }, "j",      function () awful.client.incwfact( 0.05)  end),
     awful.key({ modkey, "Control" }, "k",      function () awful.client.incwfact(-0.05)  end),
index a78a85f24174449aff02015e7c67d67afb567db1..2d07e9d317b53719bc31c361ce985faec0ddc8f4 100644 (file)
@@ -3,17 +3,17 @@ local utils = require("utils")
 -- {{{ Rules
 local sc = screen.count()
 
+if sc == 1 then mediatag = tags[1][9] end
 if sc == 2 then mediatag = tags[2][3] end
-if sc == 1 then mediatag = tags[1][4] end
 
-if sc == 2 then wwwtag = tags[2][1] end
 if sc == 1 then wwwtag = tags[1][2] end
+if sc == 2 then wwwtag = tags[2][1] end
 
-if sc == 2 then imtag = tags[2][2] end
 if sc == 1 then imtag = tags[1][3] end
+if sc == 2 then imtag = tags[2][2] end
 
+if sc == 1 then socialtag = tags[1][4] end
 if sc == 2 then socialtag = tags[2][4] end
-if sc == 1 then socialtag = tags[1][5] end
 
 awful.rules.rules = {
     -- All clients will match this rule.
diff --git a/bin/old/ubuntu-minimal-install b/bin/old/ubuntu-minimal-install
deleted file mode 100755 (executable)
index 1786615..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-#######################################################################
-# Ubuntu-Desktop-Minimal: Post-install script to install only the bare
-#                        essentials of an Ubuntu Desktop.
-#######################################################################
-echo "[*] Installing Gnome Essentials"
-sudo apt-get -y install gnome-core gdm network-manager-gnome fast-user-switch-applet \
-human-theme x11-xserver-utils tangerine-icon-theme gnome-themes-ubuntu ubuntu-artwork \
-jockey-gtk gnome-screensaver gnome-utils
-echo "[*] Installing Application Essentials"
-sudo apt-get install -y gcalctool tsclient
index b38119e7e410a89259bc29c5615cdcd8b4b6f4c9..acec7702919359be825f842e2e6f4c4f389d38e5 100644 (file)
Binary files a/dwb/forms and b/dwb/forms differ
index da30a4acee86f8a45c5cd941b7aec7e990121f6f..f00518d4b592814260ab180beded028a3fc2a1c6 100644 (file)
@@ -109,6 +109,7 @@ domains : {
     "facebook.com" :       { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/facebook.com.css" },
     "github.com" :         { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/github.com.css" },
     "humblebundle.com" :   { "user-stylesheet-uri" : "" },
+    "imgur.com" :          { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/imgur.com.css" },
     "reddit.com" :         { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reddit.com.css" },
     "soundcloud.com" :     { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/soundcloud.com.css" },
     "stackexchange.com" :  { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
diff --git a/dwb/userstyles/imgur.com.css b/dwb/userstyles/imgur.com.css
new file mode 100644 (file)
index 0000000..5a9c096
--- /dev/null
@@ -0,0 +1,4 @@
+/* make sure background is set when viewing only image */
+body {
+  background-color : #1c1c1c !important
+}
index 7e1d3038ad76af1fc3db7aec43938fb4bb3723c8..38f2a3d5095399457ff9a8674eb72c1efc78bde4 100644 (file)
@@ -10,10 +10,17 @@ state_file          "~/.local/share/mpd/state"
 sticker_file        "~/.local/share/mpd/sticker.sql"
 
 input {
-        plugin "curl"
+    plugin "curl"
 }
 
 audio_output {
-        type            "pulse"
-        name            "My Pulse Output"
+    type "pulse"
+    name "My Pulse Output"
+}
+
+audio_output {
+    type "fifo"
+    name "fifo"
+    path "/tmp/mpd.fifo"
+    format "44100:16:2"
 }
diff --git a/mpv/.gitignore b/mpv/.gitignore
new file mode 100644 (file)
index 0000000..e4c9514
--- /dev/null
@@ -0,0 +1 @@
+watch_later
diff --git a/mpv/config b/mpv/config
new file mode 100644 (file)
index 0000000..3c5e101
--- /dev/null
@@ -0,0 +1,9 @@
+# default
+ytdl
+cache=auto
+cache-default=50000
+cache-initial=100
+
+# profiles
+[mimeo]
+quiet
diff --git a/mpv/input.conf b/mpv/input.conf
new file mode 100644 (file)
index 0000000..a11924f
--- /dev/null
@@ -0,0 +1 @@
+a cycle_values video-aspect "16:9" "16:10" "4:3" "2.35:1" "-1"
diff --git a/ncmpcpp/bindings b/ncmpcpp/bindings
new file mode 100644 (file)
index 0000000..14878a7
--- /dev/null
@@ -0,0 +1,75 @@
+# don't quit
+def_key "q"
+  dummy
+
+def_key "ctrl_c"
+  quit
+
+def_key "k"
+  scroll_up
+
+def_key "K"
+  move_sort_order_up
+
+def_key "K"
+  move_selected_items_up
+
+def_key "j"
+  scroll_down
+
+def_key "J"
+  move_sort_order_down
+
+def_key "J"
+  move_selected_items_down
+
+def_key "l"
+  next_column
+
+def_key "l"
+  slave_screen
+
+def_key "l"
+  volume_up
+
+def_key "h"
+  previous_column
+
+def_key "h"
+  master_screen
+
+def_key "h"
+  volume_down
+
+def_key "!"
+  show_playlist
+
+def_key "@"
+  show_browser
+
+def_key "@"
+  change_browse_mode
+
+def_key "#"
+  show_search_engine
+
+def_key "#"
+  reset_search_engine
+
+def_key "$"
+  show_media_library
+
+def_key "$"
+  toggle_media_library_columns_mode
+
+def_key "%"
+  show_playlist_editor
+
+def_key "^"
+  show_tag_editor
+
+def_key "&"
+  show_outputs
+
+def_key "*"
+  show_visualizer
index d311c3e47be1fcb4b6d50811e0abf6e069f1f52a..aeea0b6598d833ac69d7a3d40d12ef000b628071 100644 (file)
@@ -15,4 +15,10 @@ playlist_editor_display_mode = "columns"
 
 autocenter_mode = "yes"
 user_interface  = "alternative"
-media_library_left_column = "A"
+media_library_primary_tag = "album_artist"
+
+visualizer_fifo_path = "/tmp/mpd.fifo"
+visualizer_output_name = "fifo"
+visualizer_sync_interval = "30"
+visualizer_in_stereo = "yes"
+visualizer_type = "spectrum" (spectrum/wave)
index e62ec35ea746c4c739607fe2a3e8d5a475d82e6b..17b1a26e0ca5bba6996246b5abce4fff0301ea78 100644 (file)
@@ -2,12 +2,12 @@ if exists("did_load_filetypes")
     finish
 endif
 augroup filetypedetect
-    autocmd! BufNewFile,BufRead *.launch  setfiletype roslaunch
-    autocmd! BufNewFile,BufRead PKGBUILD* setfiletype PKGBUILD
+    autocmd! BufNewFile,BufRead PKGBUILD setfiletype PKGBUILD
 augroup END
 
 augroup ft_ros
     autocmd! BufNewFile,BufRead */ros/*.cpp setfiletype cpp.roscpp
     autocmd! BufNewFile,BufRead */ros/*.h   setfiletype cpp.roscpp
+    autocmd! BufNewFile,BufRead *.launch    setfiletype roslaunch
     autocmd! BufNewFile,BufRead package.xml setfiletype rospackage
 augroup END
index 9de99f674317eadb906b4690b2b621c92a75a9b8..68cd5da11feb1e5a38dd3d82062dae821015805e 100644 (file)
@@ -6,6 +6,6 @@ setlocal makeprg=makepkg\ -s
 setlocal errorformat=%f:\ line\ %l:\ %m
 
 nnoremap <Leader>u :UpdPkgSums<CR>
-nnoremap <Leader>r O# Maintainer: Samir Benmendil <samir.benmendil[at]gmail[dot]com><Esc>
+nnoremap <Leader>r O# Maintainer:  Samir Benmendil <samir.benmendil[at]gmail[dot]com><Esc>
 
 " vim: ft=vim
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c43b32e86697df6b3ff351dbc0057da927bfbb7f 100644 (file)
@@ -0,0 +1,9 @@
+augroup fs_roscpp
+    autocmd!
+    autocmd BufEnter *.cpp let b:fswitchdst  = 'h'
+    autocmd BufEnter *.cpp let b:fswitchlocs = 'reg:|src$|include/**|'
+    autocmd BufEnter *.h   let b:fswitchdst  = 'cpp'
+    autocmd BufEnter *.h   let b:fswitchlocs = 'reg:/include.*/src/'
+augroup END
+
+set makeprg=catkin_make\ -C$ROS_WORKSPACE
diff --git a/vim/ultisnips/PKGBUILD.snippets b/vim/ultisnips/PKGBUILD.snippets
new file mode 100644 (file)
index 0000000..ef52592
--- /dev/null
@@ -0,0 +1,23 @@
+snippet prep "prepare() function" b
+prepare() {
+       cd ${1:$pkgname-$pkgver}
+       $0
+}
+endsnippet
+
+snippet build "build() function" b
+build() {
+       cd ${1:$pkgname-$pkgver}
+       ./configure \
+               --prefix=/usr $2
+       $0
+}
+endsnippet
+
+snippet pack "package() function" b
+package() {
+       cd ${1:$pkgname-$pkgver}
+       make DESTDIR="$pkgdir" install
+       $0
+}
+endsnippet
index 618bfe3d8233026fcc10800acc0065a4da1e8082..d535228b2ae56c7dd55df62b7e24fac4892fddec 100644 (file)
@@ -67,16 +67,14 @@ snippet once "Include header once only guard"
 #ifndef ${1:`!p
 if not snip.c:
        import random, string
-       name = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()
-       rand = ''.join(random.sample(string.ascii_letters+string.digits, 8))
-       snip.rv = ('%s_%s' % (name,rand)).upper()
+       snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()
 else:
        snip.rv = snip.c`}
 #define $1
 
 ${VISUAL}${0}
 
-#endif /* end of include guard: $1 */
+#endif // $1
 endsnippet
 
 snippet td "Typedef"
index 23e9b8af20b489dab52a56fb59e7d43f5526ab91..17e2a1e946cc9581ffb873cd2fd45390fae8a9f0 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -42,9 +42,9 @@ Plugin 'derekwyatt/vim-fswitch'
 " Plugin 'powerman/vim-plugin-viewdoc'
 
 Plugin 'airblade/vim-gitgutter'
-Plugin 'Raimondi/delimitMate'
-Plugin 'SirVer/ultisnips'
-Plugin 'Lokaltog/vim-easymotion'
+Plugin 'raimondi/delimitmate'
+Plugin 'sirver/ultisnips'
+Plugin 'lokaltog/vim-easymotion'
 Plugin 'junegunn/vim-easy-align'
 Plugin 'chrisbra/checkattach'
 
@@ -232,12 +232,6 @@ augroup cursor_pos
                 \ endif
 augroup END
 
-" auto source vimrc when saved {{{2
-augroup source_vimrc
-    au!
-    autocmd bufwritepost vimrc source $MYVIMRC
-augroup END
-
 " bindings {{{1
 
 " allow both <space> and / to be <leader>
@@ -400,6 +394,13 @@ let g:checkattach_filebrowser = 'ranger'
 " Gundo {{{2
 nnoremap <F7> :GundoToggle<CR>
 
+" fswitch {{{2
+nnoremap <silent> <Leader>ff :FSHere<CR>
+nnoremap <silent> <Leader>fl :FSRight<CR>
+nnoremap <silent> <Leader>fh :FSLeft<CR>
+nnoremap <silent> <Leader>fL :FSSplitRight<CR>
+nnoremap <silent> <Leader>fH :FSSplitLeft<CR>
+
 " fugitive {{{2
 nmap <silent> <leader>dd :tab split \| Gdiff \| wincmd h<CR>
 " delete fugitive buffers when closed
@@ -457,9 +458,9 @@ let g:ycm_autoclose_preview_window_after_insertion = 1
 "let g:ycm_extra_conf_vim_data = ['%:p']
 nnoremap <leader>jd :YcmCompleter GoTo<CR>
 
-" vim-easy-align
+" vim-easy-align {{{2
 " start interactive EasyAlign in visual mode
-vnoremap <Enter> <Plug>(EasyAlign)
+vnoremap <CR> <Plug>(EasyAlign)
 
 " vim-json {{{2
 let g:vim_json_syntax_conceal = 0
index ba188217009cb151d2f7e952378053eb66934c10..ac15c2297f5316fdf57ff37e29ffae07cfc694d2 100644 (file)
@@ -19,19 +19,14 @@ def FlagsForFile( filename, **kwargs ):
   # '-fexceptions',
   # '-DNDEBUG',
   '-std=c++11',
-  '-stdlib=libc++',
+  '-stdlib=libstdc++',
   '-x', 'c++',
   '-I', '.',
   '-I', './include',
-  '-isystem', '/usr/include/c++/4.9.0',
-  '-isystem', '/usr/include/c++/4.9.0/x86_64-unknown-linux-gnu',
-  '-isystem', '/usr/include/c++/4.9.0/backward',
-  '-isystem', '/usr/lib/clang/3.4.1/include'
   ]
   flags += rospack()
   relative_to = cwd
   final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
-  print flags
 
   return {
     'flags': final_flags,
index ff8e363c454ff30a98b4df1c429923ebf34978d9..74219ca74808b827e64e3ec8590dfbaf05e135f1 100644 (file)
@@ -124,6 +124,9 @@ xkb_symbols "default" { //{{{1
     key <RGHT> { [           Right ] };
 
     modifier_map Control { <CAPS>, <LCTL> };
+
+    // includes {{{2
+    include "shift(both_capslock)"
 }; //}}}1
 
 partial
index 8cb322c9e0ad649572beacdd6ce78d34f9b82edf..988902d96e06a922e74c1c45d6aca2dd00d43677 100644 (file)
@@ -16,6 +16,8 @@ alias pacexp='sudo pacman -D --asexplicit'  # Mark package as explicit
 alias pacinsd='sudo pacman -S --asdeps'        # Install given package(s) as dependencies of another package
 alias pacmir='sudo pacman -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
 
+[[ -x /usr/bin/packer ]] && alias aur='packer'
+
 # https://bbs.archlinux.org/viewtopic.php?id=93683
 paclist() {
   pacman -Qei | awk 'BEGIN {FS=": "}/^Name/{printf("\033[1;36m%s\033[0m ",$2)}/^Description/{print $2}'
@@ -28,7 +30,7 @@ alias pacro='sudo pacman -Rnscu $(pacman -Qtdq)'
 # Display information about given packages (merges output of -Sii and -Qii)
 paci() {
     for p in $@; do
-        if [[ -n "$(pacman -Qq "$p" 2>/dev/null)" ]]; then 
+        if [[ -n "$(pacman -Qq "$p" 2>/dev/null)" ]]; then
             diff -u100 <(pacman -Qii "$p") <(pacman -Sii "$p" | sed '/^$/,$ d') | sed -e '1,3 d' -e 's/[-+ ]//'
         else
             pacman -Sii "$p"
@@ -52,8 +54,17 @@ pacdisowned() {
 
   pacman -Qlq | sort -u > "$db"
 
-  find /bin /etc /lib /sbin /usr \
-      ! \( -name lost+found -o -name local \) \
+  local -a d
+  if [[ -z $@ ]]; then
+    d=(/etc /usr)
+  else
+    d=($@)
+  fi
+  find ${d[@]} \
+      ! \( -name lost+found \
+        -o -path '*/local/*' \
+        -o -path "*/share/mime/*" \
+        \) \
         \( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
 
   comm -23 "$fs" "$db"
index 1fab1ae446a3c0ccac5af1981682277ef32b6d9f..64a94e63c583d476dc316dacffef70d16eac804b 100644 (file)
@@ -8,6 +8,7 @@ function ranger {
     /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
     test -f "$tempfile" &&
     if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
+        echo "$(cat "$tempfile")"
         cd -- "$(cat "$tempfile")"
     fi
     rm -f -- "$tempfile"