Updates
This commit is contained in:
parent
bc72d070fa
commit
6418e82a54
|
@ -36,6 +36,21 @@ if [ -d ~/dotfiles/hypr/settings/modules/waybar/defaults ] ;then
|
|||
echo "~/dotfiles/hypr/settings/modules/waybar/defaults removed."
|
||||
fi
|
||||
|
||||
if [ -d ~/dotfiles/hypr/settings/modules/sddm ] ;then
|
||||
rm -rf ~/dotfiles/hypr/settings/modules/sddm
|
||||
echo "~/dotfiles/hypr/settings/modules/sddm removed."
|
||||
fi
|
||||
|
||||
if [ -d ~/dotfiles/hypr/settings/modules/appearance/wallpaper ] ;then
|
||||
rm -rf ~/dotfiles/hypr/settings/modules/appearance/wallpaper
|
||||
echo "~/dotfiles/hypr/settings/modules/appearance/wallpaper removed."
|
||||
fi
|
||||
|
||||
if [ -d ~/dotfiles/hypr/settings/modules/system/swaylock ] ;then
|
||||
rm -rf ~/dotfiles/hypr/settings/modules/system/swaylock
|
||||
echo "~/dotfiles/hypr/settings/modules/system/swaylock removed."
|
||||
fi
|
||||
|
||||
# Create default folder structure
|
||||
xdg-user-dirs-update
|
||||
echo "Default folders created..."
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
name="Toggle Swaylock"
|
||||
order=1
|
|
@ -1,34 +0,0 @@
|
|||
#!/bin/bash
|
||||
_getHeader "$name" "$author"
|
||||
|
||||
echo "Enable/Disable the start of Swaylock. Restart of Hyprland is required after a change."
|
||||
|
||||
# Define File
|
||||
targetFile="$HOME/dotfiles/hypr/scripts/lockscreentime.sh"
|
||||
settingsFile="$HOME/dotfiles/.settings/hypr_lockscreen"
|
||||
|
||||
# Define Markers
|
||||
startMarker="START SWAYIDLE"
|
||||
endMarker="END SWAYIDLE"
|
||||
|
||||
# Select Value
|
||||
customvalue=$(gum choose "ENABLE" "DISABLE")
|
||||
|
||||
if [ ! -z $customvalue ]; then
|
||||
if [ "$customvalue" == "ENABLE" ] ;then
|
||||
customtext="# exit"
|
||||
else
|
||||
customtext="exit"
|
||||
fi
|
||||
|
||||
_replaceInFile $startMarker $endMarker $customtext $targetFile
|
||||
_writeSettings $settingsFile $customtext
|
||||
|
||||
# Reload Waybar
|
||||
setsid $HOME/dotfiles/waybar/launch.sh 1>/dev/null 2>&1 &
|
||||
_goBack
|
||||
else
|
||||
echo "ERROR: Define a value."
|
||||
sleep 2
|
||||
_goBack
|
||||
fi
|
Loading…
Reference in New Issue
Block a user