walpaper script and i3 fixes

nvim
spinach 2 years ago
parent fcfa0873aa
commit 7e3e6db396

@ -6,3 +6,4 @@ mpd
mpc
playerctl
zscroll-git
pistol-git

@ -0,0 +1,29 @@
#!/bin/bash
wallpapers_dir=~/.local/share/wallpapers
finder="fzf --preview='feh {}'"
cd "$wallpapers_dir"
if [ -n "$TMUX" ] ; then
#finder="fzf-tmux -p --preview='pistol {}'"
finder="fzf-tmux -p"
fi
# fzf selector
if [ "$1" == '-s' ] ; then
# follows links and omits the env file
selection=$(find -L -type f -printf '%P\n' | $finder)
if [ -n "$selection" ] ; then
# didnt exit
feh --bg-scale "$selection"
fi
fi
# feh slideshow selector
if [ "$1" == '-p' ] ; then
# follows links and omits the env file
# find -L -type f -printf '%P\n' | feh -A "echo '%f';"
echo "BROKEN">&2
exit 1
fi

@ -92,11 +92,6 @@ let g:vimtex_view_method = 'zathura'
let g:tex_flavor='latex'
let g:vimtex_quickfix_mode=0
" live markdown settings
let g:mkdp_refresh_slow = 1
nnoremap <C-s> :MarkdownPreview<CR>
" fzf settings
set rtp+=~/.fzf

@ -185,4 +185,4 @@ bindsym $mod+r mode "resize"
exec --no-startup-id picom-launch.sh
# background
exec_always --no-startup-id feh --bg-scale ~/.config/i3/wallpaper.jpg
exec_always --no-startup-id ~/.fehbg

@ -49,7 +49,7 @@ height = 24pt
modules-left = xworkspaces focus spotify spotify-len todo
;modules-left = xworkspaces spotify spotify-len
modules-center = weather-desktop
modules-right = pulseaudio memory cpu temperature eth mouse-power seafile calendar-sync date powermenu
modules-right = pulseaudio memory cpu temperature eth mouse-power seafile calendar-sync bg-selector date powermenu
[module/xworkspaces]
type = internal/xworkspaces
@ -247,5 +247,12 @@ hook-3 = echo -e '%{F#FF0}\uf073'
initial = 1
click-left = calcurse-sync.sh
[module/bg-selector]
; select background
type = custom/script
interval = 60
exec = echo -e '\uf1c5'
click-left = wallpaper.sh -s
[settings]
screenchange-reload = true

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

@ -3,7 +3,11 @@
- clean:
~/.config/i3:
~/.local/share/wallpapers:
- link:
~/.config/i3/config: gui/i3/desktop.conf
~/.config/i3/wallpaper.jpg: gui/wallpapers/pine_tree.jpg
~/.local/bin/wallpaper.sh: bin/wallpaper.sh
~/.local/share/wallpapers/:
path: gui/wallpapers/**
glob: true

@ -6,4 +6,7 @@
- link:
~/.config/i3/config: gui/i3/thinkpad.conf
~/.config/i3/wallpaper.jpg: gui/wallpapers/pine_tree.jpg
~/.local/bin/wallpaper.sh: bin/wallpaper.sh
~/.local/share/wallpapers/:
path: gui/wallpapers/**
globe: true

Loading…
Cancel
Save