summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i3/.config/i3/config9
-rw-r--r--qutebrowser/.config/qutebrowser/keys.conf7
-rw-r--r--qutebrowser/.config/qutebrowser/qutebrowser.conf10
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/tab-switch6
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/zathura-open3
5 files changed, 24 insertions, 11 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 2693c5e..669111e 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -165,6 +165,7 @@ bindsym $mod+period workspace next
bindsym $mod+b exec --no-startup-id qutebrowser
bindsym $mod+i exec $HOME/bin/vimin
bindsym Print exec xfce4-screenshooter
+
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-
@@ -182,9 +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+e exec --no-startup-id $HOME/bin/tmux_attach
-bindsym $mod+o exec --no-startup-id $HOME/bin/references
+bindsym $mod+apostrophe exec --no-startup-id $HOME/bin/tmux_attach
+bindsym $mod+z 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+m exec --no-startup-id $HOME/bin/i3-shell
for_window [class="^.*"] border pixel 2
diff --git a/qutebrowser/.config/qutebrowser/keys.conf b/qutebrowser/.config/qutebrowser/keys.conf
index 805bd58..8fd0d48 100644
--- a/qutebrowser/.config/qutebrowser/keys.conf
+++ b/qutebrowser/.config/qutebrowser/keys.conf
@@ -55,7 +55,10 @@ set-cmd-text -s :spawn --userscript url-from-surfraw
set-cmd-text -s :spawn --userscript url-from-surfraw -t
t
-set-cmd-text -s :spawn mpv {url}
+spawn --userscript tab-switch
+ T
+
+spawn mpv {url}
y
set-cmd-text :open {url}
@@ -125,7 +128,7 @@ back
forward
L
-hint
+hint all current
f
hint all tab
diff --git a/qutebrowser/.config/qutebrowser/qutebrowser.conf b/qutebrowser/.config/qutebrowser/qutebrowser.conf
index fe787c5..29edcc2 100644
--- a/qutebrowser/.config/qutebrowser/qutebrowser.conf
+++ b/qutebrowser/.config/qutebrowser/qutebrowser.conf
@@ -330,7 +330,7 @@ user-stylesheet =
hide-scrollbar = true
css-media-type =
smooth-scrolling = false
-remove-finished-downloads = -1
+remove-finished-downloads = 10
hide-statusbar = false
statusbar-padding = 1,1,0,0
window-title-format = {perc}{title}{title_sep}qutebrowser
@@ -691,7 +691,7 @@ position = top
show-favicons = false
width = 20%
indicator-width = 3
-tabs-are-windows = false
+tabs-are-windows = true
title-format = {index}: {title}
title-alignment = left
mousewheel-tab-switching = true
@@ -1399,11 +1399,11 @@ statusbar.url.fg.error = orange
statusbar.url.fg.warn = yellow
statusbar.url.fg.hover = aqua
tabs.fg.odd = white
-tabs.bg.odd = grey
+tabs.bg.odd = black
tabs.fg.even = white
-tabs.bg.even = darkgrey
+tabs.bg.even = black
tabs.fg.selected.odd = white
-tabs.bg.selected.odd = black
+tabs.bg.selected.odd = darkgreen
tabs.fg.selected.even = ${tabs.fg.selected.odd}
tabs.bg.selected.even = ${tabs.bg.selected.odd}
tabs.bg.bar = #555555
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/tab-switch b/qutebrowser/.local/share/qutebrowser/userscripts/tab-switch
new file mode 100755
index 0000000..b82ed36
--- /dev/null
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/tab-switch
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+tabs=$(i3-msg -t get_tree | grep -o '"window":[0-9]*[^{]*{[^}]*qutebrowser[^}]*}')
+selected_title=$(echo "$tabs" | sed 's/^.*title":"\(.*\) - qutebrowser.*/\1/g' | dmenu)
+selected_id=$(echo "$tabs" | grep "$selected_title" | sed 's/^.*window":\([0-9]*\).*$/\1/')
+i3-msg "[id=$selected_id] focus"
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open
index 69b9dd1..088eff2 100755
--- a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open
@@ -2,6 +2,5 @@
fname=/tmp/${RANDOM}.pdf
-echo ${QUTE_URL} > ~/testurl
-curl ${QUTE_URL} > ~/test.pdf
+curl ${QUTE_URL%.pdf}.pdf > ~/test.pdf
nohup zathura ~/test.pdf