You are not logged in.

#1 2023-05-05 13:32:08

THX1138
Member
Registered: 2019-01-14
Posts: 286

Audtty and audacious - any experts?

I am hoping someone might be an expert in using audtty to control audacious,
AND know how to achieve, probably, the impossible.

audtty is a terminal application that has the ability to control Audacious while
audacious is running. Currently I have audtty on desktop1 and audacious on desktop2

I would like to make it so that IF audacious is running audtty will open
AND if audtty is run THEN audacious will open. Total symbiosis.

Here's the hard part. Is it possible to open audacious without the gui showing?
if so, please suggest some reading I could do, in order to research this myself

Last edited by THX1138 (2023-05-05 13:33:27)


I’ve got this horrible feeling that if there is such a thing as reincarnation, knowing my luck, I’ll come back as me!
---------
Robotic Santa on Deviant Art

Offline

#2 2023-05-05 16:29:21

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,673

Re: Audtty and audacious - any experts?

Here's the hard part. Is it possible to open audacious without the gui showing?
if so, please suggest some reading I could do, in order to research this myself

Check the settings in audacious. I think there is a box you can check so that audacious opens in the systray/open minimized. Then just the systray icon will be visible.

If not, assuming you're on openbox, you can use the "iconic" setting in the per-app section of the ~/.config/openbox/rc.xml file to have audacious open iconified.

Something similar to:

  <application class="Audacious">
    <desktop>2</desktop>
    <iconic>yes</iconic>
  </application>

audacious opens iconified on desktop 2.

You should be able to write a keybind to have both open at the same time. Something simple like:

xterm -e audtty & audacious

might do it. I've never used audtty. Combined with the above per-app setting would have audacity open on desktop 2 and a terminal with audtty on the active desktop.


You must unlearn what you have learned.
    -- yoda

Offline

#3 2023-05-05 16:37:45

loutch
Member
Registered: 2015-12-12
Posts: 896

Re: Audtty and audacious - any experts?

hello

i used this script in a launcher for audacious & conky to launch these two programs at same time

You can change the conky part for audtty

#!/bin/bash

PROG_NAME1="conky -c /home/$USER/.conky/audacious/conkyrcl12"	# first program Nom du programme à  démarrer/arrêter.
PROG_NAME2="/usr/bin/audacious" # second program Nom du programme à  démarrer/arrêter.

PROCESSPID1=$(pgrep -f /home/$USER/.conky/audacious/conkyrcl12)	#Pid for one  Récupère le PID du processus.
PROCESSPID2=$(pgrep -f "usr/bin/audacious")	# pid for scond Récupère le PID du processus.


if [[ "$PROCESSPID1" != ""  && "$PROCESSPID2" != "" ]]; then	# Si les deux processus existe alors on le(s) kill.
        kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
        kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
else	# Si aucun processus on démarre le programme.
        kill $PROCESSPID1 
        $PROG_NAME1 & 
        echo "Start $PROG_NAME1"
        kill $PROCESSPID2  
        $PROG_NAME2 & 
        echo "Start $PROG_NAME2"
        if [[ "$PROCESSPID1" == ""  || "$PROCESSPID2" == "" ]]; then	# Si un des processus n'existe pas alors on le(s) kill.
                kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
                kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
                echo "Il y a eu un souci au lancement tout a été coupé"
        fi
fi

exit 0

if this may help .

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB