Changing ringtone on Manjaro Phosh
#1
Music 
For anyone wondering how to change the ringtone on Manjaro Phosh, after having tried everything and changing the source code of feedbackd I have finally figured out what makes it different and not work:

First follow https://forum.pine64.org/showthread.php?tid=11195 or https://sspaeth.de/2021/03/customizing-t...-ringtone/

Now add XDG_CURRENT_DESKTOP=GNOME to your /etc/environment file (this is the important thing)

Without that XDG_CURRENT_DESKTOP environment variable it always ignores sound themes for some reason, see https://source.puri.sm/Librem5/feedbackd...c#L124-130

I don't know why Manjaro Phosh doesn't ship with that environment variable (or at least my install that is kind of old and only updated through pacman doesn't) because there doesn't seem to be a standard for configuring the active sound theme, so it is put inside the org.gnome.desktop.sound gsetting here. I think this also means it's impossible to change the ringtone on non-GNOME environments like KDE unless you override the freedesktop sound files or modify feedbackd.

If you want to setup a proper inherited sound theme just for customizations (which is how helper tools are expected to modify it for you) you need to create a sound theme called __custom, which you can put in ~/.local/share/sounds/__custom/ (or $XDG_DATA_HOME instead of ~/.local/share if that exists)

And in that folder you put an index.theme with the following content:

[Sound Theme]
Name=Custom
Inherits=librem5
Directories=.


(replace librem5 with the theme the user actually wants to use)

Now you can put sound overrides directly in that folder (there must be no stereo/ folder, everything directly in the __custom folder according to the sound theme spec)

I'm not sure what exact format the audio files need to be, but iirc if you choose .oga (ogg) it should be stereo with 48000 Hz

For my conversion I used ffmpeg -i input.wav -filter:a "volume=0.5" -codec:a libvorbis -qscale:a 8 phone-incoming-call.oga

Now change theme by typing gsettings set org.gnome.desktop.sound theme-name __custom

and potentially clear sound cache using rm /home/mobian/.cache/event-sound-cache.tdb.*

Reboot for good measure or at least kill feedbackd to be sure it catches the update. (although it should watch for changes on that gsetting)

Hope this helps
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  state of MMS on Manjaro kmsgli 0 69 11-29-2021, 07:30 PM
Last Post: kmsgli
  Manjaro Phosh Issues Csanderson0313 6 432 11-28-2021, 02:48 AM
Last Post: user641
  SMS apps in manjaro-plasma leave much room for improvement tckosvic 8 400 11-15-2021, 03:35 PM
Last Post: tckosvic
  Manjaro Welcome screen landscape JohanB89 2 266 11-12-2021, 01:13 AM
Last Post: acrux
  Manjaro (Plasma OS) bugs/ issues FOSSagent0 29 10,679 11-12-2021, 12:56 AM
Last Post: acrux
  Some "tricks and tips" for Manjaro Plasma Mobile acrux 0 236 11-10-2021, 02:31 AM
Last Post: acrux
  How to remove Manjaro Phosh lock screen password? Avisando 4 571 10-28-2021, 04:20 AM
Last Post: Avisando
  How can I update Manjaro ARM w/ Phosh using Terminal? danimations 6 83 10-24-2021, 11:58 PM
Last Post: danimations
  Help Getting MMS Working on Manjaro Nightly Build 0x070 0 248 10-17-2021, 04:44 PM
Last Post: 0x070
  [phosh] boost pipewire volume beyond 100%? dcinoz 3 820 10-16-2021, 02:41 AM
Last Post: lacriz

Forum Jump:


Users browsing this thread: 1 Guest(s)