-[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
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)
-- 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),
-- {{{ 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.
+++ /dev/null
-#!/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
"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" },
--- /dev/null
+/* make sure background is set when viewing only image */
+body {
+ background-color : #1c1c1c !important
+}
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"
}
--- /dev/null
+watch_later
--- /dev/null
+# default
+ytdl
+cache=auto
+cache-default=50000
+cache-initial=100
+
+# profiles
+[mimeo]
+quiet
--- /dev/null
+a cycle_values video-aspect "16:9" "16:10" "4:3" "2.35:1" "-1"
--- /dev/null
+# 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
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)
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
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
+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
--- /dev/null
+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
#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"
" 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'
\ 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>
" 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
"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
# '-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,
key <RGHT> { [ Right ] };
modifier_map Control { <CAPS>, <LCTL> };
+
+ // includes {{{2
+ include "shift(both_capslock)"
}; //}}}1
partial
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}'
# 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"
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"
/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"