You are not logged in.

#1 2022-01-11 18:13:57

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

[solved]specific command shortcuts with terminal

Hello

this commande work in open console

exec audacious --stop

i would make @ shortcut with this command but it doesn't work

For @ long time i foundet any command like this i don't remember .

Blabla console -- blbla --exec audacious stop .

Any idea for helping

@+

Last edited by loutch (2022-01-12 15:53:57)


Linuxmint 19.1 Tessa cinnamon & mageia 8 Plasma5 & XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 21.04 lts on ASUS Rog STRIX

Offline

#2 2022-01-11 21:09:39

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,344

Re: [solved]specific command shortcuts with terminal

loutch wrote:

exec audacious --stop
i would make @ shortcut with this command but it doesn't work

Edit ~/.xbindkeysrc. Add:

# stop audacious playing
"audacious --stop"
	Alt + S

if those keys ar available.

Logout/login.


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Offline

#3 2022-01-12 07:04:31

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

Re: [solved]specific command shortcuts with terminal

Hello

@ rbh

Thanks for your help, but it's not a keyboard shortcut I'm looking for, but a shortcut in the dashboard that works with the mouse like my old conky-clic

I used to have a shortcut that launched a command through the console without opening it .

Merci pour ton aide , mais ce n'est pas un raccourcis clavier que je cherche mais un raccourcis dans le tableau de bord qui fonctionne avec la souris comme mon ancien conky-clic.



@+

Last edited by loutch (2022-01-12 07:09:16)


Linuxmint 19.1 Tessa cinnamon & mageia 8 Plasma5 & XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 21.04 lts on ASUS Rog STRIX

Offline

#4 2022-01-12 09:55:24

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,344

Re: [solved]specific command shortcuts with terminal

loutch wrote:

it's not a keyboard shortcut I'm looking for, but a shortcut in the dashboard that works with the mouse like my old conky-clic

I used to have a shortcut that launched a command through the console without opening it .

BL does not have a dashboard... Maybe a command button in tint2 will do?


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Offline

#5 2022-01-12 10:59:45

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

Re: [solved]specific command shortcuts with terminal

Okay
 

I'm using xfce

Tanks

@+

Last edited by loutch (2022-01-12 11:06:29)


Linuxmint 19.1 Tessa cinnamon & mageia 8 Plasma5 & XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 21.04 lts on ASUS Rog STRIX

Offline

#6 2022-01-12 11:40:08

ceeslans
Member
Registered: 2015-09-30
Posts: 117

Re: [solved]specific command shortcuts with terminal

I use a small script 'aud-mtool' from within my executable path (~/bin) to call the various audacious commands playpause, stop, prev, next, volup, voldown, mute .
(found the original script "audacious_multitool" last month or so here on the bunsenlabs forum, can't remember where though...)
Calling commands like 'aud-mtool playpause' etc directly from tint2 buttons works perfectly. Surely you can make them work from conky-click likewise.

aud-mtool

#!/bin/bash
# Audacious Multi Tool
#
# Can start and control audacious (play/pause, stop, prev, next, volume)
#
# Dependencies: audacious
#
# Author: Michael Koch (Emkay443) (m<DOT>koch<AT>emkay443<DOT>de)
# Version: 2013-08-31
# License: GNU General Public License v3 (http://www.gnu.de/documents/gpl-3.0.en.html)
 
###################
## CONFIGURATION ##
###################
 
# Command line option names
option_playpause="playpause"
option_play="play"
option_stop="stop"
option_prev="prev"
option_next="next"
option_volup="volup"
option_voldown="voldown"
option_mute="mute"
 
# Audacious and audtool commands
audacious_cmd="/usr/bin/audacious"
audtool_cmd="/usr/bin/audtool"
 
 
#########################################################################################
# WARNING: You should be careful when changing any code below. Modify at your own risk! #
#########################################################################################
 
##################
## MAIN PROGRAM ##
##################
 
# Start audacious with file if there's one provided (second parameter)
if [ ! -z "$2" ]; then
    audacious -p "$2" &
else
    # If audacious is not running, start it
    if [ ! "$(pidof audacious)" ]; then
        $audacious_cmd -p &
    else
        case "$1" in
            "$option_playpause")
                $audtool_cmd --playback-playpause
                ;;
            "$option_play")
                $audtool_cmd --playback-play
                ;;
            "$option_stop")
                $audtool_cmd --playback-stop
                ;;
            "$option_prev")
                $audtool_cmd --playlist-reverse
                ;;
            "$option_next")
                $audtool_cmd --playlist-advance
                ;;
            "$option_voldown")
                if [ -e "/tmp/audmultitool_lastvol" ]; then
                        $audtool_cmd --set-volume $(cat /tmp/audmultitool_lastvol)
                        rm /tmp/audmultitool_lastvol
                else
                    $audtool_cmd --set-volume $(echo $($audtool_cmd --get-volume)-5 | bc)
                fi
                ;;
            "$option_volup")
                if [ -e "/tmp/audmultitool_lastvol" ]; then
                        $audtool_cmd --set-volume $(cat /tmp/audmultitool_lastvol)
                        rm /tmp/audmultitool_lastvol
                else
                    $audtool_cmd --set-volume $(echo $($audtool_cmd --get-volume)+5 | bc)
                fi
                ;;
            "$option_mute")
                if [ -e "/tmp/audmultitool_lastvol" ]; then
                    $audtool_cmd --set-volume $(cat /tmp/audmultitool_lastvol)
                    rm /tmp/audmultitool_lastvol
                else
                    $audtool_cmd --get-volume > /tmp/audmultitool_lastvol
                    $audtool_cmd --set-volume 0
                fi
                ;;
            *)
                echo "Available options are:"
                echo "$option_playpause, $option_play, $option_stop, $option_prev, $option_next,"
                echo "$option_voldown, $option_volup, $option_mute"
                exit 1
                ;;
        esac
    fi
fi
exit 0

Last edited by ceeslans (2022-01-12 14:16:34)

Offline

#7 2022-01-12 16:00:34

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

Re: [solved]specific command shortcuts with terminal

Hello

I have it

Command in launcher

audacious %U --fwd

made the same with play stop rew

Capture-d-cran-2022-01-12-16-58-35.png

Many tanks for helping


@+

Last edited by loutch (2022-01-12 16:23:10)


Linuxmint 19.1 Tessa cinnamon & mageia 8 Plasma5 & XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 21.04 lts on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB