mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
714 stars 62 forks source link

I can't modify the waybar-quicklinks #111

Closed Homer-Max closed 2 months ago

Homer-Max commented 2 months ago

I've already updated up to 2.9.5RC1,now, I can't find waybar-quicklinks.json. The icons on the left of waybar go back to default. how to fix it now?

Homer-Max commented 2 months ago

I keep a hook.sh to protect the waybar-quicklinks.json, but it doesn't work

mylinuxforwork commented 2 months ago

@Homer-Max You don't have to protect your waybar-quicklinks.json of you choose restore during the installation/update.

The location of the settings have been changed to ~/.config/ml4w/settings/ Maybe this is the reason for your effect.

Now, the hook.sh must look like that if you want to protect:

#!/bin/bash
# ------------------------------------------------------
# Don't edit this section
# Include scripts.sh with helper functions
source library/scripts.sh
# ------------------------------------------------------

# Show Current version
echo ":: Running hook for ML4W Dotfiles $version"

# If you made adjustments on files on the ~/dotfiles folder 
# you can protect the files and folders from being overwritten by updates.

_protect .config/ml4w/settings/waybar-quicklinks.json

# You can add more command to get executed before the prepared Dotfiles 
# will be copied to the target folder ~/dotfiles
Homer-Max commented 2 months ago

thanks, I got it . The icons come back again