i3statusのi3wmミキサーコントロール

i3statusのi3wmミキサーコントロール

ターミナルセッションで実行しbindsym button4 exec amixer -D pulse sset Master 5%+bindsym button5 exec amixer -D pulse sset Master 5%-ボリュームを調整できます。ただし、次のようにi3の設定にコマンドを追加すると、

 bar {
         #status_command i3status
         #status_command i3blocks -c ~/.i3/i3blocks.conf
         #status_command ~/.i3/Bar.sh
         status_command conky -c /etc/config/conky/conky.conf

         font pango:Monospace
         colors {
                 background $bg-color
                 separator #757575
                 #                  border             background         text
                 focused_workspace  $bg-color          #000000          $text-color
                 inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
                 urgent_workspace   $urgent-bg-color   $urgent-bg-color   $text-color
         }

         bindsym button4 exec amixer -D pulse sset Master 5%+
         bindsym button5 exec amixer -D pulse sset Master 5%-
 }

私の設定にバグがあります。

ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'position', 'output', 'tray_output', 'font', 'binding_mode_indicator', 'workspace_buttons', 'verbose', 'colors', '}'
ERROR: CONFIG: (in file /home/kalenpw/.i3/config)
ERROR: CONFIG: Line 206:        }
ERROR: CONFIG: Line 207:        
ERROR: CONFIG: Line 208:        bindsym button4 exec amixer -D pulse sset Master 5%+
ERROR: CONFIG:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 209:        bindsym button5 exec amixer -D pulse sset Master 5%-
ERROR: CONFIG: Line 210: }
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'position', 'output', 'tray_output', 'font', 'binding_mode_indicator', 'workspace_buttons', 'verbose', 'colors', '}'
ERROR: CONFIG: (in file /home/kalenpw/.i3/config)
ERROR: CONFIG: Line 207:        
ERROR: CONFIG: Line 208:        bindsym button4 exec amixer -D pulse sset Master 5%+
ERROR: CONFIG: Line 209:        bindsym button5 exec amixer -D pulse sset Master 5%-
ERROR: CONFIG:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 210: }
ERROR: CONFIG: Line 211: 
ERROR: FYI: You are using i3 version 4.7.2 (2014-01-23, branch "tags/4.7.2")

i3wmユーザーガイドの構文をミラーリングしています。

bar {
    # disable clicking on workspace buttons
    bindsym button1 nop
    # execute custom script when scrolling downwards
    bindsym button5 exec ~/.i3/scripts/custom_wheel_down
}

私が見るには構文が正確で、2本のbinsymラインがなくても問題がないので問題があるようです。ステータスバーをスクロールしながらボリュームを調整できるようにするには、この問題を解決するにはどうすればよいですか?

ベストアンサー1

あなたのi3バージョンはとても古いです。少なくとも4.11にアップデートする必要があります。リリースノート)。

そのバージョンのユーザーガイドを見つけることができます。ここ

おすすめ記事