commit 9969de88f325de4bd72be877edd23635f6a3815a
parent 9b47f9f2eb008485d4eccbc079b01112c0c282b6
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date: Tue, 21 Jan 2020 00:12:48 -0800
dont remember
Diffstat:
6 files changed, 72 insertions(+), 5 deletions(-)
diff --git a/ncmpcpp/.config/ncmpcpp/error.log b/ncmpcpp/.config/ncmpcpp/error.log
diff --git a/qutebrowser/.config/qutebrowser/autoconfig.yml b/qutebrowser/.config/qutebrowser/autoconfig.yml
@@ -6,7 +6,18 @@
config_version: 2
settings:
- tabs.title.alignment:
- global: left
- tabs.title.format:
- global: '{index}: {current_title}'
+ bindings.commands:
+ global:
+ normal:
+ <Ctrl+j>: scroll-px 0 40
+ <Ctrl+k>: scroll-px 0 -40
+ <F11>: nop
+ J: tab-prev
+ K: tab-next
+ Z: zoom-out
+ b: spawn -u bookmarks --open
+ ctrl+j: scroll-px 0 40
+ h: tab-prev
+ l: tab-next
+ m: spawn -u bookmarks --edit
+ z: zoom-in
diff --git a/qutebrowser/.config/qutebrowser/bookmarks/urls b/qutebrowser/.config/qutebrowser/bookmarks/urls
@@ -9,3 +9,8 @@ https://xmonad.org/documentation.html xmonad documentation
htpps://coub.com coub
https://bandcamp.com/ Bandcamp
http://www.gutenberg.org/wiki/Main_Page Gutenberg
+https://www.tutorialspoint.com/r/r_decision_making.htm R - Decision making - Tutorialspoint
+https://www.tutorialspoint.com/r/r_functions.htm R - Functions - Tutorialspoint
+https://www.tutorialspoint.com/r/r_lists.htm R - Lists - Tutorialspoint
+https://duckduckgo.com/ DuckDuckGo — Privacy, simplified.
+http://www.linuxfromscratch.org/ Welcome to Linux From Scratch!
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
@@ -384,8 +384,9 @@ config.bind('<F11>', 'nop')
config.bind('J', 'tab-prev')
config.bind('K', 'tab-next')
config.bind('Z', 'zoom-out')
+config.bind('b', 'spawn -u bookmarks --open')
config.bind('ctrl+j', 'scroll-px 0 40')
-config.bind('e', 'spawn -u view_in_mpv')
config.bind('h', 'tab-prev')
config.bind('l', 'tab-next')
+config.bind('m', 'spawn -u bookmarks --edit')
config.bind('z', 'zoom-in')
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks b/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks
@@ -0,0 +1,15 @@
+#!/bin/dash
+# Jacob Edwards, 2020
+# crappy but works (unless you have two entries with same name)
+
+config="$XDG_CONFIG_HOME/bookmarks/bookmarks"
+
+if [ "$1" = '--open' ]; then
+ link="$( cut -d ' ' -f 2-10 "$config" | dmenu -p 'open' )"
+ if [ -z "$link" ]; then
+ exit 0
+ fi
+ xdg-open "$( grep "^.* $link" $config | awk '{print $1}' )"
+elif [ "$1" = '--edit' ]; then
+ "$TERMINAL" -e "$EDITOR" "$config"
+fi
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks.old b/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks.old
@@ -0,0 +1,35 @@
+#!/bin/dash
+# Jacob Edwards, 2020
+# external program.
+config="$XDG_CONFIG_HOME/bookmarks/"
+cd "$config"
+
+open(){
+ if [ "$1" = '--open' ]; then
+ if [ "$( wc -l "$selection" | awk '{print $1}' )" -eq 1 ]; then
+ xdg-open "$( cat "$selection" | awk '{print $1}' )"
+ else
+ link="$( cat "$selection" | cut -d ' ' -f 2 | dmenu )"
+ link="$( cat "$selection" | grep "$link" | cut -d ' ' -f 2 | dmenu )"
+ xdg-open "$link"
+ fi
+ elif [ "$1" = '--edit' ]; then
+ "$TERMINAL" -e "$EDITOR" "$selection"
+ fi
+
+ exit 0
+}
+
+
+get_input(){
+ selection="$( fd -t f | dmenu -p "$( echo "$1" | tail -c +3 ) ")"
+ if [ -z "$selection" ]; then
+ exit 0
+ else
+ open "$1"
+ fi
+}
+
+
+
+get_input "$1"