From 3dee1f08f1a0b7be5e7f6fcbbc20861de5fea2a1 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 8 Sep 2016 11:38:50 +0100 Subject: [keyboard] Add mapping for Insert --- bin/bin/keyboard | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3 From 71a953f8f659d7dab2918a9080ff069cac7d495a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 8 Sep 2016 11:40:16 +0100 Subject: [info] Rearrange configuration file --- info/.infokey | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- cgit v1.2.3 From 71f5e8324147bc1dcc63f900cb4655cb42036caa Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Sep 2016 13:53:57 +0100 Subject: Add khal + vdirsyncer configurations --- crontab/crontab | 2 ++ khal/.config/khal/khal.conf | 10 ++++++++++ vdirsyncer/.config/vdirsyncer/.gitignore | 1 + vdirsyncer/.config/vdirsyncer/config | 20 ++++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 crontab/crontab create mode 100644 khal/.config/khal/khal.conf create mode 100644 vdirsyncer/.config/vdirsyncer/.gitignore create mode 100644 vdirsyncer/.config/vdirsyncer/config 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/khal/.config/khal/khal.conf b/khal/.config/khal/khal.conf new file mode 100644 index 0000000..3be1d2b --- /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 = 30d 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"] -- cgit v1.2.3 From c40a53fb9804545c3d7fe0cebf32244eb6c1bf76 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Sep 2016 14:17:23 +0100 Subject: Integrate qutebrowser upstream changes --- qutebrowser/.config/qutebrowser/keys.conf | 15 ++++++++++++--- qutebrowser/.config/qutebrowser/qutebrowser.conf | 22 +++++++++------------- 2 files changed, 21 insertions(+), 16 deletions(-) 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 + + [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) -- cgit v1.2.3 From ec1b5a57e30d08093795cd0148730516f8f8da90 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Sep 2016 16:05:08 +0100 Subject: Remove newsbeuter configuration --- newsbeuter/.config/newsbeuter/cache.db | Bin 71680 -> 0 bytes newsbeuter/.config/newsbeuter/config | 25 ------------------------- newsbeuter/.config/newsbeuter/history.cmdline | 3 --- newsbeuter/.config/newsbeuter/history.search | 0 newsbeuter/.config/newsbeuter/urls | 1 - 5 files changed, 29 deletions(-) delete mode 100644 newsbeuter/.config/newsbeuter/cache.db delete mode 100644 newsbeuter/.config/newsbeuter/config delete mode 100644 newsbeuter/.config/newsbeuter/history.cmdline delete mode 100644 newsbeuter/.config/newsbeuter/history.search delete mode 120000 newsbeuter/.config/newsbeuter/urls diff --git a/newsbeuter/.config/newsbeuter/cache.db b/newsbeuter/.config/newsbeuter/cache.db deleted file mode 100644 index a92771b..0000000 Binary files a/newsbeuter/.config/newsbeuter/cache.db and /dev/null differ 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 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 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 -- cgit v1.2.3 From a306594af82b16c0fd319ff3c3b2df94c9d07fc7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Sep 2016 18:12:59 +0100 Subject: [khal] Reduce default timedelta --- khal/.config/khal/khal.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khal/.config/khal/khal.conf b/khal/.config/khal/khal.conf index 3be1d2b..27c90ec 100644 --- a/khal/.config/khal/khal.conf +++ b/khal/.config/khal/khal.conf @@ -7,4 +7,4 @@ [default] default_calendar = home print_new = event - timedelta = 30d + timedelta = 7d -- cgit v1.2.3 From 8cd9e65747d0d7b956d0fe46708cdb64a8c265de Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 10 Sep 2016 22:51:03 +0100 Subject: Delete unused scripts --- bin/bin/dot | 48 ------------------------------------------------ bin/bin/dyndns | 5 ----- bin/bin/swap | 16 ---------------- 3 files changed, 69 deletions(-) delete mode 100755 bin/bin/dot delete mode 100755 bin/bin/dyndns delete mode 100755 bin/bin/swap 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/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') -- cgit v1.2.3 From 2d391edd4d38e024519718104962a0825478c26d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 10 Sep 2016 22:51:35 +0100 Subject: [vim] Add mappings to open vifm --- vim/.vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 25a5cbe..4c937ff 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -270,6 +270,8 @@ nnoremap cqc :cclose nnoremap got :call system('urxvt -cd '.getcwd().' &') nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &') +nnoremap gof :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') +nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') nnoremap h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp, nnoremap Y y$ -- cgit v1.2.3