mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Compare commits
55 Commits
47f03bf0e1
...
0aa8dcb49d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0aa8dcb49d | ||
|
|
c95a16916d | ||
|
|
28eff887e0 | ||
|
|
441d26b75d | ||
|
|
db6ee8f819 | ||
|
|
487be9193c | ||
|
|
1f7376c805 | ||
|
|
97f2fa3872 | ||
|
|
db8ee0df79 | ||
|
|
97687287bd | ||
|
|
5c8d46a4e7 | ||
|
|
dd6eb37469 | ||
|
|
f1915e71e5 | ||
|
|
92f9fc458c | ||
|
|
b545443993 | ||
|
|
cf4a12acb3 | ||
|
|
7a96fb100c | ||
|
|
0795202675 | ||
|
|
bbcbac64fa | ||
|
|
52fab9d50a | ||
|
|
0db54f9618 | ||
|
|
50e72a1a03 | ||
|
|
031938a792 | ||
|
|
ea3e1e14cc | ||
|
|
0cc589bcad | ||
|
|
6ba48b2733 | ||
|
|
1e3adf9c03 | ||
|
|
ca8cb1f6a7 | ||
|
|
54c0aa2af8 | ||
|
|
bca6b403eb | ||
|
|
42f3efb4b0 | ||
|
|
708d6c6731 | ||
|
|
b8cd0ab495 | ||
|
|
c550a7c6e5 | ||
|
|
86f05abcce | ||
|
|
798ba175d0 | ||
|
|
a360fadd5f | ||
|
|
8315e4c885 | ||
|
|
f26e5678e6 | ||
|
|
ed9633da3f | ||
|
|
ec8e82745e | ||
|
|
44cb5f12e6 | ||
|
|
d8a8970715 | ||
|
|
0497dcd51c | ||
|
|
6f6b749d0e | ||
|
|
9a85d328cc | ||
|
|
07de33840d | ||
|
|
08639706a9 | ||
|
|
af2710799b | ||
|
|
1633233c9d | ||
|
|
ce1f0bfa05 | ||
|
|
0a29cfbf4f | ||
|
|
991b052a55 | ||
|
|
b2833f8a67 | ||
|
|
e1302c897e |
@ -4,7 +4,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Libertine</family>
|
<family>Libertinus Serif</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>sans-serif</family>
|
<family>sans-serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Libertinus Sans</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>sans</family>
|
<family>sans</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Libertinus Sans</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<family>monospace</family>
|
<family>monospace</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Noto Sans Mono</family>
|
<family>Noto Sans Mono</family>
|
||||||
<family>Liberation Mono</family>
|
<family>Libertinus Mono</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
<family>Braille</family>
|
<family>Braille</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
|
|||||||
@ -24,18 +24,18 @@ set period 1
|
|||||||
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
|
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
|
||||||
set cleaner '~/.config/lf/cleaner'
|
set cleaner '~/.config/lf/cleaner'
|
||||||
set previewer '~/.config/lf/scope'
|
set previewer '~/.config/lf/scope'
|
||||||
set autoquit on
|
set autoquit true
|
||||||
|
|
||||||
# cmds/functions
|
# cmds/functions
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
case $(file --mime-type "$(readlink -f $f)" -b) in
|
case $(file --mime-type "$(readlink -f $f)" -b) in
|
||||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
||||||
image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
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;;
|
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
|
||||||
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||||
image/svg+xml) display -- $f ;;
|
image/svg+xml) display -- $f ;;
|
||||||
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
|
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
|
||||||
setsid -f sxiv -aio 2>/dev/null | while read -r file; do
|
setsid -f nsxiv -aio 2>/dev/null | while read -r file; do
|
||||||
[ -z "$file" ] && continue
|
[ -z "$file" ] && continue
|
||||||
lf -remote "send select \"$file\""
|
lf -remote "send select \"$file\""
|
||||||
lf -remote "send toggle"
|
lf -remote "send toggle"
|
||||||
@ -45,12 +45,18 @@ cmd open ${{
|
|||||||
video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
|
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/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
||||||
application/pgp-encrypted) $EDITOR $fx ;;
|
application/pgp-encrypted) $EDITOR $fx ;;
|
||||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|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/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 ;;
|
||||||
*) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
|
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
|
esac
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
|
cmd mkdir $mkdir -p "$@"
|
||||||
|
|
||||||
cmd extract ${{
|
cmd extract ${{
|
||||||
clear; tput cup $(($(tput lines)/3)); tput bold
|
clear; tput cup $(($(tput lines)/3)); tput bold
|
||||||
@ -58,7 +64,22 @@ cmd extract ${{
|
|||||||
printf "%s\n\t" "$fx"
|
printf "%s\n\t" "$fx"
|
||||||
printf "extract?[y/N]"
|
printf "extract?[y/N]"
|
||||||
read ans
|
read ans
|
||||||
[ $ans = "y" ] && aunpack $fx
|
[ $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 ${{
|
cmd delete ${{
|
||||||
@ -93,18 +114,38 @@ cmd copyto ${{
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
cmd setbg "$1"
|
cmd setbg "$1"
|
||||||
cmd bulkrename $vidir
|
|
||||||
|
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
|
# Bindings
|
||||||
map <c-f> $lf -remote "send $id select \"$(fzf)\""
|
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 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 gh
|
map H cd ~
|
||||||
map g top
|
map g top
|
||||||
map D delete
|
map D delete
|
||||||
map E extract
|
map E extract
|
||||||
map C copyto
|
map C copyto
|
||||||
map M moveto
|
map M moveto
|
||||||
map <c-n> push :mkdir<space>
|
map <c-n> push :mkdir<space>""<left>
|
||||||
map <c-r> reload
|
map <c-r> reload
|
||||||
map <c-s> set hidden!
|
map <c-s> set hidden!
|
||||||
map <enter> shell
|
map <enter> shell
|
||||||
@ -113,11 +154,11 @@ map X !$f
|
|||||||
map o &mimeopen "$f"
|
map o &mimeopen "$f"
|
||||||
map O $mimeopen --ask "$f"
|
map O $mimeopen --ask "$f"
|
||||||
|
|
||||||
map A rename # at the very end
|
map A :rename; cmd-end # at the very end
|
||||||
map c push A<c-u> # new rename
|
map c push A<c-u> # new rename
|
||||||
map I push A<c-a> # at the very beginning
|
map I :rename; cmd-home # at the very beginning
|
||||||
map i push A<a-b><a-b><a-f> # before extension
|
map i :rename # before extension
|
||||||
map a push A<a-b> # after extension
|
map a :rename; cmd-right # after extension
|
||||||
map B bulkrename
|
map B bulkrename
|
||||||
map b $setbg $f
|
map b $setbg $f
|
||||||
|
|
||||||
@ -127,7 +168,14 @@ map V push :!nvim<space>
|
|||||||
|
|
||||||
map W $setsid -f $TERMINAL >/dev/null 2>&1
|
map W $setsid -f $TERMINAL >/dev/null 2>&1
|
||||||
|
|
||||||
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
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 $sxiv -t "$(pwd)" # opens thumbnail mode
|
||||||
|
map <c-l> unselect
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Source Bookmarks
|
# Source Bookmarks
|
||||||
source "~/.config/lf/shortcutrc"
|
source "~/.config/lf/shortcutrc"
|
||||||
|
|||||||
@ -13,10 +13,6 @@ image() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ifub() {
|
|
||||||
[ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Note that the cache file name is a function of file information, meaning if
|
# Note that the cache file name is a function of file information, meaning if
|
||||||
# an image appears in multiple places across the machine, it will not have to
|
# an image appears in multiple places across the machine, it will not have to
|
||||||
# be regenerated once seen.
|
# be regenerated once seen.
|
||||||
@ -25,10 +21,19 @@ case "$(file --dereference --brief --mime-type -- "$1")" in
|
|||||||
image/avif) CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
image/avif) CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||||
[ ! -f "$CACHE" ] && convert "$1" "$CACHE.jpg"
|
[ ! -f "$CACHE" ] && convert "$1" "$CACHE.jpg"
|
||||||
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;;
|
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;;
|
||||||
|
image/vnd.djvu)
|
||||||
|
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||||
|
[ ! -f "$CACHE" ] && djvused "$1" -e 'select 1; save-page-with /dev/stdout' | convert -density 200 - "$CACHE.jpg" > /dev/null 2>&1
|
||||||
|
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;;
|
||||||
|
image/svg+xml)
|
||||||
|
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||||
|
[ ! -f "$CACHE" ] && inkscape --convert-dpi-method=none -o "$CACHE.png" --export-overwrite -D --export-png-color-mode=RGBA_16 "$1"
|
||||||
|
image "$CACHE.png" "$2" "$3" "$4" "$5" "$1"
|
||||||
|
;;
|
||||||
image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;;
|
image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;;
|
||||||
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
|
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
|
||||||
text/troff) man ./ "$1" | col -b ;;
|
text/troff) man ./ "$1" | col -b ;;
|
||||||
text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;;
|
text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4-2))" -f "$1" ;;
|
||||||
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
|
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
|
||||||
video/* )
|
video/* )
|
||||||
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||||
|
|||||||
@ -30,3 +30,5 @@ progressbar_color = black:b
|
|||||||
progressbar_elapsed_color = blue:b
|
progressbar_elapsed_color = blue:b
|
||||||
statusbar_color = red
|
statusbar_color = red
|
||||||
statusbar_time_color = cyan:b
|
statusbar_time_color = cyan:b
|
||||||
|
execute_on_song_change="pkill -RTMIN+11 dwmblocks"
|
||||||
|
execute_on_player_state_change="pkill -RTMIN+11 dwmblocks"
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
https://lukesmith.xyz/rss.xml
|
|
||||||
https://videos.lukesmith.xyz/feeds/videos.xml?videoChannelId=2 "~Luke Smith (Videos)"
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (YouTube)"
|
|
||||||
https://lindypress.net/rss
|
|
||||||
https://notrelated.xyz/rss
|
|
||||||
https://landchad.net/rss.xml
|
|
||||||
https://based.cooking/index.xml
|
|
||||||
https://artixlinux.org/feed.php "tech"
|
|
||||||
https://www.archlinux.org/feeds/news/ "tech"
|
|
||||||
https://github.com/LukeSmithxyz/voidrice/commits/master.atom "~LARBS dotfiles"
|
|
||||||
@ -31,10 +31,10 @@ set noshowmode
|
|||||||
set noruler
|
set noruler
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
|
colorscheme vim
|
||||||
|
|
||||||
" Some basics:
|
" Some basics:
|
||||||
nnoremap c "_c
|
nnoremap c "_c
|
||||||
set nocompatible
|
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
syntax on
|
syntax on
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
@ -55,18 +55,15 @@ set noshowcmd
|
|||||||
" Nerd tree
|
" Nerd tree
|
||||||
map <leader>n :NERDTreeToggle<CR>
|
map <leader>n :NERDTreeToggle<CR>
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
if has('nvim')
|
let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
|
||||||
let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
|
|
||||||
else
|
|
||||||
let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks'
|
|
||||||
endif
|
|
||||||
|
|
||||||
" vimling:
|
" vim-airline
|
||||||
nm <leader>d :call ToggleDeadKeys()<CR>
|
if !exists('g:airline_symbols')
|
||||||
imap <leader>d <esc>:call ToggleDeadKeys()<CR>a
|
let g:airline_symbols = {}
|
||||||
nm <leader>i :call ToggleIPA()<CR>
|
endif
|
||||||
imap <leader>i <esc>:call ToggleIPA()<CR>a
|
let g:airline_symbols.colnr = ' C:'
|
||||||
nm <leader>q :call ToggleProse()<CR>
|
let g:airline_symbols.linenr = ' L:'
|
||||||
|
let g:airline_symbols.maxlinenr = '☰ '
|
||||||
|
|
||||||
" Shortcutting split navigation, saving a keypress:
|
" Shortcutting split navigation, saving a keypress:
|
||||||
map <C-h> <C-w>h
|
map <C-h> <C-w>h
|
||||||
@ -108,15 +105,16 @@ set noshowcmd
|
|||||||
cabbrev w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
cabbrev w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||||
|
|
||||||
" Enable Goyo by default for mutt writing
|
" Enable Goyo by default for mutt writing
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
|
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo 80 | call feedkeys("jk")
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
|
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo!\|x!<CR>
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
|
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo!\|q!<CR>
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
|
||||||
|
|
||||||
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
|
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
|
||||||
autocmd BufWritePre * let currPos = getpos(".")
|
autocmd BufWritePre * let currPos = getpos(".")
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
autocmd BufWritePre * %s/\n\+\%$//e
|
autocmd BufWritePre * %s/\n\+\%$//e
|
||||||
|
autocmd BufWritePre *.[ch] %s/\%$/\r/e " add trailing newline for ANSI C standard
|
||||||
|
autocmd BufWritePre *neomutt* %s/^--$/-- /e " dash-dash-space signature delimiter in emails
|
||||||
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
|
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
|
||||||
|
|
||||||
" When shortcut files are updated, renew bash and ranger configs with new material:
|
" When shortcut files are updated, renew bash and ranger configs with new material:
|
||||||
|
|||||||
@ -20,4 +20,4 @@ cfmb ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/bindings # ncmpcpp (music player)
|
|||||||
cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/config # ncmpcpp (music player) config
|
cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/config # ncmpcpp (music player) config
|
||||||
cfl ${XDG_CONFIG_HOME:-$HOME/.config}/lf/lfrc # lf (file browser) config
|
cfl ${XDG_CONFIG_HOME:-$HOME/.config}/lf/lfrc # lf (file browser) config
|
||||||
cfL ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope # lf's scope/preview file
|
cfL ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope # lf's scope/preview file
|
||||||
cfX ${XDG_CONFIG_HOME:-$HOME/.config}/sxiv/exec/key-handler # sxiv (image viewer) key/script handler
|
cfX ${XDG_CONFIG_HOME:-$HOME/.config}/nsxiv/exec/key-handler # nsxiv (image viewer) key/script handler
|
||||||
|
|||||||
@ -1,14 +1,12 @@
|
|||||||
#!/bin/zsh
|
#!/bin/sh
|
||||||
|
# shellcheck disable=SC2155
|
||||||
|
|
||||||
# profile file. Runs on login. Environmental variables are set here.
|
# Profile file, runs on login. Environmental variables are set here.
|
||||||
|
|
||||||
# If you don't plan on reverting to bash, you can remove the link in ~/.profile
|
# Add all directories in `~/.local/bin` to $PATH
|
||||||
# to clean up.
|
export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"
|
||||||
|
|
||||||
# Adds `~/.local/bin` to $PATH
|
unsetopt PROMPT_SP 2>/dev/null
|
||||||
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
|
||||||
|
|
||||||
unsetopt PROMPT_SP
|
|
||||||
|
|
||||||
# Default programs:
|
# Default programs:
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
@ -52,7 +50,7 @@ export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
|
|||||||
export DICS="/usr/share/stardict/dic/"
|
export DICS="/usr/share/stardict/dic/"
|
||||||
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
||||||
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
||||||
export LESS=-R
|
export LESS="R"
|
||||||
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||||||
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||||||
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||||||
@ -61,15 +59,15 @@ export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
|||||||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||||||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||||
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||||||
export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
||||||
export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
|
export MOZ_USE_XINPUT2=1 # Mozilla smooth scrolling/touchpads.
|
||||||
export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname
|
export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
|
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
|
||||||
|
|
||||||
[ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ] && setsid shortcuts >/dev/null 2>&1
|
[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1
|
||||||
|
|
||||||
# Start graphical server on user's current tty if not already running.
|
# Start graphical server on user's current tty if not already running.
|
||||||
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
||||||
|
|
||||||
# Switch escape and caps if tty and no passwd required:
|
# Switch escape and caps if tty and no passwd required:
|
||||||
sudo -n loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/larbs/ttymaps.kmap 2>/dev/null
|
sudo -n loadkeys "$XDG_DATA_HOME/larbs/ttymaps.kmap" 2>/dev/null
|
||||||
|
|||||||
1
.config/sxiv
Symbolic link
1
.config/sxiv
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nsxiv
|
||||||
@ -13,5 +13,6 @@ if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
|
|||||||
else
|
else
|
||||||
. "$HOME/.xprofile"
|
. "$HOME/.xprofile"
|
||||||
fi
|
fi
|
||||||
|
# Activate dbus variables
|
||||||
ssh-agent dwm
|
dbus-update-activation-environment --all
|
||||||
|
dbus-launch ssh-agent dwm
|
||||||
|
|||||||
@ -11,6 +11,7 @@ setopt interactive_comments
|
|||||||
HISTSIZE=10000000
|
HISTSIZE=10000000
|
||||||
SAVEHIST=10000000
|
SAVEHIST=10000000
|
||||||
HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
|
HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
|
||||||
|
setopt inc_append_history
|
||||||
|
|
||||||
# Load aliases and shortcuts if existent.
|
# Load aliases and shortcuts if existent.
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
||||||
|
|||||||
@ -16,5 +16,8 @@ IFS='
|
|||||||
|
|
||||||
# Update each found profile.
|
# Update each found profile.
|
||||||
for profile in $profiles; do
|
for profile in $profiles; do
|
||||||
arkenfox-updater -p "${profile%%/user.js*}" -s
|
userjs=${profile%%/user.js*}
|
||||||
|
user=$(stat -c '%U' "$userjs") || continue
|
||||||
|
|
||||||
|
su -l "$user" -c "arkenfox-updater -c -p $userjs -s"
|
||||||
done
|
done
|
||||||
|
|||||||
@ -12,7 +12,7 @@ inputaudio="$1"
|
|||||||
ext="${1##*.}"
|
ext="${1##*.}"
|
||||||
|
|
||||||
# Get a safe file name from the book.
|
# Get a safe file name from the book.
|
||||||
escbook="$(echo "$booktitle" | iconv -cf UTF-8 -t ASCII//TRANSLIT | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed "s/-\+/-/g;s/\(^-\|-\$\)//g")"
|
escbook="$(echo "$booktitle" | iconv -c -f UTF-8 -t ASCII//TRANSLIT | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed "s/-\+/-/g;s/\(^-\|-\$\)//g")"
|
||||||
|
|
||||||
! mkdir -p "$escbook" &&
|
! mkdir -p "$escbook" &&
|
||||||
echo "Do you have write access in this directory?" &&
|
echo "Do you have write access in this directory?" &&
|
||||||
@ -31,7 +31,7 @@ do
|
|||||||
cmd="$cmd -metadata artist=\"$author\" -metadata title=\"$title\" -metadata album=\"$booktitle\" -metadata year=\"$year\" -metadata track=\"$track\" -metadata total=\"$total\" -ss \"$start\" -to \"$end\" -vn -c:a copy \"$file\" "
|
cmd="$cmd -metadata artist=\"$author\" -metadata title=\"$title\" -metadata album=\"$booktitle\" -metadata year=\"$year\" -metadata track=\"$track\" -metadata total=\"$total\" -ss \"$start\" -to \"$end\" -vn -c:a copy \"$file\" "
|
||||||
fi
|
fi
|
||||||
title="$(echo "$x" | cut -d' ' -f2-)"
|
title="$(echo "$x" | cut -d' ' -f2-)"
|
||||||
esctitle="$(echo "$title" | iconv -cf UTF-8 -t ASCII//TRANSLIT | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed "s/-\+/-/g;s/\(^-\|-\$\)//g")"
|
esctitle="$(echo "$title" | iconv -c -f UTF-8 -t ASCII//TRANSLIT | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed "s/-\+/-/g;s/\(^-\|-\$\)//g")"
|
||||||
track="$((track+1))"
|
track="$((track+1))"
|
||||||
start="$end"
|
start="$end"
|
||||||
done < "$2"
|
done < "$2"
|
||||||
|
|||||||
@ -2,58 +2,51 @@
|
|||||||
|
|
||||||
# This script will compile or run another finishing operation on a document. I
|
# This script will compile or run another finishing operation on a document. I
|
||||||
# have this script run via vim.
|
# have this script run via vim.
|
||||||
#
|
|
||||||
# Compiles .tex. groff (.mom, .ms), .rmd, .md, .org. Opens .sent files as sent
|
# Compiles .tex. groff (.mom, .ms), .rmd, .md, .org. Opens .sent files as sent
|
||||||
# presentations. Runs scripts based on extension or shebang.
|
# presentations. Runs scripts based on extension or shebang.
|
||||||
#
|
|
||||||
# Note that .tex files which you wish to compile with XeLaTeX should have the
|
# Note that .tex files which you wish to compile with XeLaTeX should have the
|
||||||
# string "xelatex" somewhere in a comment/command in the first 5 lines.
|
# string "xelatex" somewhere in a comment/command in the first 5 lines.
|
||||||
|
|
||||||
file=$(readlink -f "$1")
|
file="${1}"
|
||||||
|
ext="${file##*.}"
|
||||||
dir=${file%/*}
|
dir=${file%/*}
|
||||||
base="${file%.*}"
|
base="${file%.*}"
|
||||||
ext="${file##*.}"
|
|
||||||
|
|
||||||
cd "$dir" || exit 1
|
cd "${dir}" || exit "1"
|
||||||
|
|
||||||
textype() { \
|
case "${ext}" in
|
||||||
textarget="$(getcomproot "$file" || echo "$file")"
|
[0-9]) preconv "${file}" | refer -PS -e | groff -mandoc -T pdf > "${base}.pdf" ;;
|
||||||
echo "$textarget"
|
mom|ms) preconv "${file}" | refer -PS -e | groff -T pdf -m"${ext}" > "${base}.pdf" ;;
|
||||||
command="pdflatex"
|
c) cc "${file}" -o "${base}" && "./${base}" ;;
|
||||||
( head -n5 "$textarget" | grep -qi 'xelatex' ) && command="xelatex"
|
cpp) g++ "${file}" -o "${base}" && "./${base}" ;;
|
||||||
$command --output-directory="${textarget%/*}" "${textarget%.*}"
|
cs) mcs "${file}" && mono "${base}.exe" ;;
|
||||||
grep -qi addbibresource "$textarget" &&
|
go) go run "${file}" ;;
|
||||||
biber --input-directory "${textarget%/*}" "${textarget%.*}" &&
|
h) sudo make install ;;
|
||||||
$command --output-directory="${textarget%/*}" "${textarget%.*}" &&
|
java) javac -d classes "${file}" && java -cp classes "${base}" ;;
|
||||||
$command --output-directory="${textarget%/*}" "${textarget%.*}"
|
m) octave "${file}" ;;
|
||||||
}
|
md) [ -x "$(command -v lowdown)" ] && \
|
||||||
|
lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf > "${base}.pdf" || \
|
||||||
case "$ext" in
|
[ -x "$(command -v groffdown)" ] && \
|
||||||
# Try to keep these cases in alphabetical order.
|
groffdown -i "${file}" | groff -T pdf > "${base}.pdf" || \
|
||||||
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;;
|
pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" ;;
|
||||||
c) cc "$file" -o "$base" && "$base" ;;
|
org) emacs "${file}" --batch -u "${USER}" -f org-latex-export-to-pdf ;;
|
||||||
cpp) g++ "$file" -o "$base" && "$base" ;;
|
py) python "${file}" ;;
|
||||||
cs) mcs "$file" && mono "$base".exe ;;
|
[rR]md) Rscript -e "rmarkdown::render('${file}', quiet=TRUE)" ;;
|
||||||
go) go run "$file" ;;
|
rs) cargo build ;;
|
||||||
h) sudo make install ;;
|
sass) sassc -a "${file}" "${base}.css" ;;
|
||||||
java) javac -d classes "$file" && java -cp classes "${1%.*}" ;;
|
scad) openscad -o "${base}.stl" "${file}" ;;
|
||||||
m) octave "$file" ;;
|
sent) setsid -f sent "${file}" 2> "/dev/null" ;;
|
||||||
md) if [ -x "$(command -v lowdown)" ]; then
|
tex)
|
||||||
lowdown --parse-no-intraemph "$file" -Tms | groff -mpdfmark -ms -kept -T pdf > "$base".pdf
|
textarget="$(getcomproot "${file}" || echo "${file}")"
|
||||||
elif [ -x "$(command -v groffdown)" ]; then
|
command="pdflatex"
|
||||||
groffdown -i "$file" | groff -T pdf > "$base".pdf
|
head -n5 "${textarget}" | grep -qi "xelatex" && command="xelatex"
|
||||||
else
|
${command} --output-directory="${textarget%/*}" "${textarget%.*}" &&
|
||||||
pandoc -t ms --highlight-style=kate -s -o "$base".pdf "$file"
|
grep -qi addbibresource "${textarget}" &&
|
||||||
fi ; ;;
|
biber --input-directory "${textarget%/*}" "${textarget%.*}" &&
|
||||||
mom) preconv "$file" | refer -PS -e | groff -mom -kept -T pdf > "$base".pdf ;;
|
${command} --output-directory="${textarget%/*}" "${textarget%.*}" &&
|
||||||
ms) preconv "$file" | refer -PS -e | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
${command} --output-directory="${textarget%/*}" "${textarget%.*}"
|
||||||
org) emacs "$file" --batch -u "$USER" -f org-latex-export-to-pdf ;;
|
;;
|
||||||
py) python "$file" ;;
|
*) sed -n '/^#!/s/^#!//p; q' "${file}" | xargs -r -I % "${file}" ;;
|
||||||
[rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;;
|
|
||||||
rs) cargo build ;;
|
|
||||||
sass) sassc -a "$file" "$base".css ;;
|
|
||||||
scad) openscad -o "$base".stl "$file" ;;
|
|
||||||
sent) setsid -f sent "$file" 2>/dev/null ;;
|
|
||||||
tex) textype "$file" ;;
|
|
||||||
*) sed -n '/^#!/s/^#!//p; q' "$file" | xargs -r -I % "$file" ;;
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -32,7 +32,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||||||
else
|
else
|
||||||
|
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary")
|
secondary=$(echo "$screens" | grep -v ^"$primary"$)
|
||||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
||||||
fi
|
fi
|
||||||
@ -40,9 +40,9 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||||||
|
|
||||||
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
|
secondary=$(echo "$screens" | grep -v ^"$primary"$ | dmenu -i -p "Select secondary display:")
|
||||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||||
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
|
tertiary=$(echo "$screens" | grep -v ^"$primary"$ | grep -v ^"$secondary"$ | dmenu -i -p "Select third display:")
|
||||||
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
|
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# some choice programs to use to open it.
|
# some choice programs to use to open it.
|
||||||
feed="${1:-$(true | dmenu -p 'Paste URL or file path')}"
|
feed="${1:-$(true | dmenu -p 'Paste URL or file path')}"
|
||||||
|
|
||||||
case "$(printf "copy url\\nsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | dmenu -i -p "Open it with?")" in
|
case "$(printf "copy url\\nnsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | dmenu -i -p "Open it with?")" in
|
||||||
"copy url") echo "$feed" | xclip -selection clipboard ;;
|
"copy url") echo "$feed" | xclip -selection clipboard ;;
|
||||||
mpv) setsid -f mpv -quiet "$feed" >/dev/null 2>&1 ;;
|
mpv) setsid -f mpv -quiet "$feed" >/dev/null 2>&1 ;;
|
||||||
"mpv loop") setsid -f mpv -quiet --loop "$feed" >/dev/null 2>&1 ;;
|
"mpv loop") setsid -f mpv -quiet --loop "$feed" >/dev/null 2>&1 ;;
|
||||||
@ -13,7 +13,7 @@ case "$(printf "copy url\\nsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv
|
|||||||
"queue yt-dlp audio") qndl "$feed" 'yt-dlp -o "%(title)s.%(ext)s" -f bestaudio --embed-metadata --restrict-filenames' ;;
|
"queue yt-dlp audio") qndl "$feed" 'yt-dlp -o "%(title)s.%(ext)s" -f bestaudio --embed-metadata --restrict-filenames' ;;
|
||||||
"queue download") qndl "$feed" 'curl -LO' >/dev/null 2>&1 ;;
|
"queue download") qndl "$feed" 'curl -LO' >/dev/null 2>&1 ;;
|
||||||
PDF) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && zathura "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
PDF) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && zathura "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
||||||
sxiv) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
nsxiv) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
||||||
vim) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && setsid -f "$TERMINAL" -e "$EDITOR" "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
vim) curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" && setsid -f "$TERMINAL" -e "$EDITOR" "/tmp/$(echo "$feed" | sed "s|.*/||;s/%20/ /g")" >/dev/null 2>&1 ;;
|
||||||
setbg) curl -L "$feed" > $XDG_CACHE_HOME/pic ; xwallpaper --zoom $XDG_CACHE_HOME/pic >/dev/null 2>&1 ;;
|
setbg) curl -L "$feed" > $XDG_CACHE_HOME/pic ; xwallpaper --zoom $XDG_CACHE_HOME/pic >/dev/null 2>&1 ;;
|
||||||
browser) setsid -f "$BROWSER" "$feed" >/dev/null 2>&1 ;;
|
browser) setsid -f "$BROWSER" "$feed" >/dev/null 2>&1 ;;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# If there is already a running instance, user will be prompted to end it.
|
# If there is already a running instance, user will be prompted to end it.
|
||||||
|
|
||||||
getdim() { xrandr | sed -n "s/\s*\([0-9]\+x[0-9]\+\).*\*.*/\1/p" ;}
|
getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' ' ;}
|
||||||
|
|
||||||
updateicon() { \
|
updateicon() { \
|
||||||
echo "$1" > /tmp/recordingicon
|
echo "$1" > /tmp/recordingicon
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# A helper script for LaTeX/groff files used by `compiler` and `opout`.
|
# A helper script for LaTeX/groff files used by `compiler` and `opout`.
|
||||||
# The user can add the root file of a larger project as a comment as below:
|
# The user can add the root file of a larger project as a comment as below:
|
||||||
# % root = mainfile.tex
|
# % root = mainfile.tex
|
||||||
# And the compiler script will run on that instead of the opened file.
|
# And the compiler script will run on that instead of the opened file.
|
||||||
|
|
||||||
texroot="$(grep -i "^.\+\s*root\s*=\s*\S\+" "$1")"
|
texroot="$(sed -n 's/^\s*%.*root\s*=\s*\(\S\+\).*/\1/p' "${1}")"
|
||||||
texroot="${texroot##*=}"
|
[ -f "${texroot}" ] && readlink -f "${texroot}" || exit "1"
|
||||||
texroot="${texroot//[\"\' ]}"
|
|
||||||
|
|
||||||
[ -f "$texroot" ] && readlink -f "$texroot" || exit 1
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# This is a wrapper script for lb that allows it to create image previews with
|
# This is a wrapper script for lf that allows it to create image previews with
|
||||||
# ueberzug. This works in concert with the lf configuration file and the
|
# ueberzug. This works in concert with the lf configuration file and the
|
||||||
# lf-cleaner script.
|
# lf-cleaner script.
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Feed script a url or file location.
|
# Feed script a url or file location.
|
||||||
# If an image, it will view in sxiv,
|
# If an image, it will view in nsxiv,
|
||||||
# if a video or gif, it will view in mpv
|
# if a video or gif, it will view in mpv
|
||||||
# if a music file or pdf, it will download,
|
# if a music file or pdf, it will download,
|
||||||
# otherwise it opens link in browser.
|
# otherwise it opens link in browser.
|
||||||
@ -15,8 +15,8 @@ fi
|
|||||||
case "$url" in
|
case "$url" in
|
||||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
||||||
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
||||||
*png|*jpg|*jpe|*jpeg|*gif)
|
*png|*jpg|*jpe|*jpeg|*gif|*webp)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
*pdf|*cbz|*cbr)
|
*pdf|*cbz|*cbr)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
*mp3|*flac|*opus|*mp3?source*)
|
*mp3|*flac|*opus|*mp3?source*)
|
||||||
|
|||||||
@ -7,12 +7,14 @@
|
|||||||
# variables
|
# variables
|
||||||
output="$(date '+%y%m%d-%H%M-%S').png"
|
output="$(date '+%y%m%d-%H%M-%S').png"
|
||||||
xclip_cmd="xclip -sel clip -t image/png"
|
xclip_cmd="xclip -sel clip -t image/png"
|
||||||
|
ocr_cmd="xclip -sel clip"
|
||||||
|
|
||||||
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
|
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
|
||||||
"a selected area") maim -u -s pic-selected-"${output}" ;;
|
"a selected area") maim -u -s pic-selected-"${output}" ;;
|
||||||
"current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;;
|
"current window") maim -B -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;;
|
||||||
"full screen") maim -q -d 0.2 pic-full-"${output}" ;;
|
"full screen") maim -q -d 0.2 pic-full-"${output}" ;;
|
||||||
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
|
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
|
||||||
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
||||||
"full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;;
|
"full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;;
|
||||||
|
"a selected area (OCR)") tmpfile=$(mktemp /tmp/ocr-XXXXXX.png) && maim -u -s > "$tmpfile" && tesseract "$tmpfile" - -l eng | ${ocr_cmd} && rm "$tmpfile" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -36,7 +36,7 @@ filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6
|
|||||||
unopenedluks="$(for drive in $allluks; do
|
unopenedluks="$(for drive in $allluks; do
|
||||||
uuid="${drive%% *}"
|
uuid="${drive%% *}"
|
||||||
uuid="${uuid//-}" # This is a bashism.
|
uuid="${uuid//-}" # This is a bashism.
|
||||||
for open in $decrypted; do
|
[ -n "$decrypted" ] && for open in $decrypted; do
|
||||||
[ "$uuid" = "$open" ] && break 1
|
[ "$uuid" = "$open" ] && break 1
|
||||||
done && continue 1
|
done && continue 1
|
||||||
echo "🔒 $drive"
|
echo "🔒 $drive"
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# When I open an image from the file manager in sxiv (the image viewer), I want
|
# When I open an image from the file manager in nsxiv (the image viewer), I want
|
||||||
# to be able to press the next/previous keys to key through the rest of the
|
# to be able to press the next/previous keys to key through the rest of the
|
||||||
# images in the same directory. This script "rotates" the content of a
|
# images in the same directory. This script "rotates" the content of a
|
||||||
# directory based on the first chosen file, so that if I open the 15th image,
|
# directory based on the first chosen file, so that if I open the 15th image,
|
||||||
# if I press next, it will go to the 16th etc. Autistic, I know, but this is
|
# if I press next, it will go to the 16th etc. Autistic, I know, but this is
|
||||||
# one of the reasons that sxiv is great for being able to read standard input.
|
# one of the reasons that nsxiv is great for being able to read standard input.
|
||||||
|
|
||||||
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
|
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
|
||||||
base="$(basename "$1")"
|
base="$(basename "$1")"
|
||||||
|
|||||||
@ -13,11 +13,18 @@ bgloc="${XDG_DATA_HOME:-$HOME/.local/share}/bg"
|
|||||||
dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc"
|
dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc"
|
||||||
zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc"
|
zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc"
|
||||||
|
|
||||||
|
# Give -s as parameter to make notifications silent.
|
||||||
|
while getopts "s" o; do case "${o}" in
|
||||||
|
s) silent='1' ;;
|
||||||
|
esac done
|
||||||
|
|
||||||
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
trueloc="$(readlink -f "$1")" &&
|
trueloc="$(readlink -f "$1")" &&
|
||||||
case "$(file --mime-type -b "$trueloc")" in
|
case "$(file --mime-type -b "$trueloc")" in
|
||||||
image/* ) ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." ;;
|
image/* ) ln -sf "$trueloc" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Changing wallpaper..." ;;
|
||||||
inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && notify-send -i "$bgloc" "Random Wallpaper chosen." ;;
|
inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Random Wallpaper chosen." ;;
|
||||||
*) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
*) [ -z "$silent" ] && notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If pywal is installed, use it.
|
# If pywal is installed, use it.
|
||||||
|
|||||||
@ -8,13 +8,12 @@ shell_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
|||||||
zsh_named_dirs="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
|
zsh_named_dirs="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
|
||||||
lf_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcutrc"
|
lf_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcutrc"
|
||||||
vim_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/nvim/shortcuts.vim"
|
vim_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/nvim/shortcuts.vim"
|
||||||
ranger_shortcuts="/dev/null"
|
|
||||||
qute_shortcuts="/dev/null"
|
qute_shortcuts="/dev/null"
|
||||||
fish_shortcuts="/dev/null"
|
fish_shortcuts="/dev/null"
|
||||||
vifm_shortcuts="/dev/null"
|
vifm_shortcuts="/dev/null"
|
||||||
|
|
||||||
# Remove, prepare files
|
# Remove, prepare files
|
||||||
rm -f "$lf_shortcuts" "$ranger_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
|
rm -f "$lf_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
|
||||||
printf "# vim: filetype=sh\\n" > "$fish_shortcuts"
|
printf "# vim: filetype=sh\\n" > "$fish_shortcuts"
|
||||||
printf "# vim: filetype=sh\\nalias " > "$shell_shortcuts"
|
printf "# vim: filetype=sh\\nalias " > "$shell_shortcuts"
|
||||||
printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts"
|
printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts"
|
||||||
@ -27,7 +26,6 @@ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
|
|||||||
printf(\"abbr %s \42cd %s; and ls -A\42\n\",\$1,\$2) >> \"$fish_shortcuts\" ;
|
printf(\"abbr %s \42cd %s; and ls -A\42\n\",\$1,\$2) >> \"$fish_shortcuts\" ;
|
||||||
printf(\"map g%s :cd %s<CR>\nmap t%s <tab>:cd %s<CR><tab>\nmap M%s <tab>:cd %s<CR><tab>:mo<CR>\nmap Y%s <tab>:cd %s<CR><tab>:co<CR> \n\",\$1,\$2, \$1, \$2, \$1, \$2, \$1, \$2) >> \"$vifm_shortcuts\" ;
|
printf(\"map g%s :cd %s<CR>\nmap t%s <tab>:cd %s<CR><tab>\nmap M%s <tab>:cd %s<CR><tab>:mo<CR>\nmap Y%s <tab>:cd %s<CR><tab>:co<CR> \n\",\$1,\$2, \$1, \$2, \$1, \$2, \$1, \$2) >> \"$vifm_shortcuts\" ;
|
||||||
printf(\"config.bind(';%s', \42set downloads.location.directory %s ;; hint links download\42) \n\",\$1,\$2) >> \"$qute_shortcuts\" ;
|
printf(\"config.bind(';%s', \42set downloads.location.directory %s ;; hint links download\42) \n\",\$1,\$2) >> \"$qute_shortcuts\" ;
|
||||||
printf(\"map g%s cd %s\nmap t%s tab_new %s\nmap m%s shell mv -v %%s %s\nmap Y%s shell cp -rv %%s %s \n\",\$1,\$2,\$1,\$2, \$1, \$2, \$1, \$2) >> \"$ranger_shortcuts\" ;
|
|
||||||
printf(\"map C%s cd \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
|
printf(\"map C%s cd \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
|
||||||
printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
|
printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
|
||||||
|
|
||||||
@ -38,6 +36,5 @@ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
|
|||||||
printf(\"hash -d %s=%s \n\",\$1,\$2) >> \"$zsh_named_dirs\" ;
|
printf(\"hash -d %s=%s \n\",\$1,\$2) >> \"$zsh_named_dirs\" ;
|
||||||
printf(\"abbr %s \42\$EDITOR %s\42 \n\",\$1,\$2) >> \"$fish_shortcuts\" ;
|
printf(\"abbr %s \42\$EDITOR %s\42 \n\",\$1,\$2) >> \"$fish_shortcuts\" ;
|
||||||
printf(\"map %s :e %s<CR> \n\",\$1,\$2) >> \"$vifm_shortcuts\" ;
|
printf(\"map %s :e %s<CR> \n\",\$1,\$2) >> \"$vifm_shortcuts\" ;
|
||||||
printf(\"map %s shell \$EDITOR %s \n\",\$1,\$2) >> \"$ranger_shortcuts\" ;
|
|
||||||
printf(\"map E%s \$\$EDITOR \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
|
printf(\"map E%s \$\$EDITOR \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
|
||||||
printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
|
printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
|
||||||
|
|||||||
@ -13,7 +13,7 @@ case $BLOCK_BUTTON in
|
|||||||
- Scroll to change adjust xbacklight." ;;
|
- Scroll to change adjust xbacklight." ;;
|
||||||
4) xbacklight -inc 10 ;;
|
4) xbacklight -inc 10 ;;
|
||||||
5) xbacklight -dec 10 ;;
|
5) xbacklight -dec 10 ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Loop through all attached batteries and format the info
|
# Loop through all attached batteries and format the info
|
||||||
|
|||||||
@ -19,11 +19,11 @@ case "$clock" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s|..27m|</span></b>|")" && notify-send "Appointments" "$(calcurse -d3)" ;;
|
1) notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|sed 's/ //g')\>/<b><span color='red'>&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
|
||||||
2) setsid -f "$TERMINAL" -e calcurse ;;
|
2) setsid -f "$TERMINAL" -e calcurse ;;
|
||||||
3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
|
3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
|
||||||
- Middle click opens calcurse if installed" ;;
|
- Middle click opens calcurse if installed" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
date "+%Y %b %d (%a) $icon%I:%M%p"
|
date "+%Y %b %d (%a) $icon%I:%M%p"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case $BLOCK_BUTTON in
|
|||||||
3) notify-send "🖥 CPU module " "\- Shows CPU temperature.
|
3) notify-send "🖥 CPU module " "\- Shows CPU temperature.
|
||||||
- Click to show intensive processes.
|
- Click to show intensive processes.
|
||||||
- Middle click to open htop." ;;
|
- Middle click to open htop." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sensors | awk '/Core 0/ {print "🌡" $3}'
|
sensors | awk '/Core 0/ {print "🌡" $3}'
|
||||||
|
|||||||
@ -12,7 +12,7 @@ case $BLOCK_BUTTON in
|
|||||||
2) setsid -f "$TERMINAL" -e htop ;;
|
2) setsid -f "$TERMINAL" -e htop ;;
|
||||||
3) notify-send "🪨 CPU load module" "Each bar represents
|
3) notify-send "🪨 CPU load module" "Each bar represents
|
||||||
one CPU core";;
|
one CPU core";;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# id total idle
|
# id total idle
|
||||||
|
|||||||
@ -11,7 +11,7 @@ case $BLOCK_BUTTON in
|
|||||||
1) notify-send "💽 Disk space" "$(df -h --output=target,used,size)" ;;
|
1) notify-send "💽 Disk space" "$(df -h --output=target,used,size)" ;;
|
||||||
3) notify-send "💽 Disk module" "\- Shows used hard drive space.
|
3) notify-send "💽 Disk module" "\- Shows used hard drive space.
|
||||||
- Click to show all disk info." ;;
|
- Click to show all disk info." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$location" in
|
case "$location" in
|
||||||
|
|||||||
@ -274,7 +274,7 @@ case $BLOCK_BUTTON in
|
|||||||
3) notify-send "🗺️ Doppler RADAR module" "\- Left click for local Doppler RADAR.
|
3) notify-send "🗺️ Doppler RADAR module" "\- Left click for local Doppler RADAR.
|
||||||
- Middle click to update RADAR location.
|
- Middle click to update RADAR location.
|
||||||
After $secs seconds, new clicks will also automatically update the doppler RADAR." ;;
|
After $secs seconds, new clicks will also automatically update the doppler RADAR." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo 🌅
|
echo 🌅
|
||||||
|
|||||||
@ -7,7 +7,7 @@ url="${WTTRURL:-wttr.in}"
|
|||||||
weatherreport="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport"
|
weatherreport="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport"
|
||||||
|
|
||||||
# Get a weather report from 'wttr.in' and save it locally.
|
# Get a weather report from 'wttr.in' and save it locally.
|
||||||
getforecast() { curl -sf "$url/$LOCATION" > "$weatherreport" || exit 1; }
|
getforecast() { timeout --signal=1 2s curl -sf "$url/$LOCATION" > "$weatherreport" || exit 1; }
|
||||||
|
|
||||||
# Forecast should be updated only once a day.
|
# Forecast should be updated only once a day.
|
||||||
checkforecast() {
|
checkforecast() {
|
||||||
@ -38,14 +38,14 @@ showweather() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e less -Srf "$weatherreport" ;;
|
1) setsid -f "$TERMINAL" -e less -Sf "$weatherreport" ;;
|
||||||
2) getforecast && showweather ;;
|
2) getforecast && showweather ;;
|
||||||
3) notify-send "🌈 Weather module" "\- Left click for full forecast.
|
3) notify-send "🌈 Weather module" "\- Left click for full forecast.
|
||||||
- Middle click to update forecast.
|
- Middle click to update forecast.
|
||||||
☔: Chance of rain/snow
|
☔: Chance of rain/snow
|
||||||
🥶: Daily low
|
🥶: Daily low
|
||||||
🌞: Daily high" ;;
|
🌞: Daily high" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
checkforecast || getforecast
|
checkforecast || getforecast
|
||||||
|
|||||||
@ -13,5 +13,5 @@ case $BLOCK_BUTTON in
|
|||||||
2) restartwm ;;
|
2) restartwm ;;
|
||||||
3) notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
3) notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
||||||
- Middle click to refresh window manager." ;;
|
- Middle click to refresh window manager." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac; echo "❓"
|
esac; echo "❓"
|
||||||
|
|||||||
@ -14,13 +14,20 @@ case $BLOCK_BUTTON in
|
|||||||
🌐: ethernet working
|
🌐: ethernet working
|
||||||
🔒: vpn is active
|
🔒: vpn is active
|
||||||
" ;;
|
" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
|
# Wifi
|
||||||
|
if [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then
|
||||||
wifiicon="$(awk '/^\s*w/ { print "📶", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
wifiicon="$(awk '/^\s*w/ { print "📶", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||||
elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then
|
elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
|
||||||
grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="📡 " || wifiicon="❌ "
|
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="📡 " || wifiicon="❌ "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s%s%s\n" "$wifiicon" "$(sed "s/down/❎/;s/up/🌐/" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/🔒/" /sys/class/net/tun*/operstate 2>/dev/null)"
|
# Ethernet
|
||||||
|
[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="🌐" || ethericon="❎"
|
||||||
|
|
||||||
|
# TUN
|
||||||
|
[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" 🔒"
|
||||||
|
|
||||||
|
printf "%s%s%s\n" "$wifiicon" "$ethericon" "$tunicon"
|
||||||
|
|||||||
@ -11,7 +11,7 @@ case $BLOCK_BUTTON in
|
|||||||
pkill -RTMIN+30 "${STATUSBAR:-dwmblocks}";;
|
pkill -RTMIN+30 "${STATUSBAR:-dwmblocks}";;
|
||||||
3) notify-send "⌨ Keyboard/language module" "$(printf "%s" "\- Current layout: $(setxkbmap -query | grep -oP 'layout:\s*\K\w+')")
|
3) notify-send "⌨ Keyboard/language module" "$(printf "%s" "\- Current layout: $(setxkbmap -query | grep -oP 'layout:\s*\K\w+')")
|
||||||
- Left click to change keyboard.";;
|
- Left click to change keyboard.";;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$kb"
|
echo "$kb"
|
||||||
|
|||||||
@ -4,13 +4,13 @@
|
|||||||
# When clicked, brings up `neomutt`.
|
# When clicked, brings up `neomutt`.
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e neomutt ;;
|
1) setsid -w -f "$TERMINAL" -e neomutt; pkill -RTMIN+12 "${STATUSBAR:-dwmblocks}" ;;
|
||||||
2) setsid -f mw -Y >/dev/null ;;
|
2) setsid -f mw -Y >/dev/null ;;
|
||||||
3) notify-send "📬 Mail module" "\- Shows unread mail
|
3) notify-send "📬 Mail module" "\- Shows unread mail
|
||||||
- Shows 🔃 if syncing mail
|
- Shows 🔃 if syncing mail
|
||||||
- Left click opens neomutt
|
- Left click opens neomutt
|
||||||
- Middle click syncs mail" ;;
|
- Middle click syncs mail" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
|
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case $BLOCK_BUTTON in
|
|||||||
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
||||||
- Click to show memory hogs.
|
- Click to show memory hogs.
|
||||||
- Middle click to open htop." ;;
|
- Middle click to open htop." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
|
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
|
||||||
|
|||||||
@ -33,5 +33,5 @@ case $BLOCK_BUTTON in
|
|||||||
- 🌖: Waning Gibbous
|
- 🌖: Waning Gibbous
|
||||||
- 🌗: Last Quarter
|
- 🌗: Last Quarter
|
||||||
- 🌘: Waning Crescent" ;;
|
- 🌘: Waning Crescent" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
filter() { sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q" | paste -sd ' ' -;}
|
filter() { sed "/^volume:/d;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q" | paste -sd ' ' -;}
|
||||||
|
|
||||||
pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 &
|
pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 &
|
||||||
|
|
||||||
@ -14,6 +14,6 @@ case $BLOCK_BUTTON in
|
|||||||
- Scroll changes track.";; # right click, pause/unpause
|
- Scroll changes track.";; # right click, pause/unpause
|
||||||
4) mpc prev | filter ;; # scroll up, previous
|
4) mpc prev | filter ;; # scroll up, previous
|
||||||
5) mpc next | filter ;; # scroll down, next
|
5) mpc next | filter ;; # scroll down, next
|
||||||
6) mpc status | filter ; "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) mpc status | filter ; setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
*) mpc status | filter ;;
|
*) mpc status | filter ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -8,7 +8,7 @@ case $BLOCK_BUTTON in
|
|||||||
1) setsid -f "$TERMINAL" -e bmon ;;
|
1) setsid -f "$TERMINAL" -e bmon ;;
|
||||||
3) notify-send "🌐 Network traffic module" "🔻: Traffic received
|
3) notify-send "🌐 Network traffic module" "🔻: Traffic received
|
||||||
🔺: Traffic transmitted" ;;
|
🔺: Traffic transmitted" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
|
|||||||
@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid "$TERMINAL" -e newsboat ;;
|
1) setsid "$TERMINAL" -e newsboat ;;
|
||||||
2) setsid -f newsup >/dev/null exit ;;
|
2) setsid -f newsup >/dev/null && exit ;;
|
||||||
3) notify-send "📰 News module" "\- Shows unread news items
|
3) notify-send "📰 News module" "\- Shows unread news items
|
||||||
- Shows 🔃 if updating with \`newsup\`
|
- Shows 🔃 if updating with \`newsup\`
|
||||||
- Left click opens newsboat
|
- Left click opens newsboat
|
||||||
- Middle click syncs RSS feeds
|
- Middle click syncs RSS feeds
|
||||||
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
|
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print "📰" $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)"
|
cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print "📰" $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)"
|
||||||
|
|||||||
@ -23,7 +23,7 @@ case $BLOCK_BUTTON in
|
|||||||
3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages
|
3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages
|
||||||
- Left click to upgrade packages
|
- Left click to upgrade packages
|
||||||
- Middle click to show upgradable packages" ;;
|
- Middle click to show upgradable packages" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/📦/;s/^📦0$//g"
|
pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/📦/;s/^📦0$//g"
|
||||||
|
|||||||
@ -44,7 +44,7 @@ case $BLOCK_BUTTON in
|
|||||||
- Shows 🔃 if updating prices.
|
- Shows 🔃 if updating prices.
|
||||||
- <b>Last updated:
|
- <b>Last updated:
|
||||||
$uptime</b>" ;;
|
$uptime</b>" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$updateme" ] &&
|
[ -n "$updateme" ] &&
|
||||||
|
|||||||
@ -13,7 +13,7 @@ case $BLOCK_BUTTON in
|
|||||||
1) setsid -f "$TERMINAL" -e tsp -l ;;
|
1) setsid -f "$TERMINAL" -e tsp -l ;;
|
||||||
3) notify-send "Tasks module" "🤖: number of running/queued background tasks
|
3) notify-send "Tasks module" "🤖: number of running/queued background tasks
|
||||||
- Left click opens tsp" ;; # Right click
|
- Left click opens tsp" ;; # Right click
|
||||||
2) $EDITOR "$0" ;; # Middle click
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ "$num" != "0(0)" ] &&
|
[ "$num" != "0(0)" ] &&
|
||||||
|
|||||||
@ -11,9 +11,9 @@ transmission-remote -l | grep % |
|
|||||||
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e tremc ;;
|
1) setsid -f "$TERMINAL" -e stig ;;
|
||||||
2) td-toggle ;;
|
2) td-toggle ;;
|
||||||
3) notify-send "🌱 Torrent module" "\- Left click to open tremc.
|
3) notify-send "🌱 Torrent module" "\- Left click to open stig.
|
||||||
- Middle click to toggle transmission.
|
- Middle click to toggle transmission.
|
||||||
- Shift click to edit script.
|
- Shift click to edit script.
|
||||||
Module shows number of torrents:
|
Module shows number of torrents:
|
||||||
@ -23,5 +23,5 @@ Module shows number of torrents:
|
|||||||
🔽: downloading
|
🔽: downloading
|
||||||
✅: done
|
✅: done
|
||||||
🌱: done and seeding" ;;
|
🌱: done and seeding" ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -3,14 +3,14 @@
|
|||||||
# Prints the current volume or 🔇 if muted.
|
# Prints the current volume or 🔇 if muted.
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e pulsemixer ;;
|
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
|
||||||
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
|
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
|
||||||
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
|
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
|
||||||
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
|
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
|
||||||
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
|
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
|
||||||
- Middle click to mute.
|
- Middle click to mute.
|
||||||
- Scroll to change." ;;
|
- Scroll to change." ;;
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
||||||
|
|||||||
@ -8,7 +8,7 @@ vidlist="
|
|||||||
dwm (window manager) https://videos.lukesmith.xyz/videos/watch/f6b78db7-b368-4647-bc64-28c08fff1988
|
dwm (window manager) https://videos.lukesmith.xyz/videos/watch/f6b78db7-b368-4647-bc64-28c08fff1988
|
||||||
dwmblocks (status bar) https://videos.lukesmith.xyz/w/mmxHMbqZZEr5FManB57Yy1
|
dwmblocks (status bar) https://videos.lukesmith.xyz/w/mmxHMbqZZEr5FManB57Yy1
|
||||||
pacman (installing/managing programs) https://videos.lukesmith.xyz/videos/watch/8e7cadb9-0fed-47ce-a2a8-6635fa48614b
|
pacman (installing/managing programs) https://videos.lukesmith.xyz/videos/watch/8e7cadb9-0fed-47ce-a2a8-6635fa48614b
|
||||||
sxiv (image viewer) https://videos.lukesmith.xyz/videos/watch/ad4c8d85-90c3-4f3d-a1f3-89129e64a3c2
|
sxiv/nsxiv (image viewer) https://videos.lukesmith.xyz/videos/watch/ad4c8d85-90c3-4f3d-a1f3-89129e64a3c2
|
||||||
st (terminal) https://videos.lukesmith.xyz/videos/watch/efddd39d-bac5-4599-b572-177beb4ce6e8
|
st (terminal) https://videos.lukesmith.xyz/videos/watch/efddd39d-bac5-4599-b572-177beb4ce6e8
|
||||||
i3 (old window manager) https://videos.lukesmith.xyz/videos/watch/b861525c-7ada-40ee-a2bb-b5e1ffe0f48b
|
i3 (old window manager) https://videos.lukesmith.xyz/videos/watch/b861525c-7ada-40ee-a2bb-b5e1ffe0f48b
|
||||||
neomutt (email) https://videos.lukesmith.xyz/videos/watch/83122e83-52d9-4278-ae1a-7d1beeb50c8e
|
neomutt (email) https://videos.lukesmith.xyz/videos/watch/83122e83-52d9-4278-ae1a-7d1beeb50c8e
|
||||||
|
|||||||
3
.local/bin/xdg-terminal-exec
Executable file
3
.local/bin/xdg-terminal-exec
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
"$TERMINAL" -e "$@"
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Image viewer
|
Name=Image viewer
|
||||||
Exec=/usr/bin/sxiv -a %f
|
Exec=/usr/bin/nsxiv -a %f
|
||||||
|
|||||||
@ -1,9 +1,8 @@
|
|||||||
_
|
_ __ _____ _(_)_ __
|
||||||
_____ _(_)_ __
|
| '_ \/ __\ \/ / \ \ / /
|
||||||
/ __\ \/ / \ \ / /
|
| | | \__ \> <| |\ V /
|
||||||
\__ \> <| |\ V /
|
|_| |_|___/_/\_\_| \_/
|
||||||
|___/_/\_\_| \_/
|
nsxiv is the image viewer.
|
||||||
sxiv is the image viewer.
|
|
||||||
h/j/k/l - Pan image
|
h/j/k/l - Pan image
|
||||||
-/+ - Zoom out/in
|
-/+ - Zoom out/in
|
||||||
Enter - Toggle thumbnail mode
|
Enter - Toggle thumbnail mode
|
||||||
@ -12,4 +11,4 @@ sxiv is the image viewer.
|
|||||||
r - Reload image if changed
|
r - Reload image if changed
|
||||||
m - Mark/unmark image
|
m - Mark/unmark image
|
||||||
w - Zoom to fit window
|
w - Zoom to fit window
|
||||||
ctrl-x - Run external command (see ~/.config/sxiv/exec/key-handler for options)
|
ctrl-x - Run external command (see ~/.config/nsxiv/exec/key-handler for options)
|
||||||
@ -9,7 +9,7 @@ These are the dotfiles deployed by [LARBS](https://larbs.xyz) and as seen on
|
|||||||
- zsh (shell)
|
- zsh (shell)
|
||||||
- lf (file manager)
|
- lf (file manager)
|
||||||
- mpd/ncmpcpp (music)
|
- mpd/ncmpcpp (music)
|
||||||
- sxiv (image/gif viewer)
|
- nsxiv (image/gif viewer)
|
||||||
- mpv (video player)
|
- mpv (video player)
|
||||||
- other stuff like xdg default programs, inputrc and more, etc.
|
- other stuff like xdg default programs, inputrc and more, etc.
|
||||||
- I try to minimize what's directly in `~` so:
|
- I try to minimize what's directly in `~` so:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user