diff --git a/bin/sp-profiles b/bin/sp-profiles index b8046a7..fdfe92f 100755 --- a/bin/sp-profiles +++ b/bin/sp-profiles @@ -5,7 +5,7 @@ source "/usr/lib/sp-functions" get_profile_list case $1 in - next|prev) + next|prev|reload) current_profile=$(cat "${cache_dir}/active_profile") echo ${current_profile} ;;& @@ -17,7 +17,10 @@ case $1 in new_profile=$(( ${current_profile}-1 )) [[ "$new_profile" -eq "-1" ]] && new_profile=3 ;;& - prev|next) + reload) + new_profile=${current_profile} + ;;& + prev|next|reload) op=$(printf "%01d\n" ${new_profile}) ;; *) diff --git a/debian/changelog b/debian/changelog index c400b59..890205b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sway-profiles (0.3.14) unstable; urgency=medium + + * added sp-profiles reload + + -- Penelope Gwen Fri, 14 Mar 2025 22:52:33 +0000 + sway-profiles (0.3.13) unstable; urgency=medium * corrected lock character in sp-powermenu diff --git a/debian/control b/debian/control index 3547c93..9f7809f 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: sway-profiles Section: X11 Priority: optional -Maintainer: Penelope Gwen +Maintainer: Penelope Gwen Rules-Requires-Root: no Build-Depends: debhelper-compat (= 13),