297 lines
8.4 KiB
Plaintext
297 lines
8.4 KiB
Plaintext
{
|
|
//
|
|
// Design
|
|
//
|
|
"ipc": true,
|
|
"layer": "top",
|
|
"position": "bottom",
|
|
//"height": 22,
|
|
//"width": 1280,
|
|
"margin": "0 0 0 0",
|
|
"spacing": 2,
|
|
"fixed-center": true,
|
|
//
|
|
// Modules order
|
|
//
|
|
"modules-left": [
|
|
"custom/popmenu",
|
|
"custom/ssh",
|
|
"custom/filezilla",
|
|
"custom/lftp",
|
|
"sway/mode",
|
|
"keyboard-state",
|
|
"keyboard-state#numlock",
|
|
"sway/scratchpad",
|
|
//"idle_inhibitor",
|
|
"sway/window"
|
|
],
|
|
"modules-center": [
|
|
"sway/workspaces",
|
|
"custom/update"
|
|
],
|
|
"modules-right": [
|
|
"cpu",
|
|
"temperature",
|
|
"memory",
|
|
"disk",
|
|
//"disk#disk2",
|
|
"network",
|
|
"pulseaudio",
|
|
"backlight",
|
|
"battery",
|
|
"custom/wlsunset",
|
|
"custom/infosbox",
|
|
"custom/infosystem",
|
|
"custom/trash",
|
|
"clock",
|
|
"tray",
|
|
"custom/exit"
|
|
],
|
|
//
|
|
// Modules configuration (alphabetic order)
|
|
//
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{icon}",
|
|
"format-alt": "{icon} {percent}%",
|
|
"format-icons": ["", "", "", ""]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"good": 80,
|
|
"warning": 20,
|
|
"critical": 10
|
|
},
|
|
"format": "{icon}",
|
|
"format-charging": "",
|
|
"format-plugged": "",
|
|
"format-alt": "{icon} {capacity}% {time}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
"format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"clock": {
|
|
"timezone": "Europe/Paris",
|
|
"format": "<b>{:%I:%M}</b>",
|
|
"format-alt": "<b>{:%Y-%m-%d}</b>",
|
|
"tooltip-format": "<tt>{calendar}</tt>",
|
|
"calendar": {
|
|
"mode" : "month",
|
|
"mode-mon-col" : 3,
|
|
"weeks-pos" : "none",
|
|
"on-scroll" : 0,
|
|
"format": {
|
|
"months": "<span color='#eceff4'><b>{}</b></span>",
|
|
"days": "<span color='#d8dee9'>{}</span>",
|
|
"weekdays": "<span color='#ebcb8b'><b>{}</b></span>",
|
|
"today": "<span color='#bf616a'><b>{}</b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode"
|
|
}
|
|
},
|
|
"cpu": {
|
|
"states": {
|
|
"critical": 90,
|
|
"warning": 80
|
|
},
|
|
"interval": 1,
|
|
"format": " {usage}%",
|
|
//"format-alt": " {icon0}{icon1} {usage:>2}%",
|
|
//"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
"on-click-right": "foot btop"
|
|
},
|
|
"custom/exit": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "nakedquit"
|
|
},
|
|
"custom/infosbox": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
//"on-click": "$HOME/bin/infosbox"
|
|
"on-click": "xterm -g 110x28 -e 'neowofetch;$SHELL'"
|
|
},
|
|
"custom/infosystem": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "pgrep -x btop && pkill btop || foot -W 140x40 --title Infos-System btop"
|
|
},
|
|
"custom/filezilla": {
|
|
"format": "{}",
|
|
"exec": "echo ''",
|
|
"exec-if": "pgrep -x filezilla",
|
|
"interval": 30
|
|
},
|
|
"custom/lftp": {
|
|
"format": "{}",
|
|
"exec": "echo ''",
|
|
"exec-if": "pgrep -x lftp",
|
|
"interval": 30
|
|
},
|
|
"custom/popmenu": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "popmenu"
|
|
},
|
|
"custom/ssh": {
|
|
"format": "{}",
|
|
"exec": "echo ''",
|
|
"exec-if": "pgrep -x ssh",
|
|
"interval": 5
|
|
},
|
|
"custom/trash": {
|
|
"format": "{}",
|
|
"exec": "[ $(trash-list|wc -l) -gt 0 ] && echo \" $(trash-list|wc -l)\" || echo \"\"",
|
|
"interval": 10,
|
|
"tooltip": false,
|
|
"on-click": "dotcleaner"
|
|
},
|
|
"custom/update": {
|
|
"format": "{}",
|
|
"tooltip": false,
|
|
"exec": "nakedupdate -p",
|
|
"exec-on-event": true,
|
|
"on-click": "nakedupdate -m",
|
|
"interval": 600
|
|
},
|
|
"custom/wlsunset": {
|
|
"exec": "$HOME/.config/sway/scripts/screentemp check",
|
|
"return-type": "json",
|
|
"exec-on-event": "true",
|
|
"interval": "once",
|
|
"on-click": "$HOME/.config/sway/scripts/screentemp toggle; pkill -RTMIN+5 waybar",
|
|
"signal": 5
|
|
},
|
|
"disk": {
|
|
"format": " {percentage_used}%",
|
|
"format-alt": " {free} free",
|
|
"tooltip-format": " disk usage\nused: {used}\nfree: {free}\nfull: {total}",
|
|
"states": {
|
|
"warning": 65,
|
|
"critical": 90
|
|
},
|
|
"interval": 60
|
|
},
|
|
"disk#disk2": {
|
|
"path": "/media/arp/nakedback/",
|
|
"format": " {percentage_used}%",
|
|
"format-alt": " {free} free",
|
|
"tooltip-format": " nakedback usage\nused: {used}\nfree: {free}\nfull: {total}",
|
|
"states": {
|
|
"warning": 65,
|
|
"critical": 90
|
|
},
|
|
"interval": 60
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip-format-activated": "idle disabled",
|
|
"tooltip-format-deactivated": "idle enabled"
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": false,
|
|
"capslock": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"locked": "C",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"keyboard-state#numlock": {
|
|
"numlock": true,
|
|
"capslock": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"locked": "N",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"memory": {
|
|
"format": " {}%",
|
|
"format-alt": " {used} used - {avail} free",
|
|
"tooltip-format": " mem usage\nused: {used}\nfree: {avail}\nswap: {swapPercentage}%",
|
|
"interval": 15,
|
|
"states": {
|
|
"warning": 65,
|
|
"critical": 80
|
|
},
|
|
"on-click-right": "foot btop"
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format": "{ifname}",
|
|
"format-wifi": " {signalStrength}%",
|
|
"format-ethernet": " ",
|
|
"format-linked": " noip",
|
|
"format-disconnected": " nonet",
|
|
"tooltip-format": "{ifname} {essid}\n {bandwidthUpOctets}\n {bandwidthDownOctets}",
|
|
"format-alt": "{ifname}: {ipaddr}",
|
|
"on-click-right": "connman-gtk"
|
|
},
|
|
"pulseaudio": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"tooltip": false,
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "foot --app-id=mixer -W 80x25 alsamixer",
|
|
"on-click-right": "pavucontrol"
|
|
},
|
|
"sway/mode": {
|
|
"format": "{}",
|
|
"tooltip": false
|
|
},
|
|
"sway/scratchpad": {
|
|
"format": "{icon} {count}",
|
|
"show-empty": false,
|
|
"format-icons": ["", ""],
|
|
"tooltip": true,
|
|
"tooltip-format": "{app}: {title}"
|
|
},
|
|
"sway/window": {
|
|
"format": " {}",
|
|
"max-length": 50,
|
|
"on-click-right": "swaymsg move to scratchpad $1"
|
|
},
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"format": "{name}"
|
|
},
|
|
"temperature": {
|
|
// "thermal-zone": 2,
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 85,
|
|
"format-critical": "{icon} {temperatureC}°C",
|
|
"format": "{icon}",
|
|
"format-alt": "{temperatureC}°C",
|
|
"tooltip": true,
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"show-passive-items": true,
|
|
"spacing": 5
|
|
}
|
|
}
|
|
|
|
// vim: ft=jsonc
|