update
This commit is contained in:
parent
03d3d73df7
commit
087a72b170
|
@ -17,6 +17,7 @@ export PATH="/usr/games/:$PATH"
|
|||
export PATH="$XDG_BIN_HOME:$PATH"
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export TODOTXT_DEFAULT_ACTION=ls
|
||||
|
||||
# ~/ clean-up
|
||||
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
||||
|
|
|
@ -42,6 +42,11 @@ https://videos.lukesmith.xyz/feeds/videos.xml luke-smith videos
|
|||
https://based.cooking/rss.xml luke-smith based-cooking
|
||||
https://odysee.com/$/rss/@Luke/70 luke-smith videos odysee
|
||||
|
||||
"-----------------"
|
||||
"---- Chess"
|
||||
"-----------------"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXy10-NEFGxQ3b4NVrzHw1Q eric-rosen
|
||||
|
||||
"-----------------"
|
||||
"---- Youtube-Philosphy"
|
||||
"-----------------"
|
||||
|
|
|
@ -124,15 +124,28 @@ smap <silent><expr> <C-E> luasnip#choice_active() ? '<Plug>luasnip-next-choice'
|
|||
" Appearance
|
||||
set number
|
||||
set nowrap
|
||||
set showbreak=↪
|
||||
" toggle invisible characters
|
||||
set showbreak=↪
|
||||
set list
|
||||
"set listchars=tab:→\ ,eol:¬,trail:⋅,extends:❯,precedes:❮,space:·
|
||||
"set list
|
||||
set listchars=tab:→\ ,eol:¬,trail:⋅,extends:❯,precedes:❮,space:·
|
||||
set ttyfast
|
||||
|
||||
" airline
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
" Cursor appearance
|
||||
set cursorline
|
||||
highlight Cursor ctermbg=white ctermfg=white
|
||||
" Default Colors for CursorLine
|
||||
highlight CursorLine ctermbg=Black ctermfg=White
|
||||
|
||||
" Change Color when entering Insert Mode
|
||||
autocmd InsertEnter * highlight CursorLine ctermbg=Gray ctermfg=Black
|
||||
|
||||
" Revert Color to default when leaving Insert Mode
|
||||
autocmd InsertLeave * highlight CursorLine ctermbg=Black ctermfg=White
|
||||
|
||||
" Leader keys
|
||||
let mapleader = " "
|
||||
map <leader>e :bufdo e!<CR>
|
||||
nnoremap <silent> <leader> :WhichKey '<Space>'<CR>
|
||||
|
||||
" Telescope
|
||||
nnoremap <leader>ff :Telescope find_files<cr>
|
||||
|
@ -157,11 +170,6 @@ nnoremap <leader>j :m .+1<CR>==
|
|||
vnoremap <C-k> :m .-1<CR>==
|
||||
nnoremap <leader>k :m .-1<CR>==
|
||||
|
||||
" Leader keys
|
||||
let mapleader = " "
|
||||
map <leader>e :bufdo e!<CR>
|
||||
nnoremap <silent> <leader> :WhichKey '<Space>'<CR>
|
||||
|
||||
" Custom settings.
|
||||
set mouse=a
|
||||
set encoding=utf-8
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
wallpaper_link=$(xclip -o -sel clipboard)
|
||||
notify-send "Downloading wallpaper..."
|
||||
curl $wallpaper_link > /tmp/waly
|
||||
notify-send "Finished downloading..."
|
||||
|
||||
wal_name=(dmenu -p "Name the wallpaper: ")
|
||||
|
||||
# Find wallpaper last ID
|
||||
wal_ids=$(ls $HOME/pix/wallpapers/vid/)
|
||||
max=000
|
||||
|
||||
for i in $wal_ids
|
||||
do
|
||||
id=$(echo $i | awk 'BEGIN {FS="-"} ; {print $1}')
|
||||
if [ $(echo "$id > $max" | bc) = "1" ]
|
||||
then
|
||||
max=$id
|
||||
fi
|
||||
done
|
||||
|
||||
# Gen wallpaper new ID
|
||||
new_wal_id=$(echo "$max+1" | bc)
|
||||
new_wal_id=$(printf %03d $new_wal_id)
|
||||
|
||||
# Get name of new wallpaper
|
||||
title=$(echo "$wallpaper_link" | dmenu -p "Name of Wallpaper: $new_wal_id-")
|
||||
[ -z $title ] && exit
|
||||
|
||||
# Generate final location and move
|
||||
final_wal_loc=$HOME/pix/wallpapers/vid/$new_wal_id-$title
|
||||
mv /tmp/waly $final_wal_loc
|
||||
notify-send "Added wallpaper to collection"
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
removed=$HOME/pix/wallpapers/vid/
|
||||
wal_name=$(find $HOME/pix/wallpapers/vid/ -type f | awk 'BEGIN {FS="/"} ; {print $7}' | dmenu -i -l 25)
|
||||
cp -f $removed/$wal_name ~/pix/wallpapers/vid/wallpaper
|
||||
|
||||
# get pywal background from from the video
|
||||
rm $HOME/pix/wallpapers/wallpaper.png
|
||||
ffmpeg -i $removed/$wal_name -vf "select=eq(n\,0)" -vframes 1 $HOME/pix/wallpapers/wallpaper.png
|
||||
cp $HOME/pix/wallpapers/wallpaper.png $HOME/pix/wallpapers/wallpaper
|
||||
|
||||
refresh_wallpaper
|
||||
|
||||
pkill -9 refresh_vid_wallpaper
|
||||
refresh_vid_wallpaper $removed/$wal_name
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
SNIPS=~/.local/share/snippets
|
||||
|
||||
FILE=`ls ${SNIPS} | dmenu -l 20`
|
||||
|
||||
if [ -f "${SNIPS}/${FILE}" ]; then
|
||||
DATA=$([ -x "${SNIPS}/${FILE}" ] && bash "${SNIPS}/${FILE}" || head --bytes=-1 ${SNIPS}/${FILE})
|
||||
printf "$DATA" | xsel -p -i
|
||||
printf "$DATA" | xsel -b -i
|
||||
xdotool key shift+Insert
|
||||
fi
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Options
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
url="https://live.musopen.org:8085/streamvbr0"
|
||||
pkill -f $url || mpv "$url" &
|
||||
kill -9 mpv || mpv "$url" &
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
PIDFILE="/var/run/user/$UID/bg.pid"
|
||||
|
||||
declare -a PIDs
|
||||
|
||||
_screen() {
|
||||
DRI_PRIME=1 xwinwrap -ov -ni -g "$1" -- mpv --fullscreen\
|
||||
--no-stop-screensaver \
|
||||
--vo=gpu --profile=gpu-hq --scale=ewa_lanczossharp \
|
||||
--cscale=ewa_lanczossharp \
|
||||
--video-aspect=-1 \
|
||||
--loop-file --no-audio --no-osc --no-osd-bar -wid WID --no-input-default-bindings \
|
||||
"$2" &
|
||||
PIDs+=($!)
|
||||
}
|
||||
|
||||
while read p; do
|
||||
echo $p
|
||||
[[ $(ps -p "$p" -o comm=) == "xwinwrap" ]] && kill -9 "$p";
|
||||
done < $PIDFILE
|
||||
|
||||
sleep 0.5
|
||||
|
||||
for i in $( xrandr -q | grep ' connected' | grep -oP '\d+x\d+\+\d+\+\d+')
|
||||
do
|
||||
_screen "$i" "$1"
|
||||
done
|
||||
|
||||
printf "%s\n" "${PIDs[@]}" > $PIDFILE
|
||||
|
Loading…
Reference in New Issue