Skip to content

Commit

Permalink
feat: Allow just to turn off transparency for terminals (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbunt authored Apr 28, 2024
1 parent 49e7d04 commit 89b41d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions just/bluefin-system.just
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ ptyxis-transparency opacity="0.95":
set -euxo pipefail
if [[ -n "$(echo "{{ opacity }}" | grep -v '^[.0-9]*$')" ]]; then
printf "Value must be numeric: %s.\n" "{{ opacity }}"
elif [[ $(echo "0<{{ opacity }} && 1>{{ opacity }}" | bc -q) -eq 1 ]]; then
elif [[ $(echo "0<{{ opacity }} && 1>={{ opacity }}" | bc -q) -eq 1 ]]; then
raw="$(gsettings get org.gnome.Ptyxis profile-uuids)"
uuids="$(sed -En 's|[^0-9a-z]*||g; s|([0-9a-z]{32})|\1\n|gp' <<<${raw})"
for i in ${uuids}; do
location="org.gnome.Ptyxis.Profile:/org/gnome/Ptyxis/Profiles/${i}/"
gsettings set "${location}" opacity "{{ opacity }}"; done
printf "Ptyxis opacity is now %s.\n" "{{ opacity }}"
else
printf "Value must be between 0 and 1: %s.\n" "{{ opacity }}"
printf "Value must be greater than 0 and less than or equal to 1: %s.\n" "{{ opacity }}"
fi
# Configure docker,incus-admin,lxd,libvirt container manager permissions
Expand Down

0 comments on commit 89b41d4

Please sign in to comment.