Swallow window and vifm config
This commit is contained in:
parent
1c02388325
commit
b7bc7ed388
3 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,7 @@ 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 'find -type f | sort | sw imv -s none -b 1F1F21'
|
||||
abbr manga 'sakura find -type f | sort | imv -s none -b 1F1F21'
|
||||
|
||||
## Web
|
||||
abbr nico 'youtube-dl'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Defined in /tmp/fish.1xT3XM/sakura.fish @ line 1
|
||||
# Defined in /tmp/fish.Gx0zkP/sakura.fish @ line 2
|
||||
function sakura
|
||||
$argv &
|
||||
set _pid (jobs -l | awk '{print $2}')
|
||||
|
@ -6,4 +6,5 @@ function sakura
|
|||
set _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 $_pid -id $_wid
|
||||
pidswallow -t $_wid
|
||||
end
|
||||
|
|
|
@ -171,7 +171,7 @@ filetype <audio/*> mpv %c %i &
|
|||
filetype <video/*> mpv %c %i &
|
||||
|
||||
" Images
|
||||
filextype <image/*> imv -r %d -n %c &
|
||||
filetype <image/*> fish -c "sakura imv -r %d -n %c"
|
||||
|
||||
" Archives
|
||||
" fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue