summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/lf/lfrc189
-rw-r--r--.config/newsboat/urls81
-rw-r--r--.config/via/shortcuts7
-rw-r--r--.config/via/websites2
-rw-r--r--.config/zathura/zathurarc10
5 files changed, 289 insertions, 0 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
new file mode 100644
index 0000000..6225861
--- /dev/null
+++ b/.config/lf/lfrc
@@ -0,0 +1,189 @@
+# Luke's lf settings
+
+# Note on Image Previews
+# For those wanting image previews, like this system, there are four steps to
+# set it up. These are done automatically for LARBS users, but I will state
+# them here for others doing it manually.
+#
+# 1. ueberzug must be installed.
+# 2. The scope file (~/.config/lf/scope for me), must have a command similar to
+# mine to generate ueberzug images.
+# 3. A `set cleaner` line as below is a cleaner script.
+# 4. lf should be started through a wrapper script (~/.local/bin/lfub for me)
+# that creates the environment for ueberzug. This command can be be aliased
+# in your shellrc (`alias lf="lfub") or if set to a binding, should be
+# called directly instead of normal lf.
+
+# Basic vars
+set shellopts '-eu'
+set ifs "\n"
+set scrolloff 10
+set icons
+set period 1
+set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
+set cleaner '~/.config/lf/cleaner'
+set previewer '~/.config/lf/scope'
+set autoquit true
+
+# cmds/functions
+cmd open ${{
+ case $(file --mime-type "$(readlink -f $f)" -b) in
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
+ image/vnd.djvu|application/pdf|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
+ text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
+ image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
+ image/svg+xml) display -- $f ;;
+ image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
+ setsid -f nsxiv -aio 2>/dev/null | while read -r file; do
+ [ -z "$file" ] && continue
+ lf -remote "send select \"$file\""
+ lf -remote "send toggle"
+ done &
+ ;;
+ audio/*|video/x-ms-asf) mpv --audio-display=no $f ;;
+ video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
+ application/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
+ application/pgp-encrypted) $EDITOR $fx ;;
+ application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template|application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint|application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template|application/vnd.oasis.opendocument.formula|application/vnd.oasis.opendocument.database) setsid -f libreoffice $fx >/dev/null 2>&1 ;;
+ application/octet-stream) case ${f##*.} in
+ doc|docx|xls|xlsx|odt|ppt|pptx) setsid -f libreoffice $fx >/dev/null 2>&1 ;;
+ ghw) setsid -f gtkwave $f >/dev/null 2>&1 ;;
+ ts) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
+ *) setsid -f zathura $fx >/dev/null 2>&1 ;;
+ esac ;;
+ *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
+ esac
+}}
+
+cmd mkdir $mkdir -p "$@"
+
+cmd extract ${{
+ clear; tput cup $(($(tput lines)/3)); tput bold
+ set -f
+ printf "%s\n\t" "$fx"
+ printf "extract?[y/N]"
+ read ans
+ [ $ans = "y" ] && {
+ case $fx in
+ *.tar.bz2) tar xjf $fx ;;
+ *.tar.gz) tar xzf $fx ;;
+ *.bz2) bunzip2 $fx ;;
+ *.rar) unrar e $fx ;;
+ *.gz) gunzip $fx ;;
+ *.tar) tar xf $fx ;;
+ *.tbz2) tar xjf $fx ;;
+ *.tgz) tar xzf $fx ;;
+ *.zip) unzip $fx ;;
+ *.Z) uncompress $fx ;;
+ *.7z) 7z x $fx ;;
+ *.tar.xz) tar xf $fx ;;
+ esac
+ }
+}}
+
+cmd delete ${{
+ clear; tput cup $(($(tput lines)/3)); tput bold
+ set -f
+ printf "%s\n\t" "$fx"
+ printf "delete?[y/N]"
+ read ans
+ [ $ans = "y" ] && rm -rf -- $fx
+}}
+
+cmd moveto ${{
+ set -f
+ clear; tput cup $(($(tput lines)/3))
+ dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Move to where? ' | sed 's|~|$HOME|')
+ [ -z "$dest" ] && exit
+ destpath=$(eval printf '%s' \"$dest\")
+ clear; tput cup $(($(tput lines)/3)); tput bold
+ echo "From:"
+ echo "$fx" | sed 's/^/ /'
+ printf "To:\n %s\n\n\tmove?[y/N]" "$destpath"
+ read -r ans
+ [ "$ans" != "y" ] && exit
+ for x in $fx; do
+ mv -iv "$x" "$destpath"
+ done &&
+ notify-send "🚚 File(s) moved." "File(s) moved to $destpath."
+}}
+
+cmd copyto ${{
+ set -f
+ clear; tput cup $(($(tput lines)/3))
+ dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Copy to where? ' | sed 's|~|$HOME|')
+ [ -z "$dest" ] && exit
+ destpath=$(eval printf '%s' \"$dest\")
+ clear; tput cup $(($(tput lines)/3)); tput bold
+ echo "From:"
+ echo "$fx" | sed 's/^/ /'
+ printf "To:\n %s\n\n\tcopy?[y/N]" "$destpath"
+ read -r ans
+ [ "$ans" != "y" ] && exit
+ for x in $fx; do
+ cp -ivr "$x" "$destpath"
+ done &&
+ notify-send "📋 File(s) copied." "File(s) copied to $destpath."
+}}
+
+cmd setbg "$1"
+
+cmd bulkrename ${{
+ tmpfile_old="$(mktemp)"
+ tmpfile_new="$(mktemp)"
+
+ [ -n "$fs" ] && fs=$(basename -a $fs) || fs=$(ls)
+
+ echo "$fs" > "$tmpfile_old"
+ echo "$fs" > "$tmpfile_new"
+ $EDITOR "$tmpfile_new"
+
+ [ "$(wc -l < "$tmpfile_old")" -eq "$(wc -l < "$tmpfile_new")" ] || { rm -f "$tmpfile_old" "$tmpfile_new"; exit 1; }
+
+ paste "$tmpfile_old" "$tmpfile_new" | while IFS="$(printf '\t')" read -r src dst
+ do
+ [ "$src" = "$dst" ] || [ -e "$dst" ] || mv -- "$src" "$dst"
+ done
+
+ rm -f "$tmpfile_old" "$tmpfile_new"
+ lf -remote "send $id unselect"
+}}
+
+# Bindings
+map <c-f> $lf -remote "send $id select \"$(fzf)\""
+map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)"
+map H cd ~
+map g top
+map D delete
+map E extract
+map C copyto
+map M moveto
+map <c-n> push :mkdir<space>""<left>
+map <c-r> reload
+map <c-s> set hidden!
+map <enter> shell
+map x $$f
+map X !$f
+map o &mimeopen "$f"
+map O $mimeopen --ask "$f"
+
+map A :rename; cmd-end # at the very end
+map c push A<c-u> # new rename
+map I :rename; cmd-home # at the very beginning
+map i :rename # before extension
+map a :rename; cmd-right # after extension
+map B bulkrename
+map b $setbg $f
+
+map <c-e> down
+map <c-y> up
+map V push :!nvim<space>
+
+map W $setsid -f $TERMINAL >/dev/null 2>&1
+
+map U $printf "%s" "$fx" | xclip -selection clipboard
+map u $printf "%s" "$fx" | sed 's/.*\///' | xclip -selection clipboard
+map . $printf "%s" "$fx" | sed -E 's/^.+\[/https:\/\/www.youtube.com\/watch?v=/' | sed -E 's/\]\..+//' | xclip -selection clipboard
+map <gt> $printf "%s" "$fx" | sed -E 's/^.+\[/https:\/\/piped.video\/watch?v=/' | sed -E 's/\]\..+//' | xclip -selection clipboard
+map T $nsxiv -t "$(pwd)" # opens thumbnail mode
+map <c-l> unselect
diff --git a/.config/newsboat/urls b/.config/newsboat/urls
new file mode 100644
index 0000000..7d11900
--- /dev/null
+++ b/.config/newsboat/urls
@@ -0,0 +1,81 @@
+" "
+"--YouTube--"
+https://www.youtube.com/feeds/videos.xml?channel_id=UCOQpO_rBsXTcjgBQCQGfyrg youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCHASrbCS-niYRn-Y3WX38pA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCtscFf8VayggrDYjOwDke_Q youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCGq_4hy864L32WGuL6pJzFA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCz75RVbH8q2jdBJ4SnwuZZQ youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCNu7GSRF7Y10OIWHQHpAx1g youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCO8czxzBx4PxuTEolCBmq2w youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCOd2AGlKIyrXMo0B7hbTC3Q youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UC7xj2xj0EtGt8EZ3ERJf-IQ youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCL7DDQWP6x7wy0O6L5ZIgxg youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCupQd0e1leK4-Mj1wSfnkoQ youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCxDZs_ltFFvn0FDHT6kmoXA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCT9Fyqn0izh-wX-wDzKBwAA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCWTA5Yd0rAkQt5-9etIFoBA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UC63bJhINPNyZKTV0R8tIlrw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCegTmjTeZNlBLQ9zG7L89Fg youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCANmix8PISKsVHE0XWmUSzw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCFUgQCaHHvsANCX01uiG2Nw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCiIdP2sXsWjy9OxWiLD_8LA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCjIskCYmxTPpRUokyXoN9nA youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCXzt6u4VooLQcyc3-yIFIcw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UC_B9sGWLPoGA0cNlKJOtmXw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UC__fMax69_XCClNBkwWX6yw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCKN1x9HADB_rGluUs6y_SLw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCKN1x9HADB_rGluUs6y_SLw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCI5qgrtYr9nFjuIW3-8ze0g youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCSZO00QrAFrDdmlLZejALiw youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCW6as_Gj-yW_-TBV9Ur6Kdg youtube
+https://www.youtube.com/feeds/videos.xml?channel_id=UCgKOKQq3XENgVsy4YcDtDdQ youtube
+
+" "
+"--News--"
+https://wykop.pl/rss news "~Wykop"
+https://www.amerika.org/feed/ news
+https://dissentwatch.com/?feed=linkfeed news
+https://security.stackexchange.com/feeds news
+https://math.stackexchange.com/feeds news
+https://notrelated.xyz/rss news
+http://www.kendo.pl/?format=feed&type=rss news
+https://github.com/void-linux/void-packages/commits/master.atom news
+https://voidlinux.org/atom.xml
+https://github.com/void-linux/xbps/commits/master.atom
+
+" "
+"--Useful--"
+https://based.cooking/index.xml useful
+https://landchad.net/index.xml useful
+https://cheapskatesguide.org/cheapskates-guide-rss-feed.xml useful
+
+" "
+"--Blogs--"
+https://blog.linuxmint.com/?feed=rss2 blog
+https://theoryware.net/blog/index.xml blog
+https://xn--z7x.xn--6frz82g/blog/rss/ blog
+https://digdeeper.club/atom.xml blog
+https://her.st/rss.xml blog
+http://verisimilitudes.net/rss.xml blog
+https://www.thomasvanderberg.nl/feed.xml blog
+https://lukesmith.xyz/index.xml blog
+https://fabiensanglard.net/rss.xml blog
+https://thewaywardaxolotl.blogspot.com/feeds/posts/default?alt=rss blog
+https://bernard-stockermans.net/index.xml blog
+https://cromwell-intl.com/rss.xml blog
+https://stallman.org/rss/rss.xml blog
+https://unixdigest.com/feed.rss blog
+https://ar.al/index.xml blog
+https://wrongthink.link/index.xml blog
+https://www.dragonflycave.com/rss.xml blog
+
+" "
+"--Limbo--"
+https://www.unz.com/feed/
+https://ratfactor.com/atom.xml
+https://www.pgcli.com/feeds/all.atom.xml
+https://blog.luap.info/feeds.xml
+https://josh.works/atom.xml
+https://pilledtexts.com/index.xml
+https://bpkg.sh/feed/rss.xml
diff --git a/.config/via/shortcuts b/.config/via/shortcuts
new file mode 100644
index 0000000..4f09b54
--- /dev/null
+++ b/.config/via/shortcuts
@@ -0,0 +1,7 @@
+/home/filipek/.profile
+/home/filipek/.config/shell/.zshrc
+/home/filipek/.config/shell/envvarc
+/home/filipek/.config/shell/aliasrc
+/home/filipek/.config/vim/.vimrc
+todo
+zathura
diff --git a/.config/via/websites b/.config/via/websites
new file mode 100644
index 0000000..ce81ae5
--- /dev/null
+++ b/.config/via/websites
@@ -0,0 +1,2 @@
+https://duckduckgo.com/?q=
+https://en.wikipedia.org/wiki/Special:Search?search=
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
new file mode 100644
index 0000000..ecdbcfd
--- /dev/null
+++ b/.config/zathura/zathurarc
@@ -0,0 +1,10 @@
+set sandbox none
+set statusbar-h-padding 0
+set statusbar-v-padding 0
+set page-padding 1
+set selection-clipboard clipboard
+set recolor true
+map [normal] i recolor
+map [fullscreen] i recolor
+map [normal] f toggle_fullscreen 1
+map [fullscreen] f toggle_fullscreen 0