summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ar/.config/lf/lfrc2
-rw-r--r--ar/.config/newsboat/config10
-rwxr-xr-xar/.local/bin/refreshbrowser42
-rw-r--r--global/.local/share/applications/html.desktop2
-rw-r--r--global/.local/share/thesiah/keys/calcurse6
-rw-r--r--global/.local/share/thesiah/keys/mutt57
-rw-r--r--global/.local/share/thesiah/keys/ncmpcpp26
-rw-r--r--global/.local/share/thesiah/keys/newsboat40
-rw-r--r--global/.local/share/thesiah/keys/nsxiv20
-rw-r--r--global/.local/share/thesiah/keys/zathura24
10 files changed, 142 insertions, 87 deletions
diff --git a/ar/.config/lf/lfrc b/ar/.config/lf/lfrc
index 3955b0d..1114d3c 100644
--- a/ar/.config/lf/lfrc
+++ b/ar/.config/lf/lfrc
@@ -294,7 +294,7 @@ cmd open ${{
done &
;;
text/csv|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) sc-im $fx;;
- text/html|text/xml) lynx $fx;;
+ text/html|text/xml) w3m $fx;;
text/troff) groff -mom $fx -Tpdf | zathura - ;;
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
video/*) setsid -f mpv -quiet $f >/dev/null 2>&1 ;;
diff --git a/ar/.config/newsboat/config b/ar/.config/newsboat/config
index 8e2d56f..6c91477 100644
--- a/ar/.config/newsboat/config
+++ b/ar/.config/newsboat/config
@@ -28,16 +28,16 @@ macro a set browser "tsp yt-dlp --embed-metadata -xic -f bestvideo*+bestaudio/be
macro c set browser "clonerepo" ; open-in-browser ; set browser linkhandler ; -- "Clone a git repo"
macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler ; -- "Open dmenu handler"
macro e set browser "nvim ~/.config/newsboat/config" ; open-in-browser ; set browser linkhandler ; -- "Open newsboat config"
-macro l set browser "lynx" ; open-in-browser ; set browser linkhandler ; -- "Open url in lynx"
-macro m set browser "mpc add $(yt-dlp -f bestaudio --get-url %u | tail -n 1) && mpc play" ; open-in-browser ; -- "Play url"
+macro l set browser "lynx" ; open-in-browser ; set browser linkhandler ; -- "Open link in lynx"
+macro m set browser "mpc add $(yt-dlp -f bestaudio --get-url %u | tail -n 1) && mpc play" ; open-in-browser ; -- "Play link in mpc"
macro M set browser "qndl -m" ; open-in-browser ; set browser linkhandler ; -- "Download a music file via taskspooler"
-macro o open-in-browser ; -- "Open url based on types"
+macro o open-in-browser ; -- "Open link based on types"
macro t set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler ; -- "Peertube torrent 480p"
macro T set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler ; -- "Peertube torrent 1080p"
macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler ; -- "Play a video"
macro V set browser "qndl -v" ; open-in-browser ; set browser linkhandler ; -- "Download a video file via taskspooler"
-macro w set browser "setsid -f $BROWSER" ; open-in-browser ; set browser linkhandler ; -- "Open url in browser"
-macro y set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler ; -- "Copy url to clipboard"
+macro w set browser "w3m" ; open-in-browser ; set browser linkhandler ; -- "Open link in w3m"
+macro y set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler ; -- "Copy link to clipboard"
macro Y set browser "pipe-viewer --comments=%u" ; open-in-browser ; set browser linkhandler -- "Open youtube comments via pipe-viewer"
# Colors
diff --git a/ar/.local/bin/refreshbrowser b/ar/.local/bin/refreshbrowser
new file mode 100755
index 0000000..4b1812d
--- /dev/null
+++ b/ar/.local/bin/refreshbrowser
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+######################################################################
+# @author : Gavin Jaeger-Freeborn (gavinfreeborn@gmail.com)
+# @file : test.sh
+# @created : Wed 25 Mar 2020 05:49:29 PM
+#
+# @description : simple xdotool script used to reload browsers
+######################################################################
+
+browserclass="${BROWSER:-firefox}"
+
+#=== FUNCTION ======================================================
+# NAME: moveto
+# DESCRIPTION: move to the center of the specified window id
+#=====================================================================
+moveto() {
+ geom=$(xdotool getwindowgeometry "${1}")
+ local=$(echo "${geom}" | awk NR==2 | cut -d: -f 2 | cut -d\( -f 1)
+ dimentions=$(echo "${geom}" | awk NR==3 | cut -d: -f 2 | cut -d\( -f 1 | cut -d, -f1)
+ x=$(echo "${local}" | cut -d, -f1)
+ y=$(echo "${local}" | cut -d, -f2)
+ w=$(echo "${dimentions}" | cut -dx -f1)
+ h=$(echo "${dimentions}" | cut -dx -f2)
+
+ xdotool mousemove $((x + w / 2)) $((y + h / 2))
+}
+
+# Save the current window
+cwid=$(xdotool getwindowfocus)
+# Find the browser window
+twid=$(xdotool search --onlyvisible --class "${browserclass}")
+[ -z "${twid}" ] && notify-send 'failed to determine browser window' && exit
+[ -z "${cwid}" ] && notify-send 'failed to determine current window' && exit
+
+moveto "${twid}"
+
+xdotool key F5
+
+moveto "${cwid}"
+
+# vim: set tw=78 ts=2 et sw=2 sr:
diff --git a/global/.local/share/applications/html.desktop b/global/.local/share/applications/html.desktop
index c009841..3f08de6 100644
--- a/global/.local/share/applications/html.desktop
+++ b/global/.local/share/applications/html.desktop
@@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
Name=Html Viewer
-Exec=/usr/bin/lynx %u
+Exec=/usr/bin/w3m %u
diff --git a/global/.local/share/thesiah/keys/calcurse b/global/.local/share/thesiah/keys/calcurse
index a20e624..900a72a 100644
--- a/global/.local/share/thesiah/keys/calcurse
+++ b/global/.local/share/thesiah/keys/calcurse
@@ -5,6 +5,6 @@
\___\__,_|_|\___|\__,_|_| |___/\___|
calcurse is the calendar and schedule manager.
- tab - Switch from calendar to todo to appointments
- h/j/k/l - Move left/down/up/right
- Most other bindings are listed in the program.
+ tab - Switch from calendar to todo to appointments
+ h/j/k/l - Move left/down/up/right
+ Most other bindings are listed in the program.
diff --git a/global/.local/share/thesiah/keys/mutt b/global/.local/share/thesiah/keys/mutt
index 41069ff..41fbd7c 100644
--- a/global/.local/share/thesiah/keys/mutt
+++ b/global/.local/share/thesiah/keys/mutt
@@ -5,30 +5,33 @@
|_| |_| |_|\__,_|\__|\__|
mutt is the email client.
- j/k - Move down/up
- d/u - Move down/up half page
- gg - Move to top
- v - View/download attachments
- G - Move to last message
- r - Reply
- R - Reply all
- S - Sync/save mailbox changes
- D - Mark message for deletion
- U - Unmark message for deletion
- ctrl-u - Seek urls
- ,, - Seek urls
- ctrl-f - Search mail indexed with notmuch
- ctrl-r - Mark all as read
- l - Limit mail
- o - Run quick sync with offlineimap
- O - Run full sync with offlineimap
- C - Copy a message to another mailbox
- M - Move a message to another mailbox
- B - Hide/reveal sidebar
- ctrl-j/k - Move down/up on sidebar
- ctrl-o - Open box selected in sidebar
- gi - Go to inbox
- gs - Go to sent mail
- gd - Go to drafts
- gS - Go to spam
- i# - Go to a different account (# is the number of the account)
+ j/k - Move down/up
+ d/u - Move down/up half page
+ gg - Move to top
+ v - View/download attachments
+ G - Move to last message
+ r - Reply
+ R - Reply all
+ S - Sync/save mailbox changes
+ D - Mark message for deletion
+ U - Unmark message for deletion
+ ctrl-u - Seek urls
+ ,, - Seek urls
+ ctrl-f - Search mail indexed with notmuch
+ ctrl-r - Mark all as read
+ l - Limit mail
+ o - Run quick sync with offlineimap
+ O - Run full sync with offlineimap
+ C - Copy a message to another mailbox
+ M - Move a message to another mailbox
+ B - Hide/reveal sidebar
+ ctrl-j/k - Move down/up on sidebar
+ ctrl-o - Open box selected in sidebar
+ ga - Go to archive
+ gi - Go to inbox
+ gd - Go to drafts
+ gs - Go to sent mail
+ gp - Go to spam
+ gj - Go to junk
+ gt - Go to trash
+ i# - Go to a different account (# is the number of the account)
diff --git a/global/.local/share/thesiah/keys/ncmpcpp b/global/.local/share/thesiah/keys/ncmpcpp
index 75cdf26..e565549 100644
--- a/global/.local/share/thesiah/keys/ncmpcpp
+++ b/global/.local/share/thesiah/keys/ncmpcpp
@@ -6,16 +6,16 @@
|_| |_| |_|
ncmpcpp is the music player.
- h/j/k/l - Move left/down/up/right
- d/u - Down/up page
- a - Add song(s) to playlist
- c - Clear playlist
- g - Go to top
- G - Go to bottom
- p - Pause
- m - Media library
- f - Music sorted by directory structure
- t - Tag editor
- s - Search
- v - Visualizer
- P - Playlist
+ h/j/k/l - Move left/down/up/right
+ d/u - Down/up page
+ a - Add song(s) to playlist
+ c - Clear playlist
+ g - Go to top
+ G - Go to bottom
+ p - Pause
+ m - Media library
+ f - Music sorted by directory structure
+ t - Tag editor
+ s - Search
+ v - Visualizer
+ P - Playlist
diff --git a/global/.local/share/thesiah/keys/newsboat b/global/.local/share/thesiah/keys/newsboat
index b6953b3..8c04071 100644
--- a/global/.local/share/thesiah/keys/newsboat
+++ b/global/.local/share/thesiah/keys/newsboat
@@ -5,18 +5,28 @@
|_| |_|\___| \_/\_/ |___/_.__/ \___/ \__,_|\__|
newsboat is the RSS reader.
- j/k - Move down/up
- l - Open entry
- h/q - Back/quit
- Q - Quit immediately
- J/K - Previous/next feed
- n - Next unread
- N - Previous unread
- a - Toggle article read/unread
- A - Mark all as read
- U - Show all URLs
- ,, - Open main link with linkhandler
- ,p - Pick which program to open link with
- ,v - Open video link in mpv
- ,w - Open link in w3m
- ,c - Copy link to clipboard
+ j/k - Move down/up
+ l - Open entry
+ h/q - Back/quit
+ Q - Quit immediately
+ J/K - Previous/next feed
+ n - Next unread
+ N - Previous unread
+ a - Toggle article read/unread
+ A - Mark all as read
+ U - Show all URLs
+ ,a - Download a file via yt-dlp
+ ,c - Clone a git repo
+ ,d - Open dmenu handler
+ ,e - Open newsboat config
+ ,l - Open link in lynx
+ ,m - Play link in mpc
+ ,M - Download a music file via taskspooler
+ ,o - Open link based on types
+ ,t - Peertube torrent 480p
+ ,T - Peertube torrent 1080p
+ ,v - Play a video
+ ,V - Download a video file via taskspooler
+ ,w - Open link in w3m
+ ,y - Copy link to clipboard
+ ,Y - Open youtube comments via pipe-viewer
diff --git a/global/.local/share/thesiah/keys/nsxiv b/global/.local/share/thesiah/keys/nsxiv
index 78403bb..5b5717e 100644
--- a/global/.local/share/thesiah/keys/nsxiv
+++ b/global/.local/share/thesiah/keys/nsxiv
@@ -1,16 +1,16 @@
-
+
_ __ _____ _(_)_ __
| '_ \/ __\ \/ / \ \ / /
| | | \__ \> <| |\ V /
|_| |_|___/_/\_\_| \_/
nsxiv is the image viewer.
- h/j/k/l - Pan image
- -/+ - Zoom out/in
- Enter - Toggle thumbnail mode
- f - Fullscreen
- n/p - Previous/next image in list/directory
- r - Reload image if changed
- m - Mark/unmark image
- w - Zoom to fit window
- ctrl-x - Run external command (see ~/.config/nsxiv/exec/key-handler for options)
+ h/j/k/l - Pan image
+ -/+ - Zoom out/in
+ Enter - Toggle thumbnail mode
+ f - Fullscreen
+ n/p - Previous/next image in list/directory
+ r - Reload image if changed
+ m - Mark/unmark image
+ w - Zoom to fit window
+ ctrl-x - Run external command (see ~/.config/nsxiv/exec/key-handler for options)
diff --git a/global/.local/share/thesiah/keys/zathura b/global/.local/share/thesiah/keys/zathura
index 8fa1ec8..1d501bb 100644
--- a/global/.local/share/thesiah/keys/zathura
+++ b/global/.local/share/thesiah/keys/zathura
@@ -5,15 +5,15 @@
/___\__,_|\__|_| |_|\__,_|_| \__,_|
zathura is the pdf/djvu reader.
- h/j/k/l - Move left/down/up/right in document
- d/u - Down/up a half page
- gg - Top of document
- G - Bottom of document
- f - Highlight URLS to follow
- J/K - Zoom out/in
- s - Zoom to fit width
- a - Zoom to fit height
- r - Reload document if changed
- R - Rotate document
- D - Toggle dual-page mode
- p - Print document
+ h/j/k/l - Move left/down/up/right in document
+ d/u - Down/up a half page
+ gg - Top of document
+ G - Bottom of document
+ f - Highlight URLS to follow
+ J/K - Zoom out/in
+ s - Zoom to fit width
+ a - Zoom to fit height
+ r - Reload document if changed
+ R - Rotate document
+ D - Toggle dual-page mode
+ p - Print document