177 lines
		
	
	
	
		
			5.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			177 lines
		
	
	
	
		
			5.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| // vi: ft=jsonc
 | ||
| // normal #ebdbb2
 | ||
| // blue   #268bd2
 | ||
| // red    #fb4934
 | ||
| // green  #b8bb26
 | ||
| {
 | ||
|   "layer": "top",
 | ||
|   "height": 26,
 | ||
|   "modules-left": [
 | ||
|     "sway/workspaces",
 | ||
|     "custom/separator#left",
 | ||
|     "custom/separator#space"
 | ||
|   ],
 | ||
|   "modules-center": [
 | ||
|     "custom/separator#right",
 | ||
|     "clock",
 | ||
|     "custom/separator#center",
 | ||
|     "custom/media",
 | ||
|     "custom/separator#center",
 | ||
|     "pulseaudio",
 | ||
|     "custom/separator#left"
 | ||
|   ],
 | ||
|   "modules-right": [
 | ||
|     "custom/separator#right",
 | ||
|     "network",
 | ||
|     "custom/separator#center",
 | ||
|     "cpu",
 | ||
|     "custom/separator#center",
 | ||
|     "memory",
 | ||
|     "custom/separator#center",
 | ||
|     "custom/separator#space",
 | ||
|     "temperature",
 | ||
|     "custom/separator#space",
 | ||
|     "custom/separator#center",
 | ||
|     "custom/separator#space",
 | ||
|     "battery",
 | ||
|     "custom/separator#space",
 | ||
|     "custom/separator#center",
 | ||
|     "custom/separator#space",
 | ||
|     "tray"
 | ||
|   ],
 | ||
|   "custom/separator#left": {
 | ||
|     "format": "<span foreground='#268bd2'>❯</span>"
 | ||
|   },
 | ||
|   "custom/separator#space": {
 | ||
|     "format": " "
 | ||
|   },
 | ||
|   "custom/separator#center": {
 | ||
|     "format": "<span foreground='#268bd2'>|</span>"
 | ||
|   },
 | ||
|   "custom/separator#right": {
 | ||
|     "format": "<span foreground='#268bd2'>❮</span>"
 | ||
|   },
 | ||
|   "custom/media": {
 | ||
|     "format": "{0} {1}",
 | ||
|     "tooltip-format": "{}",
 | ||
|     "tooltip": true,
 | ||
|     "return-type": "json",
 | ||
|     "min-length": 10,
 | ||
|     "max-length": 30,
 | ||
|     "format-icons": {
 | ||
|       "chromium": " ",
 | ||
|       "firefox": " ",
 | ||
|       "Plexamp": "♫ ",
 | ||
|       "default": "♪ "
 | ||
|     },
 | ||
|     "escape": true,
 | ||
|     "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py"
 | ||
|   },
 | ||
|   "clock": {
 | ||
|       "format": "<span foreground='#ebdbb2'> </span>{:%H:%M, %b %d }",
 | ||
|       "format-alt": "<span foreground='#ebdbb2'> </span>{:%A, %B %d, %Y (%R)}",
 | ||
|       "tooltip-format": "\n<span size='9pt'>{calendar}</span>",
 | ||
|       "calendar": {
 | ||
|           "mode"          : "year",
 | ||
|           "mode-mon-col"  : 3,
 | ||
|           "weeks-pos"     : "right",
 | ||
|           "on-scroll"     : 1,
 | ||
|           "on-click-right": "mode",
 | ||
|           "format": {
 | ||
|               "months":     "<span color='#ebdbb2'><b>{}</b></span>",
 | ||
|               "days":       "<span color='#ebdbb2'><b>{}</b></span>",
 | ||
|               "weeks":      "<span color='#268bd2'><b>W{}</b></span>",
 | ||
|               "weekdays":   "<span color='#b8bb26'><b>{}</b></span>",
 | ||
|               "today":      "<span color='#fb4934'><b><u>{}</u></b></span>"
 | ||
|           }
 | ||
|       },
 | ||
|       "actions":  {
 | ||
|           "on-click-right": "mode",
 | ||
|           "on-click-forward": "tz_up",
 | ||
|           "on-click-backward": "tz_down",
 | ||
|           "on-scroll-up": "shift_up",
 | ||
|           "on-scroll-down": "shift_down"
 | ||
|       }
 | ||
|   },
 | ||
|   "cpu": {
 | ||
|     "format": "<span foreground='#ebdbb2'></span>{usage:3}%",
 | ||
|     "min-length": 6,
 | ||
|     "max-length": 10,
 | ||
|     "states": {
 | ||
|       "warning": 70,
 | ||
|       "critical": 90
 | ||
|     },
 | ||
|     "on-click": "foot -T float bashtop"
 | ||
|   },
 | ||
|   "memory": {
 | ||
|     "format": "<span foreground='#ebdbb2'></span>{}%",
 | ||
|     "min-length": 6,
 | ||
|     "max-length": 10,
 | ||
|     "states": {
 | ||
|       "warning": 70,
 | ||
|       "critical": 90
 | ||
|     },
 | ||
|     "on-click": "foot -T float bashtop"
 | ||
|   },
 | ||
|   "battery": {
 | ||
|     "bat": "BAT0",
 | ||
|     "design-capacity": false,
 | ||
|     "states": {
 | ||
|       "warning": 30,
 | ||
|       "critical": 15
 | ||
|     },
 | ||
|     "format": "<span foreground='#ebdbb2'>{icon}</span>{capacity:3}%",
 | ||
|     "format-charging": "<span foreground='#268bd2'></span>{capacity:3}%",
 | ||
|     "format-icons": ["", "", "", "", ""]
 | ||
|   },
 | ||
|   "temperature": {
 | ||
|     "thermal-zone": 0,
 | ||
|     "critical-threshold": 60,
 | ||
|     "format-icons": ["", ""],
 | ||
|     "format": "<span foreground='#ebdbb2'>{icon}</span>{temperatureC:3}°C"
 | ||
|   },
 | ||
|   "network": {
 | ||
|     "interval": 2,
 | ||
|     // "interface": "wl0",
 | ||
|     "format": "{ifname}",
 | ||
|     "format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
 | ||
|     "format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
 | ||
|     "format-disconnected": "<span foreground='#606060'> </span>{ifname}",
 | ||
|     "min-length": 8,
 | ||
|     "max-length": 30,
 | ||
|     "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
 | ||
|     "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
 | ||
|     "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
 | ||
|     "tooltip-format-disconnected": "{ifname} disconnected",
 | ||
|     "on-click": "foot -T float nmtui"
 | ||
|   },
 | ||
|   "pulseaudio": {
 | ||
|     "format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
 | ||
|     "format-muted": "<span foreground='#fb4934'> </span>{format_source}",
 | ||
|     "format-bluetooth": "<span foreground='#ebdbb2'>{icon}</span> {volume}% {format_source}",
 | ||
|     "format-bluetooth-muted": "<span foreground='#fb4934'>{icon}</span>{format_source}",
 | ||
|     "format-source": "<span foreground='#b8bb26'></span>",
 | ||
|     "format-source-muted": "<span foreground='#fb4934'></span>",
 | ||
|     "format-icons": {
 | ||
|       "headphone": "🎧",
 | ||
|       "hands-free": "",
 | ||
|       "headset": "",
 | ||
|       "phone": "",
 | ||
|       "portable": "",
 | ||
|       "car": "",
 | ||
|       "default": ["", "", ""]
 | ||
|     },
 | ||
|     "min-length": 7,
 | ||
|     "max-length": 12,
 | ||
|     "on-click": "$HOME/.config/sway/bin/sway_volume mute",
 | ||
|     "on-click-middle": "$HOME/.config/sway/bin/sway_volume toggle-sink",
 | ||
|     "on-click-right": "$HOME/.config/sway/bin/sway_volume gui",
 | ||
|     "on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase",
 | ||
|     "on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
 | ||
|   },
 | ||
|   "tray": {
 | ||
|     "padding": 10,
 | ||
|     "spacing": 10
 | ||
|   }
 | ||
| }
 | ||
| 
 |