Diff color in Kitty. Imv as best image viewer.
Manga mode to browse using imv. Imv generate title update fixed.
This commit is contained in:
parent
448c3cca1c
commit
176aa1367b
9 changed files with 106 additions and 7 deletions
|
@ -40,5 +40,6 @@ constant = " "
|
|||
" " = ["Bitwig Studio"]
|
||||
" " = ["kcharselect"]
|
||||
" " = ["scrcpy"]
|
||||
"" = ["p3x-onenote"]
|
||||
# " " = ["scrcpy"]
|
||||
|
||||
|
|
|
@ -55,6 +55,10 @@ abbr v "xbpsui"
|
|||
## Games
|
||||
set -x SDL_AUDIODRIVER alsa
|
||||
|
||||
## Aliases
|
||||
|
||||
alias imv 'imv -c "exec _wid=\$(xdo id);xprop -f WM_CLIENT_MACHINE 8s -set WM_CLIENT_MACHINE \$(hostname) -id \$_wid;xprop -f _NET_WM_PID 32c -set _NET_WM_PID \$imv_pid -id \$_wid;pidswallow -t \$_wid"'
|
||||
|
||||
## Utilities
|
||||
abbr icat 'kitty +kitten icat'
|
||||
abbr d "kitty +kitten diff"
|
||||
|
@ -62,7 +66,8 @@ abbr mpv 'mpv --no-input-default-bindings'
|
|||
abbr music 'mpc -q play; ~/.config/ncmpcpp/art.sh; sleep 1; ~/.config/ncmpcpp/kitty.sh &; ncmpcpp'
|
||||
abbr bars '~/.config/ncmpcpp/kitty.sh &; cava'
|
||||
abbr weather 'curl wttr.in'
|
||||
abbr manga 'sakura find -type f | sort | imv -s none -b 1F1F21'
|
||||
# abbr manga 'sakura find -type f | sort | imv -s none -b 1F1F21'
|
||||
abbr manga 'imv -r .'
|
||||
abbr cp 'rsync -ah --progress'
|
||||
|
||||
## Web
|
||||
|
|
|
@ -10,7 +10,9 @@ suppress_default_binds = true
|
|||
|
||||
scaling_mode = none
|
||||
|
||||
background = checks
|
||||
background = 1F1F21
|
||||
|
||||
title_text = $(xdotool getactivewindow set_window --name "[ $imv_current_index / $imv_file_count ] : $(echo "${PWD##*/}")" )
|
||||
|
||||
[aliases]
|
||||
# Define aliases here. Any arguments passed to an alias are appended to the
|
||||
|
@ -52,6 +54,7 @@ s = scaling next
|
|||
<Shift+S> = upscaling next
|
||||
a = zoom actual
|
||||
r = reset
|
||||
w = exec wal -i "$imv_current_file"
|
||||
|
||||
# Rotate the currently open image by 90 degrees by pressing 'R'
|
||||
<Shift+R> = exec mogrify -rotate 90 "$imv_current_file"
|
||||
|
|
|
@ -81,7 +81,7 @@ main() {
|
|||
video/*)
|
||||
video "$1";;
|
||||
inode/directory)
|
||||
[ -z "${1##*/..*}" ] && echo || exa --color always "$1";;
|
||||
[ -z "${1##*/..*}" ] && echo || exa -Fa --color always "$1";;
|
||||
*);;
|
||||
esac
|
||||
}
|
||||
|
|
|
@ -171,7 +171,8 @@ filetype <audio/*> mpv %c %i &
|
|||
filetype <video/*> mpv %c %i &
|
||||
|
||||
" Images
|
||||
filetype <image/*> fish -c "sakura imv -r %d -n %c"
|
||||
" filetype <image/*> imv -r %d -n %c
|
||||
filetype <image/*> find %d -maxdepth 1 | sort | imv -s full
|
||||
|
||||
" Archives
|
||||
" fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
|
||||
|
@ -349,5 +350,5 @@ set statusline="%1* %-26t %2* %= %1* %-5s"
|
|||
set title
|
||||
set iec
|
||||
|
||||
autocmd DirEnter ~/Videos/*,~/Pictures/manga/** setlocal sort=+name,+mtime,-dir
|
||||
autocmd DirEnter ~/Videos/*,~/Pictures/manga/**,~/Books/** setlocal sort=+name,+mtime,-dir
|
||||
autocmd DirEnter ~/Videos/* filter .ass|.srt
|
||||
|
|
23
terminal/.config/wal/templates/diff.conf
Normal file
23
terminal/.config/wal/templates/diff.conf
Normal file
|
@ -0,0 +1,23 @@
|
|||
pygments_style monokai
|
||||
foreground {foreground}
|
||||
background {background}
|
||||
title_fg {foreground}
|
||||
title_bg {background}
|
||||
margin_bg {background}
|
||||
margin_fg #4b5263
|
||||
|
||||
removed_bg {background}
|
||||
highlight_removed_bg #da4453
|
||||
removed_margin_bg #da4453
|
||||
|
||||
added_bg {background}
|
||||
highlight_added_bg #27ae60
|
||||
added_margin_bg #27ae60
|
||||
filler_bg {background}
|
||||
margin_filler_bg none
|
||||
hunk_margin_bg {background}
|
||||
hunk_bg {background}
|
||||
search_bg {background}
|
||||
search_fg {foreground}
|
||||
select_bg {foreground}
|
||||
select_fg {background}
|
58
terminal/.config/wal/templates/dunstrc
Normal file
58
terminal/.config/wal/templates/dunstrc
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Dunst Config - Dark
|
||||
# --------------------
|
||||
|
||||
[global]
|
||||
monitor = 0
|
||||
follow = mouse
|
||||
geometry = "500x5-30+30"
|
||||
indicate_hidden = yes
|
||||
shrink = yes
|
||||
transparency = 20
|
||||
separator_height = 2
|
||||
padding = 8
|
||||
horizontal_padding = 13
|
||||
frame_width = 2
|
||||
frame_color = "{color2}"
|
||||
separator_color = "{color8}"
|
||||
sort = no
|
||||
idle_threshold = 120
|
||||
font = iosevka nerd font mono 10
|
||||
line_height = 0
|
||||
markup = full
|
||||
format = "<b>%s</b>\n<i>%b</i>"
|
||||
alignment = left
|
||||
show_age_threshold = 60
|
||||
word_wrap = yes
|
||||
ignore_newline = no
|
||||
stack_duplicates = false
|
||||
hide_duplicate_count = yes
|
||||
show_indicators = yes
|
||||
icon_position = left
|
||||
sticky_history = no
|
||||
history_length = 20
|
||||
browser = qutebrowser
|
||||
always_run_script = true
|
||||
title = Dunst
|
||||
class = Dunst
|
||||
corner_radius = 0
|
||||
icon_path = /usr/share/icons/Papirus-Dark/48x48/actions/:/usr/share/icons/Papirus-Dark/48x48/apps/:/usr/share/icons/Papirus-Dark/48x48/devices/:/usr/share/icons/Papirus-Dark/48x48/emblems/:/usr/share/icons/Papirus-Dark/48x48/emotes/:/usr/share/icons/Papirus-Dark/48x48/mimetypes/:/usr/share/icons/Papirus-Dark/48x48/places/:/usr/share/icons/Papirus-Dark/48x48/status/
|
||||
mouse_left_click = close_current
|
||||
mouse_middle_click = do_action
|
||||
mouse_right_click = close_all
|
||||
|
||||
[shortcuts]
|
||||
close = ctrl+space
|
||||
close_all = ctrl+shift+space
|
||||
history = ctrl+grave
|
||||
|
||||
[urgency_low]
|
||||
background = "{background}"
|
||||
foreground = "{foreground}"
|
||||
|
||||
[urgency_normal]
|
||||
background = "{background}"
|
||||
foreground = "{foreground}"
|
||||
|
||||
[urgency_critical]
|
||||
background = "{background}"
|
||||
foreground = "{foreground}"
|
|
@ -24,6 +24,7 @@ boards.4channel.org a.4cdn.org xhr allow
|
|||
boards.4channel.org i.4cdn.org media allow
|
||||
boards.4channel.org nstepien.github.io xhr allow
|
||||
boards.4channel.org files.catbox.moe media allow
|
||||
boards.4channel.org desuarchive.org xhr allow
|
||||
gitlab.com assets.gitlab-static.net other allow
|
||||
gitlab.com assets.gitlab-static.net script allow
|
||||
old.reddit.com www.redditstatic.com script allow
|
||||
|
@ -76,4 +77,11 @@ www.amazon.fr unagi-eu.amazon.com other allow
|
|||
www.amazon.fr images-na.ssl-images-amazon.com script allow
|
||||
www.amazon.fr images-eu.ssl-images-amazon.com script allow
|
||||
gifcities.org gifcities.archive.org xhr allow
|
||||
coolandnewwebcomic.bandcamp.com t4.bcbits.com media allow
|
||||
coolandnewwebcomic.bandcamp.com t4.bcbits.com media allow
|
||||
omnilog.slack.com a.slack-edge.com script allow
|
||||
omnilog.slack.com a.slack-edge.com other allow
|
||||
app.slack.com a.slack-edge.com script allow
|
||||
app.slack.com a.slack-edge.com other allow
|
||||
app.slack.com a.slack-edge.com xhr allow
|
||||
app.slack.com b.slack-edge.com script allow
|
||||
app.slack.com slackb.com xhr allow
|
|
@ -12,7 +12,7 @@
|
|||
'use strict';
|
||||
|
||||
function youtube2hooktube(url) {
|
||||
url.host = 'invidio.us';
|
||||
url.host = 'yewtu.be';
|
||||
|
||||
if (url.pathname.slice(0, 7) == '/embed/') {
|
||||
return url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue