diff options
-rwxr-xr-x | bin/bin/dot | 48 | ||||
-rwxr-xr-x | bin/bin/dyndns | 5 | ||||
-rwxr-xr-x | bin/bin/keyboard | 3 | ||||
-rwxr-xr-x | bin/bin/swap | 16 | ||||
-rw-r--r-- | crontab/crontab | 2 | ||||
-rw-r--r-- | info/.infokey | 14 | ||||
-rw-r--r-- | khal/.config/khal/khal.conf | 10 | ||||
-rw-r--r-- | newsbeuter/.config/newsbeuter/cache.db | bin | 71680 -> 0 bytes | |||
-rw-r--r-- | newsbeuter/.config/newsbeuter/config | 25 | ||||
-rw-r--r-- | newsbeuter/.config/newsbeuter/history.cmdline | 3 | ||||
-rw-r--r-- | newsbeuter/.config/newsbeuter/history.search | 0 | ||||
l--------- | newsbeuter/.config/newsbeuter/urls | 1 | ||||
-rw-r--r-- | qutebrowser/.config/qutebrowser/keys.conf | 15 | ||||
-rw-r--r-- | qutebrowser/.config/qutebrowser/qutebrowser.conf | 22 | ||||
-rw-r--r-- | vdirsyncer/.config/vdirsyncer/.gitignore | 1 | ||||
-rw-r--r-- | vdirsyncer/.config/vdirsyncer/config | 20 | ||||
-rw-r--r-- | vim/.vimrc | 2 |
17 files changed, 67 insertions, 120 deletions
diff --git a/bin/bin/dot b/bin/bin/dot deleted file mode 100755 index acb0e64..0000000 --- a/bin/bin/dot +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -get_links() -{ - find $HOME -not -path "$HOME/dotfiles/*" -type l | while read line; do - if [[ "$(realpath -q $line)" == "${HOME}/dotfiles/"* ]]; then - echo $line - fi - done -} - -clean() -{ - get_links | while read link; do - rm -v ${link} - done -} - -down() -{ - source $HOME/dotfiles/.dotmap - for link in "${!dotmap[@]}"; do - echo "Removing ${link}." - rm -rf $link - done -} - -up() -{ - source $HOME/dotfiles/.dotmap - for link in "${!dotmap[@]}"; do - target=${dotmap[$link]} - mkdir -p $(dirname ${link}) - echo "Linking $target." - rm -rf $link && ln -s $target $link - done -} - -save() -{ - echo "declare -A dotmap" > .dotmap - get_links | while read link; do - echo "dotmap[$link]=$(readlink -f -q $link)" | sed "s#$HOME#"'$HOME#g' >> .dotmap - done - sort .dotmap -o .dotmap -} - -$1 diff --git a/bin/bin/dyndns b/bin/bin/dyndns deleted file mode 100755 index 8d1f553..0000000 --- a/bin/bin/dyndns +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -PASSWORD=$(pass show email/urbain@vaes.uk) - -curl -4 -X PUT --user "urbain@vaes.uk:$PASSWORD" https://box.bknguyen.org/admin/dns/custom/urbainvaes.com diff --git a/bin/bin/keyboard b/bin/bin/keyboard index d00035b..45d9972 100755 --- a/bin/bin/keyboard +++ b/bin/bin/keyboard @@ -30,6 +30,9 @@ xmodmap -e "keysym g = g G 7" xmodmap -e "keysym c = c C 8" xmodmap -e "keysym r = r R 9" +# Special characters +xmodmap -e "keysym XF86Eject = Insert" + # Xcape settings killall -9 xcape diff --git a/bin/bin/swap b/bin/bin/swap deleted file mode 100755 index 4c17dc7..0000000 --- a/bin/bin/swap +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/python - -import i3 -outputs = i3.get_outputs() -print(outputs[0]) - -# set current workspace to output 0 -i3.workspace(outputs[0]['current_workspace']) - -# ..and move it to the other output. -# outputs wrap, so the right of the right is left ;) -i3.command('move', 'workspace to output right') - -# rinse and repeat -i3.workspace(outputs[1]['current_workspace']) -i3.command('move', 'workspace to output right') diff --git a/crontab/crontab b/crontab/crontab new file mode 100644 index 0000000..a6b27a3 --- /dev/null +++ b/crontab/crontab @@ -0,0 +1,2 @@ +*/5 * * * * /home/urbain/bin/email >> /home/urbain/.cron_email_log +*/5 * * * * /usr/bin/vdirsyncer sync >> /home/urbain/.cron_calendar_log diff --git a/info/.infokey b/info/.infokey index 0433909..9c34cc4 100644 --- a/info/.infokey +++ b/info/.infokey @@ -3,16 +3,18 @@ j next-line k prev-line l forward-char h backward-char -^f scroll-forward -^b scroll-backward g beginning-of-node G end-of-node -^o history-node -} next-node -{ prev-node u up-node t top-node d dir-node -/ search n search-next N search-previous +m menu-item +} next-node +{ prev-node +/ search +^f scroll-forward +^b scroll-backward +^c abort-key +^o history-node diff --git a/khal/.config/khal/khal.conf b/khal/.config/khal/khal.conf new file mode 100644 index 0000000..27c90ec --- /dev/null +++ b/khal/.config/khal/khal.conf @@ -0,0 +1,10 @@ +[calendars] + + [[home]] + path = ~/.calendars/home/ + color = dark green + +[default] + default_calendar = home + print_new = event + timedelta = 7d diff --git a/newsbeuter/.config/newsbeuter/cache.db b/newsbeuter/.config/newsbeuter/cache.db Binary files differdeleted file mode 100644 index a92771b..0000000 --- a/newsbeuter/.config/newsbeuter/cache.db +++ /dev/null diff --git a/newsbeuter/.config/newsbeuter/config b/newsbeuter/.config/newsbeuter/config deleted file mode 100644 index 84a1546..0000000 --- a/newsbeuter/.config/newsbeuter/config +++ /dev/null @@ -1,25 +0,0 @@ -# Dark solarized color scheme for newsbeuter, based on -# Ethan Schoonover's Solarized. -# -# In order to use this color scheme, you must first configure -# your terminal emulator to use the Solarized palette. -# See <http://ethanschoonover.com/solarized/> for more information. - -color background default default -color listnormal default default -color listfocus black yellow -color info default black -color article default default - -# highlights -highlight article "^(Title):.*$" blue default -highlight article "https?://[^ ]+" red default -highlight article "\\[image\\ [0-9]+\\]" green default - -# vim-like navigation -bind-key j down -bind-key k up -bind-key h left -bind-key l right - -browser "qutebrowser %u" diff --git a/newsbeuter/.config/newsbeuter/history.cmdline b/newsbeuter/.config/newsbeuter/history.cmdline deleted file mode 100644 index aed4974..0000000 --- a/newsbeuter/.config/newsbeuter/history.cmdline +++ /dev/null @@ -1,3 +0,0 @@ -q -q -q diff --git a/newsbeuter/.config/newsbeuter/history.search b/newsbeuter/.config/newsbeuter/history.search deleted file mode 100644 index e69de29..0000000 --- a/newsbeuter/.config/newsbeuter/history.search +++ /dev/null diff --git a/newsbeuter/.config/newsbeuter/urls b/newsbeuter/.config/newsbeuter/urls deleted file mode 120000 index 777955c..0000000 --- a/newsbeuter/.config/newsbeuter/urls +++ /dev/null @@ -1 +0,0 @@ -../../../../personal/newsbeuter/urls
\ No newline at end of file diff --git a/qutebrowser/.config/qutebrowser/keys.conf b/qutebrowser/.config/qutebrowser/keys.conf index e441f4e..d8f070c 100644 --- a/qutebrowser/.config/qutebrowser/keys.conf +++ b/qutebrowser/.config/qutebrowser/keys.conf @@ -168,13 +168,13 @@ hint images tab hint images tab-bg .i -hint links fill ":open {hint-url}" +hint links fill :open {hint-url} ;o -hint links fill ":open -t {hint-url}" +hint links fill :open -t {hint-url} ;O -hint links fill ":open -b {hint-url}" +hint links fill :open -b {hint-url} .o hint links yank @@ -434,6 +434,12 @@ yank -p yank -ps yP +hint inputs + ;t + +repeat-command + . + [insert] # Keybindings for insert mode. # Since normal keypresses are passed through, only special keys are @@ -529,6 +535,9 @@ prompt-yes prompt-no n +prompt-open-download + <ctrl-x> + [command,prompt] rl-backward-char diff --git a/qutebrowser/.config/qutebrowser/qutebrowser.conf b/qutebrowser/.config/qutebrowser/qutebrowser.conf index f635c74..9944be4 100644 --- a/qutebrowser/.config/qutebrowser/qutebrowser.conf +++ b/qutebrowser/.config/qutebrowser/qutebrowser.conf @@ -34,11 +34,6 @@ # smart: Search case-sensitively if there are capital chars # Default: smart # -# wrap-search (Bool): -# Whether to wrap finding text to the top when arriving at the end. -# Valid values: true, false -# Default: true -# # startpage (List): # The default page(s) to open at the start, separated by commas. # Default: https://duckduckgo.com @@ -153,7 +148,6 @@ # Valid values: host, path, query, anchor # Default: path,query ignore-case = smart -wrap-search = true startpage = about:blank default-page = https://startpage.com auto-search = naive @@ -190,6 +184,11 @@ url-incdec-segments = path,query # Valid values: top, bottom # Default: top # +# status-position (VerticalPosition): +# The position of the status bar. +# Valid values: top, bottom +# Default: bottom +# # message-timeout (Int): # Time (in ms) to show messages in the statusbar for. # Default: 2000 @@ -208,11 +207,6 @@ url-incdec-segments = path,query # never: Never show a confirmation. # Default: never # -# display-statusbar-messages (Bool): -# Whether to display javascript statusbar messages. -# Valid values: true, false -# Default: false -# # zoom-text-only (Bool): # Whether the zoom factor on a frame applies only to the text or to # all content. @@ -264,6 +258,7 @@ url-incdec-segments = path,query # otherwise. # * `{id}`: The internal window ID of this window. # * `{scroll_pos}`: The page scroll position. +# * `{host}`: The host of the current web page. # Default: {perc}{title}{title_sep}qutebrowser # # hide-mouse-cursor (Bool): @@ -289,10 +284,10 @@ url-incdec-segments = path,query zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% default-zoom = 100% downloads-position = top +status-position = bottom message-timeout = 2000 message-unfocused = false confirm-quit = never -display-statusbar-messages = false zoom-text-only = false frame-flattening = false user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } @@ -619,6 +614,7 @@ mouse-zoom-divider = 512 # * `{index}`: The index of this tab. # * `{id}`: The internal tab ID of this tab. # * `{scroll_pos}`: The page scroll position. +# * `{host}`: The host of the current web page. # Default: {index}: {title} # # title-alignment (TextAlignment): @@ -993,7 +989,7 @@ DEFAULT = https://duckduckgo.com/?q={} # Colors used in the UI. # A value can be in one of the following format: # * `#RGB`/`#RRGGBB`/`#RRRGGGBBB`/`#RRRRGGGGBBBB` -# * A SVG color name as specified in http://www.w3.org/TR/SVG/types.html#ColorKeywords[the W3C specification]. +# * An SVG color name as specified in http://www.w3.org/TR/SVG/types.html#ColorKeywords[the W3C specification]. # * transparent (no color) # * `rgb(r, g, b)` / `rgba(r, g, b, a)` (values 0-255 or percentages) # * `hsv(h, s, v)` / `hsva(h, s, v, a)` (values 0-255, hue 0-359) diff --git a/vdirsyncer/.config/vdirsyncer/.gitignore b/vdirsyncer/.config/vdirsyncer/.gitignore new file mode 100644 index 0000000..8be5547 --- /dev/null +++ b/vdirsyncer/.config/vdirsyncer/.gitignore @@ -0,0 +1 @@ +status diff --git a/vdirsyncer/.config/vdirsyncer/config b/vdirsyncer/.config/vdirsyncer/config new file mode 100644 index 0000000..0b2b070 --- /dev/null +++ b/vdirsyncer/.config/vdirsyncer/config @@ -0,0 +1,20 @@ +[general] +status_path = ~/.config/vdirsyncer/status/ + +# CALDAV +[pair calendar] +a = calendar_local +b = calendar_remote +collections = ["from b"] +conflict_resolution = b wins + +[storage calendar_local] +type = filesystem +path = ~/.calendars/ +fileext = .ics + +[storage calendar_remote] +type = caldav +url = "https://cal.urbainvaes.com/" +username = urbain +password.fetch = ["command", "pass", "show", "radicale/urbain"] @@ -271,6 +271,8 @@ nnoremap cqc :cclose<cr> nnoremap got :call system('urxvt -cd '.getcwd().' &')<cr> nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &')<cr> +nnoremap gof :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &')<cr> +nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &')<cr> nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR> nnoremap Y y$ |