aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/qutebrowser/config.py25
-rw-r--r--config/rtorrent/rtorrent.rc10
-rw-r--r--config/xmonad/xmonad.hs4
-rwxr-xr-xconfig/zsh/zprofile3
-rwxr-xr-xtest22
5 files changed, 40 insertions, 24 deletions
diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py
index 44c724d..b069a8f 100644
--- a/config/qutebrowser/config.py
+++ b/config/qutebrowser/config.py
@@ -26,19 +26,20 @@ c.aliases = {
c.url.start_pages = ['https://searx.cacharle.xyz']
c.url.searchengines = {
- 'DEFAULT': 'https://searx.cacharle.xyz?q={}',
- 'd': 'https://duckduckgo.com/?q={}',
- 'g': 'https://google.com/?q={}',
- 'y': 'https://www.youtube.com/results?search_query={}',
- 'gh': 'https://github.com/search?q={}',
- 'h': 'https://hoogle.haskell.org/?hoogle={}',
- 'cpp': 'http://cplusplus.com/search.do?q={}',
- 'lar': 'https://www.larousse.fr/dictionnaires/francais/{}',
- 'pypi': 'https://pypi.org/search/?q={}',
- 'intra': 'https://profile.intra.42.fr/searches/search?query={}',
+ # 'DEFAULT': 'https://searx.cacharle.xyz?q={}',
+ 'DEFAULT': 'https://duckduckgo.com/?q={}',
+ 'd': 'https://duckduckgo.com/?q={}',
+ 'g': 'https://google.com/?q={}',
+ 'y': 'https://www.youtube.com/results?search_query={}',
+ 'gh': 'https://github.com/search?q={}',
+ 'h': 'https://hoogle.haskell.org/?hoogle={}',
+ 'cpp': 'http://cplusplus.com/search.do?q={}',
+ 'lar': 'https://www.larousse.fr/dictionnaires/francais/{}',
+ 'pypi': 'https://pypi.org/search/?q={}',
+ 'intra': 'https://profile.intra.42.fr/searches/search?query={}',
+ 'aw': 'https://wiki.archlinux.org/index.php?search={}'
}
-
c.fonts.default_family = ['Fira Mono', 'Baekmuk', 'Symbola']
c.fonts.hints = 'bold 11pt default_family'
@@ -83,6 +84,8 @@ if home_path is not None:
c.downloads.location.directory = download_path
c.downloads.remove_finished = 5000
+c.tabs.last_close = 'startpage'
+
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Solarized Dark scheme by Ethan Schoonover (modified by aramisgithub)
diff --git a/config/rtorrent/rtorrent.rc b/config/rtorrent/rtorrent.rc
new file mode 100644
index 0000000..f7c5df9
--- /dev/null
+++ b/config/rtorrent/rtorrent.rc
@@ -0,0 +1,10 @@
+directory.default.set = ~/data/torrent/dl
+
+session.path.set = ~/data/torrent/session
+
+schedule2 = watch_directory,5,5,load.start=~/data/torrent/watch/*.torrent
+
+dht.mode.set = auto
+dht.port.set = 6881
+
+# vim:ft=cfg
diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs
index 522549b..8c0ca56 100644
--- a/config/xmonad/xmonad.hs
+++ b/config/xmonad/xmonad.hs
@@ -49,8 +49,8 @@ manageHook' = insertPosition End Newer -- insert new window at the end of the c
keys' = [ ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down")
, ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up")
, ("<XF86AudioMute>", spawn "pulseaudio-ctl mute")
- , ("M-<F11>", spawn "pulseaudio-ctl down")
- , ("M-<F12>", spawn "pulseaudio-ctl up")
+ , ("M--", spawn "pulseaudio-ctl down")
+ , ("M-=", spawn "pulseaudio-ctl up")
, ("<XF86MonBrightnessUp>", spawn "backlight-ctl up")
, ("<XF86MonBrightnessDown>", spawn "backlight-ctl down")
diff --git a/config/zsh/zprofile b/config/zsh/zprofile
index 7895db6..fef0af7 100755
--- a/config/zsh/zprofile
+++ b/config/zsh/zprofile
@@ -23,6 +23,7 @@ export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $XDG_CONFIG_HOME/aspell/en.pws; repl $XDG_CONFIG_HOME/aspell/en.prepl"
+export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
# shellcheck disable=SC2016
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
@@ -31,10 +32,12 @@ export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GOPATH="$XDG_DATA_HOME/go"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
+export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
# cache
export HISTFILE="$XDG_CACHE_HOME/history"
export LESSHISTFILE='-' # no ~/.lesshst
export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python-eggs"
+export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
# runtime
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
diff --git a/test b/test
index 29f3b2d..ffe8ab4 100755
--- a/test
+++ b/test
@@ -5,20 +5,20 @@ set -o xtrace
ret=0
# SHELLCHECK
-shellcheck install || ret=$?
-shellcheck test || ret=$?
-shellcheck local/bin/* || ret=$?
-shellcheck -s sh config/zsh/.zshrc || ret=$?
-shellcheck -s sh config/zsh/aliases.zsh || ret=$?
-shellcheck -s sh -e SC2155 config/zsh/zprofile || ret=$?
-shellcheck -s sh config/x11/xinitrc || ret=$?
+shellcheck install || ret=$?
+shellcheck test || ret=$?
+shellcheck local/bin/* || ret=$?
+shellcheck -s sh config/zsh/.zshrc || ret=$?
+shellcheck -s sh config/zsh/aliases.zsh || ret=$?
+shellcheck -s sh -e SC2155 config/zsh/zprofile || ret=$?
+shellcheck -s sh config/x11/xinitrc || ret=$?
# VINT
-vint -s config/vim/vimrc || ret=$?
-vint -s config/vim/pluggins.vim || ret=$?
+vint -s config/vim/vimrc || ret=$?
+vint -s config/vim/pluggins.vim || ret=$?
# FLAKE8
-flake8 --ignore F821,E501,W504,N816 config/qutebrowser/config.py || ret=$?
-flake8 --ignore W504 config/python/startup.py || ret=$?
+flake8 --ignore F821,E501,W504,N816,E241 config/qutebrowser/config.py || ret=$?
+flake8 --ignore W504 config/python/startup.py || ret=$?
exit $ret