Updates
This commit is contained in:
parent
f1e2f2605c
commit
c179958abf
@ -45,11 +45,11 @@ case $1 in
|
||||
|
||||
# Select wallpaper with rofi
|
||||
"select")
|
||||
|
||||
sleep 0.2
|
||||
selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort -R | while read rfile
|
||||
do
|
||||
echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n"
|
||||
done | $(sleep 0.2; rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi))
|
||||
done | rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||
if [ ! "$selected" ]; then
|
||||
echo "No wallpaper selected"
|
||||
exit
|
||||
|
@ -21,7 +21,8 @@ listNames=""
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Read theme folder
|
||||
# -----------------------------------------------------
|
||||
# -----------------------------------------------------
|
||||
sleep 0.2
|
||||
options=$(find $themes_path -maxdepth 2 -type d)
|
||||
for value in $options
|
||||
do
|
||||
@ -46,7 +47,7 @@ done
|
||||
# Show rofi dialog
|
||||
# -----------------------------------------------------
|
||||
listNames=${listNames::-2}
|
||||
choice=$(echo -e "$listNames" | $(sleep 0.2; rofi -dmenu -replace -config ~/dotfiles/rofi/config-themes.rasi -no-show-icons -width 30 -p "Themes" -format i))
|
||||
choice=$(echo -e "$listNames" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-themes.rasi -no-show-icons -width 30 -p "Themes" -format i)
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Set new theme by writing the theme information to ~/.cache/.themestyle.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user