Fixes for personal profile rename to default

This commit is contained in:
Emmet 2024-03-23 10:04:23 -05:00
parent c3ffed0755
commit 72b451aec5
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + '' exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + ''
exec-once = hyprprofile Personal exec-once = hyprprofile Default
exec-once = pypr exec-once = pypr
exec-once = ydotoold exec-once = ydotoold

View file

@ -13,7 +13,7 @@ in
prevprofile="$(cat ~/.hyprprofile)" prevprofile="$(cat ~/.hyprprofile)"
newprofile=$1 newprofile=$1
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
if [ $newprofile = "Personal" ]; then if [ $newprofile = "Default" ]; then
echo "" > ~/.hyprprofile; echo "" > ~/.hyprprofile;
else else
echo $newprofile > ~/.hyprprofile; echo $newprofile > ~/.hyprprofile;