foxygit / dotfiles Log in
commits tags

/config/sxbarc · 4.44 KB

raw
# sxbar configuration
# Format: key : value
# Colours accept hex (#rrggbb) or X colour names

# Global settings
show_version         : false
version_text         : poop

# Appearance
height              : 20
bottom_bar          : false
# secondary bar (opposite edge from bottom_bar, so: bottom) hosts the
# taskbar module below
secondary_bar       : true
vertical_padding    : 5
horizontal_padding  : 5
text_padding        : 5
border              : false
border_width        : 1
background_colour   : #000000
foreground_colour   : #7abccd
border_colour       : #ffffff
font                : JetBrainsMono Nerd Font:size=10


workspace_icon : 1 : ""   # globe
workspace_icon : 2 : ""   # terminal
workspace_icon : 3 : ""   # code

# Modules -- any name works, not just the ones below (see "Your own
# modules" further down); each resolves to ~/.config/sxbar/scripts/<name>.sh
# module : name : enabled : refresh_interval_seconds
module : clock      : true : 1
module : date       : true : 60
module : battery    : true : 30
module : volume     : true : 5
module : cpu        : true : 3
# brightness: hover to reveal a slider (needs brightnessctl)
module : brightness : true : 5
# bluetooth: click to open a floating on/off/scan/pair menu (needs bluetoothctl)
module : bluetooth  : true : 10
# usermenu: click to open a floating sleep/log out/shut down menu
module : usermenu   : true : 300
# network: click to open a floating menu showing WiFi/Ethernet + IPs
module : network    : true : 10
# media: hover to reveal album art + Previous/Play-Pause/Next (needs playerctl; curl for remote art)
module : media      : true : 2
# taskbar: click an entry to focus that window on the current workspace
# (needs wmctrl, and sxwm built with the _NET_ACTIVE_WINDOW patch --
# patches/net-active-window-mrjensk.patch in the sxwm repo)
module : taskbar    : true : 1
bar    : taskbar    : secondary
# startmenu: hover for your favorites as popup buttons -- edit
# ~/.config/sxbar/scripts/startmenu.sh's popup_item lines to customize
module : startmenu  : true : 3600

# Prefix/icon shown before a module's output (needs a Nerd Font, see `font` above)
# prefix : module_name : "icon "
prefix : clock   : " "
prefix : date    : " "
prefix_cmd : battery : "~/.config/sxbar/scripts/battery_icon.sh"
prefix_cmd : volume  : "~/.config/sxbar/scripts/volume_icon.sh"
prefix     : cpu     : " "
prefix     : brightness : " "
prefix     : bluetooth  : " "
prefix     : usermenu   : " "
prefix     : network   : " "
prefix     : media     : " "
icon_only  : network   : true
icon_only  : usermenu  : true

# Reserve a fixed pixel width per module so the rest of the bar doesn't
# shift when a value's digit count changes (e.g. cpu: 9% -> 16%).
# width : module_name : min_pixels
# 48px covers icon + " " + up to "100%" in JetBrainsMono Nerd Font:size=10.
width : battery : 40
width : volume  : 40
width : cpu     : 40

# Cap media's title width -- long track names scroll (marquee) instead of
# stretching the bar.
max_width : media : 220

# Album art box size in the media popup (default: 160px square).
popup_image_size : media : 220


colour : clock      : #50fa7b
colour : volume     : #ff79c6
colour : battery    : #ffb86c
colour : date       : #8be9fd
colour : cpu        : #bd93f9
colour : brightness : #f1fa8c
colour : bluetooth  : #4a9eff
colour : usermenu   : #ff5555
colour : media      : #cba6f7
colour : network    : #2ee6d6

# Center the clock
align : clock : center


# Your own modules -- write a script, drop it in
# ~/.config/sxbar/scripts/<name>.sh (executable), then enable it exactly
# like any module above. No more "custom" directive -- there's no
# distinction between a module sxbar ships a script for and one you wrote.
#
# module : temp : true : 5
#
# ...with ~/.config/sxbar/scripts/temp.sh being e.g.:
#   #!/bin/sh
#   sensors | grep 'Package' | awk '{print $4}'
#
# Try-it-yourself demo popup -- safe to click/drag as much as you like,
# combines one of every popup row type (text, image, button, slider,
# segmented buttons). It's entirely self-contained in
# ~/.config/sxbar/scripts/demo_menu.sh -- edit that script once you're
# happy with the feel and want to wire a real module's popup up similarly.
#
# module : demo_menu : true : 999
# colour : demo_menu : #f8f8f2
#
# More examples:
# module : mem     : true : 10   # ~/.config/sxbar/scripts/mem.sh: free -h | awk '/^Mem:/{print $3"/"$2}'
# module : updates : true : 300  # ~/.config/sxbar/scripts/updates.sh: checkupdates | wc -l | tr -d ' '