veles16 |
|
![]()
Темы:
29
Сообщения:
192
Участник с: 23 октября 2012
заблокирован
|
Стоит openbox все устраивает, хочу поставить индикатор громкости как здесь https://archlinux.org.ru/forum/topic/2524/?page=1#post-26345 подскажите какая прога нужна чтобы отображалась все скрипты и notify-osd стоит не могу понять в чем дело? |
vs220 |
|
Темы:
22
Сообщения:
8070
Участник с: 16 августа 2009
|
Открываете терминал и пишите в нем И смотрите вывод на что ругается
|
veles16 |
|
![]()
Темы:
29
Сообщения:
192
Участник с: 23 октября 2012
заблокирован
|
vs220 Не ругается громкость в conky убавляется, а вот самого индикатора нет |
vs220 |
|
Темы:
22
Сообщения:
8070
Участник с: 16 августа 2009
|
veles16В терминале
Надпись test появляется, ругани нет? |
veles16 |
|
![]()
Темы:
29
Сообщения:
192
Участник с: 23 октября 2012
заблокирован
|
vs220нет все нормveles16В терминале |
vs220 |
|
Темы:
22
Сообщения:
8070
Участник с: 16 августа 2009
|
veles16То есть надпись test появляется? Попробуйте скрипт с отладкой запустить и вывод показать
|
veles16 |
|
![]()
Темы:
29
Сообщения:
192
Участник с: 23 октября 2012
заблокирован
|
vs220veles16То есть надпись test появляется? #!/bin/sh # created by abarilla usage="usage: $0 -c {up|down|mute} [-i increment] [-m mixer]" + usage='usage: /home/maxim/.scripts/vol.sh -c {up|down|mute} [-i increment] [-m mixer]' command= + command= increment=5% + increment=5% mixer=Master + mixer=Master while getopts i:m:h o do case "$o" in i) increment=$OPTARG;; m) mixer=$OPTARG;; h) echo "$usage"; exit 0;; ?) echo "$usage"; exit 0;; esac done + getopts i:m:h o shift $(($OPTIND - 1)) + shift 0 command=$1 + command=down if [ "$command" = "" ]; then echo "usage: $0 {up|down|mute} [increment]" exit 0; fi + '[' down = '' ']' display_volume=0 + display_volume=0 if [ "$command" = "up" ]; then display_volume=$(amixer set $mixer $increment+ unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1) fi + '[' down = up ']' if [ "$command" = "down" ]; then display_volume=$(amixer set $mixer $increment- unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1) fi + '[' down = down ']' ++ amixer set Master 5%- unmute ++ grep -m 1 '%]' ++ cut -d '[' -f2 ++ cut -d % -f1 + display_volume=46 icon_name="" + icon_name= if [ "$command" = "mute" ]; then if amixer get Master | grep "\[on\]"; then display_volume=0 icon_name="notification-audio-volume-muted" amixer set $mixer mute else display_volume=$(amixer set $mixer unmute | grep -m 1 "%]" | cut -d "[" -f2|cut -d "%" -f1) fi fi + '[' down = mute ']' if [ "$icon_name" = "" ]; then if [ "$display_volume" = "0" ]; then icon_name="notification-audio-volume-off" else if [ "$display_volume" -lt "33" ]; then icon_name="notification-audio-volume-low" else if [ "$display_volume" -lt "67" ]; then icon_name="notification-audio-volume-medium" else icon_name="notification-audio-volume-high" fi fi fi fi + '[' '' = '' ']' + '[' 46 = 0 ']' + '[' 46 -lt 33 ']' + '[' 46 -lt 67 ']' + icon_name=notification-audio-volume-medium notify-send " " -i $icon_name -h int:value:$display_volume -h string:synchronous:volume + notify-send ' ' -i notification-audio-volume-medium -h int:value:46 -h string:synchronous:volume |
BigOrange |
|
![]()
Темы:
0
Сообщения:
201
Участник с: 27 апреля 2017
|
а volumeicon чем не устроил? он всё это умеет |
veles16 |
|
![]()
Темы:
29
Сообщения:
192
Участник с: 23 октября 2012
заблокирован
|
BigOrangeне устраивает |
vs220 |
|
Темы:
22
Сообщения:
8070
Участник с: 16 августа 2009
|
veles16Скрипт нормально отрабатывает. Вы так и не сказали появляется ли надпись? В терминале запустите , должно появиться уведомление значок с полоской
Если уведомление не появляется, попробуйте на Появляется или нет.Если нет дайте вывод
|