Skip to content

Commit

Permalink
update sample_config.toml and i3.conf tests for hidden items
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed May 20, 2024
1 parent fae1721 commit fae1709
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions sample_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,26 @@ 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:
# label = " screen"
# 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"
Expand Down
10 changes: 7 additions & 3 deletions scripts/i3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fae1709

Please sign in to comment.