summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-06-02 15:52:22 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-06-02 15:52:22 +0100
commitf95228386a99b792f1af386e5e2055ba56042cbb (patch)
treeb981b7d48fb2012caf9a884756438eb4ab6b14ea
parentab40b0d0bd02834507622951f33431329e20e456 (diff)
Add various changes
-rw-r--r--i3/.config/i3/config12
-rw-r--r--mutt/.mutt/mailcap3
-rw-r--r--qutebrowser/.config/qutebrowser/qutebrowser.conf2
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw8
4 files changed, 13 insertions, 12 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 669111e..76c5cba 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -62,7 +62,7 @@ bindsym $mod+v split h
bindsym $mod+w split v
# enter fullscreen mode for the focused container
-bindsym $mod+f fullscreen
+bindsym $mod+z fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+g layout stacking
@@ -70,10 +70,10 @@ bindsym $mod+t layout tabbed
bindsym $mod+s layout toggle split
# toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
+bindsym $mod+Shift+f floating toggle
# change focus between tiling / floating windows
-bindsym $mod+space focus mode_toggle
+bindsym $mod+f focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
@@ -183,13 +183,13 @@ bindsym XF86AudioPlay exec $HOME/bin/touchpad
bindsym $mod+n exec $HOME/bin/workspace n
bindsym $mod+Shift+n exec $HOME/bin/workspace m
bindsym $mod+semicolon exec --no-startup-id $HOME/bin/run
-bindsym $mod+apostrophe exec --no-startup-id $HOME/bin/tmux_attach
-bindsym $mod+z exec --no-startup-id $HOME/bin/references
+bindsym $mod+e exec --no-startup-id $HOME/bin/tmux_attach
+bindsym $mod+o exec --no-startup-id $HOME/bin/references
bindsym $mod+Escape exec --no-startup-id "i3lock -c 000000 && systemctl suspend"
bindsym $mod+x exec --no-startup-id "rofi -show window"
# bindsym $mod+y
# bindsym $mod+z
-# bindsym $mod+e
+# bindsym $mod+'
# bindsym $mod+m exec --no-startup-id $HOME/bin/i3-shell
for_window [class="^.*"] border pixel 2
diff --git a/mutt/.mutt/mailcap b/mutt/.mutt/mailcap
index 9761e41..2dbe365 100644
--- a/mutt/.mutt/mailcap
+++ b/mutt/.mutt/mailcap
@@ -1,4 +1,5 @@
-text/html; mv %s %s.html && firefox %s.html >/dev/null 2>/dev/null; needsterminal;
+# text/html; mv %s %s.html && firefox %s.html >/dev/null 2>/dev/null; needsterminal;
+text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal;
text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput
text/plain; more %s;
image/*; feh %s
diff --git a/qutebrowser/.config/qutebrowser/qutebrowser.conf b/qutebrowser/.config/qutebrowser/qutebrowser.conf
index e8c00a3..e352b29 100644
--- a/qutebrowser/.config/qutebrowser/qutebrowser.conf
+++ b/qutebrowser/.config/qutebrowser/qutebrowser.conf
@@ -399,7 +399,7 @@ prompt-filebrowser = true
do-not-track = true
accept-language = en-US,en
referer-header = same-domain
-user-agent =
+user-agent = Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
proxy = system
proxy-dns-requests = true
ssl-strict = ask
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw b/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw
index 9bd6795..87ee28b 100755
--- a/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw
@@ -2,17 +2,17 @@
DEFAULT_SEARCH=startpage
-if [[ $1 =~ ^-.$ ]]; then
+if [[ "$1" =~ ^-.$ ]]; then
option="$1"
shift 1
fi
is_elvi=$(surfraw -elvi | grep -c "^$1\s")
-nbr_words=$(echo $1 | wc -w)
+nbr_words=$(echo "$1" | wc -w)
-if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ($1 == *.* || $1 == *:*) ]]; then
+if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ("$1" == *.* || "$1" == *:*) ]]; then
url="$1"
-else
+else
[[ $is_elvi -eq 0 ]] && sr="$DEFAULT_SEARCH $*" || sr=$*
url=$(surfraw -print $sr)
fi