agsdotfilesdotshyprlandhyprland-configricerofirofi-configshell-scriptsswwwwallustwaybarwaybar-modulewaybar-themes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.3 KiB
55 lines
2.3 KiB
#!/bin/bash |
|
# A bash script designed to run only once dotfiles installed |
|
|
|
# THIS SCRIPT CAN BE DELETED ONCE SUCCESSFULLY BOOTED!! And also, edit ~/.config/hypr/configs/Settings.conf |
|
# not necessary to do since this script is only designed to run only once as long as the marker exists |
|
# However, I do highly suggest not to touch it since again, as long as the marker exist, script wont run |
|
|
|
# Variables |
|
scriptsDir=$HOME/.config/hypr/scripts |
|
wallpaper=$HOME/Pictures/wallpapers/Cute-Cat_ja.jpg |
|
waybar_style="$HOME/.config/waybar/style/[Pywal] Chroma Fusion.css" |
|
kvantum_theme="Tokyo-Night" |
|
|
|
swww="swww img" |
|
effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" |
|
|
|
# Check if a marker file exists. |
|
if [ ! -f ~/.config/hypr/.initial_startup_done ]; then |
|
|
|
# Initialize pywal and wallpaper |
|
if [ -f "$wallpaper" ]; then |
|
wal -i $wallpaper -s -t > /dev/null |
|
swww init && $swww $wallpaper $effect |
|
"$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 & |
|
fi |
|
|
|
# Initial symlink for Pywal Dark and Light for Rofi Themes |
|
ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" > /dev/null 2>&1 & |
|
|
|
# initiate GTK dark mode and apply icon and cursor theme |
|
gsettings set org.gnome.desktop.interface color-scheme prefer-dark > /dev/null 2>&1 & |
|
gsettings set org.gnome.desktop.interface gtk-theme Tokyonight-Dark-BL-LB > /dev/null 2>&1 & |
|
gsettings set org.gnome.desktop.interface icon-theme Tokyonight-Dark > /dev/null 2>&1 & |
|
gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Ice > /dev/null 2>&1 & |
|
gsettings set org.gnome.desktop.interface cursor-size 24 > /dev/null 2>&1 & |
|
|
|
# initiate kvantum theme |
|
kvantummanager --set "$kvantum_theme" > /dev/null 2>&1 & |
|
|
|
# initiate the kb_layout (for some reason) waybar cant launch it |
|
"$scriptsDir/SwitchKeyboardLayout.sh" > /dev/null 2>&1 & |
|
|
|
# Initial waybar style |
|
if [ -f "$waybar_style" ]; then |
|
ln -sf "$waybar_style" "$HOME/.config/waybar/style.css" |
|
|
|
# Refreshing waybar, swaync, rofi etc. |
|
"$scriptsDir/Refresh.sh" > /dev/null 2>&1 & |
|
fi |
|
|
|
# Create a marker file to indicate that the script has been executed. |
|
touch ~/.config/hypr/.initial_startup_done |
|
|
|
exit |
|
fi
|
|
|