diff --git a/sample_config.toml b/sample_config.toml index 813f6aa..a60ca35 100644 --- a/sample_config.toml +++ b/sample_config.toml @@ -241,6 +241,8 @@ left_click = { modifiers = ["Control"], command = "i3-msg exec pavucontrol" } [[items]] # Show current light brightness (and also adjust it). type = "light" +# This item hsa been given a specific name so it doesn't clash with the next light item +name = "light1" # Optionally provide a path to a specific backlight: # path = "/sys/class/backlight/intel_backlight" # Optionally provide a label that will be appended: @@ -248,6 +250,17 @@ type = "light" # Optionally specify how much percentage to increment the light by when scrolling (default is 5): # increment = 10 +[[items]] +# An example of an additional light item that's used to control keyboard brightness +# It's hidden, so it doesn't appear in the bar, but you can still interact with it via IPC, e.g.: +# `i3stat-ipc custom light2 increase` +type = "light" +# Specific name to use for ipc-related controls +name = "light2" +# Hide this item from the bar +hidden = true +# path = "/sys/devices/platform/keyboard_driver/leds/keyboard" + [[items]] # Show information about CapsLock/NumLock/ScrollLock. type = "kbd" diff --git a/scripts/i3.conf b/scripts/i3.conf index e3f569b..093f17f 100644 --- a/scripts/i3.conf +++ b/scripts/i3.conf @@ -34,9 +34,13 @@ bindsym ctrl+shift+p exec i3stat-ipc --socket /tmp/i3stat-socket-2.dev set-theme bindsym bracketleft exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom pulse volume-down sink bindsym bracketright exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom pulse volume-up sink bindsym backslash exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom pulse mute-toggle sink -bindsym shift+bracketleft exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light increase -bindsym shift+bracketright exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light decrease -bindsym shift+backslash exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light set 50 +bindsym shift+bracketleft exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light1 decrease +bindsym shift+bracketright exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light1 increase +bindsym shift+backslash exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light1 set 50 +# custom ipc with hidden item +bindsym ctrl+bracketleft exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light2 decrease +bindsym ctrl+bracketright exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light2 increase +bindsym ctrl+backslash exec i3stat-ipc --socket /tmp/i3stat-socket.dev custom light2 set 50 # click events bindsym a exec i3stat-ipc --socket /tmp/i3stat-socket.dev click pulse scroll_down