Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mylinuxforwork committed Dec 23, 2024
1 parent c073ccf commit a820233
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
5 changes: 0 additions & 5 deletions lib/install/dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ source $install_directory/dotfiles/backup.sh
# -----------------------------------------------------
source $install_directory/dotfiles/preparation.sh

# -----------------------------------------------------
# Check if running in Qemu VM
# -----------------------------------------------------
source $install_directory/dotfiles/vm.sh

# -----------------------------------------------------
# Install SDDM
# -----------------------------------------------------
Expand Down
10 changes: 1 addition & 9 deletions lib/install/dotfiles/keyboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,7 @@ _keyboard_confirm() {

_confirmKeyboard

if gum confirm "Are you using a laptop and would you like to enable the laptop presets?"; then
cp $template_directory/keyboard-laptop.conf $ml4w_directory/$version/.config/hypr/conf/keyboard.conf
echo "source = ~/.config/hypr/conf/layouts/laptop.conf" > $ml4w_directory/$version/.config/hypr/conf/layout.conf
elif [ $? -eq 130 ]; then
_writeCancel
exit 130
else
cp $template_directory/keyboard-default.conf $ml4w_directory/$version/.config/hypr/conf/keyboard.conf
fi
cp $template_directory/keyboard-default.conf $ml4w_directory/$version/.config/hypr/conf/keyboard.conf

SEARCH="KEYBOARD_LAYOUT"
REPLACE="$keyboard_layout"
Expand Down
18 changes: 0 additions & 18 deletions lib/install/dotfiles/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,24 +173,6 @@ if [ -f ~/.config/ml4w/settings/waybar_window.sh ] ;then
_writeLog 1 "waybar_window restored"
fi

# Replace waybar_settings
if [ -f ~/.config/ml4w/settings/waybar_settings.sh ] ;then
replace_value=$(cat ~/.config/ml4w/settings/waybar_settings.sh)
search_str="settings"
if [[ $replace_value == "True" ]] ;then
replace_str="\"group\/settings\","
else
replace_str="\/\/\"group\/settings\","
fi
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w/config"
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w-blur/config"
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w-blur-bottom/config"
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w-bottom/config"
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w-modern/config"
_replaceLineInFileCheckpoint $search_str $replace_str "modules-left" "$HOME/.config/waybar/themes/ml4w-minimal/config"
_writeLog 1 "waybar_settings restored"
fi

# Replace waybar_appmenu
if [ -f ~/.config/ml4w/settings/waybar_appmenu.sh ] ;then
replace_value=$(cat ~/.config/ml4w/settings/waybar_appmenu.sh)
Expand Down

0 comments on commit a820233

Please sign in to comment.