295 lines
6.2 KiB
JSON
295 lines
6.2 KiB
JSON
# Enable "plugin" 1, disable "plugin" 0
|
|
{
|
|
# default text and background colors
|
|
"color" : "#3e78fd",
|
|
"background" : "#edeceb",
|
|
|
|
# Load Average
|
|
"la" : 1,
|
|
|
|
# Memory stats
|
|
"mem" : 1,
|
|
|
|
# Just clock
|
|
"clock": {
|
|
"enabled" : 1,
|
|
# html (actually, pango) color notation
|
|
"color" : "#000000",
|
|
"left_click" : {
|
|
"enabled" : 1,
|
|
"cmd" : "orage"
|
|
},
|
|
"right_click" : {
|
|
"enabled" : 0,
|
|
"cmd" : "true"
|
|
}
|
|
},
|
|
|
|
# Battery
|
|
"battery": {
|
|
"enabled" : 1,
|
|
# can be upower or something else to use /sys polling instead of periodic run of upower binary
|
|
"driver" : "upower",
|
|
# where we can find charge_{now,full} and status files
|
|
"sys_dir" : "/sys/class/power_supply/BAT0",
|
|
# invoke 'upower --enumerate' and choose one
|
|
"upower_device" : "/org/freedesktop/UPower/devices/battery_BAT0"
|
|
},
|
|
|
|
# 0-th core temperature
|
|
"cpu_temp": {
|
|
"enabled": 1,
|
|
"file": "/sys/class/hwmon/hwmon0/temp1_input"
|
|
},
|
|
|
|
# Caps Lock status
|
|
"capslock": {
|
|
"enabled" : 1,
|
|
"background" : "#edeceb",
|
|
"color" : "#3e78fd"
|
|
},
|
|
|
|
# OpenVPN status. Note that directive status in openvpn.conf should point to
|
|
# state file and update its timestamp at least as frequent as mtime_threshold in seconds
|
|
"vpn": {
|
|
"enabled": 0,
|
|
"statusfile" : "/tmp/openvpn-status.stat",
|
|
"mtime_threshold": 10,
|
|
# Also we can tcp-ping some service inside vpn network to ensure that connection is not stoned
|
|
"tcp_check" : {
|
|
"enabled": 0,
|
|
"host": "somehost.tld",
|
|
"port": 443,
|
|
"timeout" : 3
|
|
}
|
|
},
|
|
|
|
# Simplified volume indicator
|
|
# it periodically polls pulseaudio via "pactl list sinks" command
|
|
# so it's not light on system resources as i'd like
|
|
"simple-volume-pa": 0,
|
|
|
|
"net-if" : {
|
|
"enabled" : 0,
|
|
# html (actually, pango) notation
|
|
"down_color" : "red",
|
|
"up_color" : "green",
|
|
"if" : [
|
|
{
|
|
"name" : "eth0",
|
|
"dir" : "/sys/class/net/eth0"
|
|
},
|
|
{
|
|
"name" : "wlan0",
|
|
"dir" : "/sys/class/net/wlan0"
|
|
}
|
|
]
|
|
},
|
|
|
|
# Intended for use with desktop notifications
|
|
# Because it inherits all env vars from i3, it can intercat with dbus and other
|
|
# such user session services.
|
|
"cron" : {
|
|
"enabled" : 0,
|
|
"tasks" : [
|
|
{
|
|
"time" : "55 23 * * *",
|
|
"cmd" : [
|
|
"notify-send 'Sleeping Time!' 'Take a nap.'",
|
|
"mpg123 -q /usr/share/sounds/complete_quest_requirement.mp3"
|
|
]
|
|
},
|
|
|
|
{
|
|
# time in crontab format
|
|
"time" : "55 12 * * 2,4",
|
|
# commands as it should be invoked in bash script
|
|
"cmd" : [
|
|
"notify-send 'Pizza time!' 'M-m-m, tasty!'",
|
|
"mpg123 -q /usr/share/sounds/complete_quest_requirement.mp3"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
# Weather to display Application Buttons
|
|
"app_buttons": 1,
|
|
|
|
# Buttons - application launch "buttons"
|
|
"apps": [
|
|
{
|
|
"full_text" : " X ",
|
|
"name" : "kill_fbpanel",
|
|
"cmd" : "killall -9 fbpanel",
|
|
"color": "#aa0000",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
|
|
# text displayed on button
|
|
"full_text" : " Term ",
|
|
|
|
# internal application name, must be unique
|
|
"name" : "lilyterm",
|
|
|
|
# actual commad to be performed if button clicked
|
|
"cmd" : "lilyterm",
|
|
|
|
# WM_CLASS(STRING) = "irssi", "URxvt"
|
|
# ^-instance ^-class
|
|
|
|
# window instance as reported by xprop
|
|
"instance" : "lilyterm",
|
|
|
|
# window class as reported by xprop
|
|
"class" : "LilyTerm",
|
|
|
|
# text color
|
|
"color" : "#666666",
|
|
|
|
# normal border color
|
|
"border": "#adadad",
|
|
|
|
# border color if there is at lest one app window on desktop
|
|
"border_active": "#3e78fd",
|
|
|
|
# if true - '|' will be drawn on panel to the right side of the "button"
|
|
"separator": false,
|
|
|
|
# amount of space in pixels between buttons
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " Ff ",
|
|
"name" : "firefox",
|
|
"cmd" : "firefox",
|
|
"instance" : "Navigator",
|
|
"class" : "Firefox",
|
|
"color" : "#ffa500",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " V ",
|
|
"name" : "vivaldi",
|
|
"cmd" : "vivaldi",
|
|
"instance" : "vivaldi-stable",
|
|
"class" : "Vivaldi-stable",
|
|
"color" : "#ffa500",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " Chr ",
|
|
"name" : "chrome",
|
|
"cmd" : "chrome",
|
|
"instance" : "google-chrome",
|
|
"class" : "Google-chrome",
|
|
"color" : "#ffa500",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " O ",
|
|
"name" : "opera",
|
|
"cmd" : "opera",
|
|
"instance" : "Opera",
|
|
"class" : "Opera",
|
|
"color" : "#ffa500",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " @ ",
|
|
"name" : "thunderbird",
|
|
"cmd" : "thunderbird",
|
|
"instance" : "Mail",
|
|
"class" : "Thunderbird",
|
|
"color" : "#006994",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " Tg ",
|
|
"name" : "telegram",
|
|
"cmd" : "Telegram",
|
|
"instance" : "Telegram",
|
|
"class" : "TelegramDesktop",
|
|
"color" : "#5a8850",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " M ",
|
|
"name" : "myteam",
|
|
"cmd" : "myteam",
|
|
"instance" : "myteam",
|
|
"class" : "myteam",
|
|
"color" : "#5a8850",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " S ",
|
|
"name" : "slack",
|
|
"cmd" : "slack",
|
|
"instance" : "slack",
|
|
"class" : "Slack",
|
|
"color" : "#5a8850",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " Txt ",
|
|
"name" : "mousepad",
|
|
"cmd" : "mousepad",
|
|
"instance" : "mousepad",
|
|
"class" : "Mousepad",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " VSC ",
|
|
"name" : "code",
|
|
"cmd" : "code",
|
|
"instance" : "code",
|
|
"class" : "Code",
|
|
"border": "#adadad",
|
|
"border_active": "#3e78fd",
|
|
"separator": false,
|
|
"separator_block_width": 2
|
|
},
|
|
{
|
|
"full_text" : " K ",
|
|
"name" : "keepassxc",
|
|
"cmd" : "keepassxc",
|
|
"instance" : "keepassxc",
|
|
"class" : "KeePassXC",
|
|
"color" : "#7ec850",
|
|
"border" : "#adadad",
|
|
"border_active" : "#3e78fd"
|
|
}
|
|
]
|
|
}
|