Fixed things

This commit is contained in:
edwark43 2023-12-27 18:05:51 +00:00
parent 0615d0c3ae
commit 49747e2fcf
3 changed files with 12 additions and 14 deletions

View File

@ -59,7 +59,7 @@ processes=("polybar" "sxhkd" "dunst" "mpd")
pidof -q picom || { picom --config "$HOME"/.config/picom/picom.conf & } pidof -q picom || { picom --config "$HOME"/.config/picom/picom.conf & }
# Set random wallpaper for actual rice # Set random wallpaper for actual rice
feh -z --no-fehbg --bg-fill "$HOME"/pics/wallpapers feh -z --no-fehbg --bg-fill $(xdg-user-dir PICTURES)/wallpapers
# Reload sxhkd daemon # Reload sxhkd daemon
sxhkd -c "$HOME"/.config/sxhkd/sxhkdrc & sxhkd -c "$HOME"/.config/sxhkd/sxhkdrc &

View File

@ -11,7 +11,7 @@ elif ! command -v convert > /dev/null 2>&1; then
fi fi
# Set some variables # Set some variables
wall_dir="${HOME}/pics/wallpapers" wall_dir="$(xdg-user-dir PICTURES)wallpapers"
cacheDir="${HOME}/.cache/wallselector" cacheDir="${HOME}/.cache/wallselector"
rofi_command="rofi -dmenu -theme ${HOME}/.config/rofi/wallselector.rasi -theme-str ${rofi_override}" rofi_command="rofi -dmenu -theme ${HOME}/.config/rofi/wallselector.rasi -theme-str ${rofi_override}"

View File

@ -55,7 +55,7 @@ logo "Installing needed packages.."
dependencies=(alacritty base-devel brightnessctl bspwm dunst feh git imagemagick jgmenu \ dependencies=(alacritty base-devel brightnessctl bspwm dunst feh git imagemagick jgmenu \
jq libnotify libwebp lsd maim mpc mpd ncmpcpp neofetch neovim \ jq libnotify libwebp lsd maim mpc mpd ncmpcpp neofetch neovim \
pacman-contrib pamixer papirus-icon-theme physlock picom playerctl \ pacman-contrib pamixer papirus-icon-theme physlock picom playerctl \
polkit-gnome polybar ranger rofi rustup sxhkd \ polkit-gnome polybar ranger rofi sxhkd \
ttf-inconsolata ttf-jetbrains-mono ttf-jetbrains-mono-nerd ttf-joypixels \ ttf-inconsolata ttf-jetbrains-mono ttf-jetbrains-mono-nerd ttf-joypixels \
ttf-terminus-nerd ueberzug webp-pixbuf-loader xclip xdg-user-dirs xdo xdotool \ ttf-terminus-nerd ueberzug webp-pixbuf-loader xclip xdg-user-dirs xdo xdotool \
xorg-xdpyinfo xorg-xkill xorg-xprop xorg-xrandr xorg-xsetroot xorg-xwininfo \ xorg-xdpyinfo xorg-xkill xorg-xprop xorg-xrandr xorg-xsetroot xorg-xwininfo \
@ -80,16 +80,6 @@ done
sleep 3 sleep 3
clear clear
########## ---------- Preparing Folders ---------- ##########
# Checks if the file user-dirs.dirs does not exist in ~/.config
if [ ! -e "$HOME/.config/user-dirs.dirs" ]; then
xdg-user-dirs-update
echo "Creating xdg-user-dirs"
fi
sleep 2
clear
########## ---------- Cloning the Rice! ---------- ########## ########## ---------- Cloning the Rice! ---------- ##########
logo "Downloading dotfiles" logo "Downloading dotfiles"
@ -157,6 +147,14 @@ for files in ~/dotfiles/config/*; do
fi fi
done done
# Checks if the file user-dirs.dirs does not exist in ~/.config
if [ ! -e "$HOME/.config/user-dirs.dirs" ]; then
xdg-user-dirs-update
echo "Creating xdg-user-dirs"
fi
sleep 2
clear
for files in ~/dotfiles/misc/bin/*; do for files in ~/dotfiles/misc/bin/*; do
cp -R "${files}" ~/.local/bin/ cp -R "${files}" ~/.local/bin/
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
@ -202,7 +200,7 @@ for files in ~/dotfiles/misc/assets/*; do
done done
for files in ~/dotfiles/home/pics/*; do for files in ~/dotfiles/home/pics/*; do
cp -R "${files}" ~/pics/ cp -R "${files}" $(xdg-user-dir PICTURES)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
printf "%s%s%s file copied successfully!%s\n" "${BLD}" "${CGR}" "${files}" "${CNC}" printf "%s%s%s file copied successfully!%s\n" "${BLD}" "${CGR}" "${files}" "${CNC}"
sleep 1 sleep 1