new stuff
This commit is contained in:
parent
d4c061e063
commit
75c600078b
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
spacekiller.sh # self explained
|
||||
|
||||
if [ ! -d /tmp/trash ]; then
|
||||
mkdir /tmp/trash
|
||||
fi
|
||||
|
@ -9,6 +7,8 @@ fi
|
|||
PDIR="$HOME/Descargas/ytdl" # podcast folder
|
||||
TDIR="/tmp/trash" # trash folder
|
||||
|
||||
spacekiller.sh $PDIR # remove spaces
|
||||
|
||||
while true; do # print and select files
|
||||
input=$(find $PDIR -type f | grep -v ".part" | fzf --exact --print-query | tail -n 1)
|
||||
if [ "$input" = ":quit" ]; then # exit with :quit
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
WALL="$HOME"/Imágenes/wall/cw.png # path to image wallpaper
|
||||
|
||||
# extract NO dominant color
|
||||
DC=$(convert $WALL -scale 4x4\! -format '%c' histogram:info:- | tail -n 1 | awk '{print $3}' | cut -c 2-7)
|
||||
|
||||
# change the window border color to the NO predominant color of the wallpaper
|
||||
sed -i "s/^.*\bACTIVE=\b.*$/ACTIVE=$DC/" $HOME/.wmvar
|
||||
chwb -c $DC $(pfw)
|
|
@ -9,7 +9,7 @@ fi
|
|||
PDIR="$HOME/Descargas/ytdl" # podcast dir
|
||||
TDIR="/tmp/trash" # trash dir
|
||||
|
||||
spacekiller.sh $TDIR
|
||||
spacekiller.sh $PDIR
|
||||
|
||||
INPUT=$(find $PDIR -type f | grep -v ".part" | $XMENU_XL) # print podcast and select
|
||||
if [ "$INPUT" = ":quit" ]; then # exit with :quit
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# It depends of: "chafa"
|
||||
|
||||
. $HOME/.wmvar
|
||||
|
||||
chafa --clear -c full $GIF
|
|
@ -0,0 +1,15 @@
|
|||
#/bin/sh
|
||||
|
||||
TARGET=$1 # new image file
|
||||
WALL="$HOME/Imágenes/wall/cw.png" # path to current wallpaper
|
||||
RES=$(xdpyinfo | grep "dimensions" | awk '{ print $2 }') # screen resolution
|
||||
|
||||
if [ -n "$TARGET" ]; then # if a new image is to be set
|
||||
if [ -f "$TARGET" ]; then # if the provided name is a file
|
||||
cp $TARGET $WALL # copy selected image as new wallpaper
|
||||
display -resize "!$RES" -window root "$WALL" # set the wallpaper
|
||||
fi
|
||||
else
|
||||
display -resize "!$RES" -window root "$WALL" # just set the current wallpaper
|
||||
fi
|
||||
|
Loading…
Reference in New Issue