walpaper script and i3 fixes
@ -6,3 +6,4 @@ mpd
 | 
			
		||||
mpc
 | 
			
		||||
playerctl
 | 
			
		||||
zscroll-git
 | 
			
		||||
pistol-git
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										29
									
								
								bin/wallpaper.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						@ -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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/AI_snow_mountain.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.8 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/dusk_mountains.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 11 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/iceland_spotlight.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 13 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/lake_mountains.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 19 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/misty_forest.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/rocky_shores.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 12 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/storm_eye_space.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 15 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								gui/wallpapers/woods_trail.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 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
 | 
			
		||||
 | 
			
		||||