rj1
log | files | refs

config (3845B) - raw


[
  {
    "output": "DP-2",
    "position": "bottom",
    "layer": "top",
    "modules-left": [
      "sway/workspaces",
      "sway/mode",
      "custom/task"
    ],
    "modules-center": [],
    "modules-right": [
      "custom/recorder",
      "mpd",
      "pulseaudio",
      "custom/temp",
      "memory",
      "disk",
      "clock#utc",
      "clock#toronto",
      "clock",
      "battery"
    ],
    "custom/task": {
      "format": "{}",
      "interval": 10,
      "exec": "$XDG_CONFIG_HOME/waybar/task.sh"
    },
    "clock": {
      "format": "{:%a, %d %b %r}",
      "format-alt": "{:%H:%M:%S}",
      "interval": 1
    },
    "clock#toronto": {
      "format": "{:%I:%M %p} et |",
      "interval": 1,
      "timezone": "America/Toronto"
    },
    "clock#utc": {
      "format": "{:%H:%M} utc |",
      "interval": 1,
      "timezone": "UTC"
    },
    "custom/temp": {
      "exec": "$XDG_CONFIG_HOME/waybar/temp.sh",
      "interval": 10
    },
    "memory": {
      "interval": 5,
      "format": " mem: {percentage}% |"
    },
    "pulseaudio": {
      "format": "{volume}% {icon} | {format_source} |",
      "format-muted": "muted  | {format_source} |",
      "format-source": "mic on",
      "format-source-muted": "mic off",
      "format-icons": {
        "default": [
          "",
          "",
          ""
        ]
      },
      "scroll-step": 1,
      "on-click": "pactl set-sink-mute 0 toggle && pactl get-sink-volume 0",
      "tooltip": false
    },
    "custom/recorder": {
      "format": " ",
      "return-type": "json",
      "interval": 1,
      "exec": "echo '{\"class\": \"recording\"}'",
      "exec-if": "pgrep wf-recorder"
    },
    "mpd": {
      "format": "{stateIcon} {artist} - {title} |",
      "interval": 1,
      "exec": "mpc current",
      "exec-if": "pgrep mpd",
      "on-click": "mpc toggle",
      "escape": true,
      "state-icons": {
        "paused": "",
        "playing": ""
      },
      "tooltip": false
    },
    "disk": {
      "interval": 120,
      "format": " os: {free} |",
      "path": "/"
    }
  },
  {
    "output": "DP-1",
    "position": "bottom",
    "layer": "top",
    "modules-left": [
      "sway/workspaces",
      "sway/mode",
      "custom/task"
    ],
    "modules-center": [],
    "modules-right": [
      "custom/recorder",
      "pulseaudio",
      "clock"
    ],
    "custom/task": {
      "format": "{}",
      "interval": 10,
      "exec": "$XDG_CONFIG_HOME/waybar/task.sh"
    },
    "clock": {
      "format": "{:%a, %d %b %r}",
      "format-alt": "{:%H:%M:%S}",
      "interval": 1
    },
    "custom/temp": {
      "exec": "$XDG_CONFIG_HOME/waybar/temp.sh",
      "interval": 10
    },
    "memory": {
      "interval": 5,
      "format": "mem: {percentage}%"
    },
    "pulseaudio": {
      "format": "{volume}% {icon} | {format_source} |",
      "format-muted": "muted  | {format_source} |",
      "format-source": "mic on",
      "format-source-muted": "mic off",
      "format-icons": {
        "default": [
          "",
          "",
          ""
        ]
      },
      "scroll-step": 1,
      "on-click": "pactl set-sink-mute 0 toggle && pactl get-sink-volume 0",
      "tooltip": false
    },
    "custom/recorder": {
      "format": " ",
      "return-type": "json",
      "interval": 1,
      "exec": "echo '{\"class\": \"recording\"}'",
      "exec-if": "pgrep wf-recorder"
    },
    "mpd": {
      "format": "{stateIcon} {artist} - {title} |",
      "interval": 1,
      "exec": "mpc current",
      "exec-if": "pgrep mpd",
      "on-click": "mpc toggle",
      "escape": true,
      "state-icons": {
        "paused": "",
        "playing": ""
      },
      "tooltip": false
    },
    "disk": {
      "interval": 120,
      "format": " os: {free} |",
      "path": "/"
    }
  }
]