update
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
"clock"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/spotify",
|
||||
"custom/weather",
|
||||
"custom/screenshot",
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
@@ -23,28 +25,50 @@
|
||||
"format": "{id}"
|
||||
},
|
||||
"custom/screenshot": {
|
||||
"exec": "printf '{\"text\": \"\", \"tooltip\": \"Area screenshot: edit in Swappy, copy to clipboard, save to NAS pictures if mounted\"}'",
|
||||
"exec": "printf '{\"text\": \"<span foreground=\\\"#D8DEE9\\\">Shot</span> <span font_desc=\\\"SauceCodePro Nerd Font 15\\\" foreground=\\\"#88C0D0\\\"></span>\", \"tooltip\": \"Area screenshot: edit in Swappy, then choose save path and filename; Esc on filename uses screenshot\"}'",
|
||||
"return-type": "json",
|
||||
"escape": false,
|
||||
"interval": "once",
|
||||
"on-click": "$HOME/.config/waybar/scripts/capture-share-shot.sh"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"escape": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
"activated": "<span foreground=\"#A3BE8C\">Awake</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#A3BE8C\"></span>",
|
||||
"deactivated": "<span foreground=\"#D8DEE9\">Idle</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span>"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%H:%M}",
|
||||
"escape": false,
|
||||
"format": "<span foreground=\"#D8DEE9\">{:%H:%M}</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#88C0D0\"></span>",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": " {:%Y-%m-%d}"
|
||||
"format-alt": "<span foreground=\"#D8DEE9\">{:%Y-%m-%d}</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span>"
|
||||
},
|
||||
"custom/spotify": {
|
||||
"exec": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh",
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"escape": false,
|
||||
"on-click": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --toggle",
|
||||
"on-click-right": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --stop",
|
||||
"on-scroll-up": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --next",
|
||||
"on-scroll-down": "bash $HOME/.config/waybar/scripts/spotify-waybar.sh --prev",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "bash $HOME/.config/waybar/scripts/weather-norrkoping.sh",
|
||||
"return-type": "json",
|
||||
"interval": 600,
|
||||
"escape": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"escape": false,
|
||||
"format": "<span foreground=\"#D8DEE9\">{usage}%</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span>",
|
||||
"tooltip": false,
|
||||
"on-click": "alacritty -e btop"
|
||||
},
|
||||
@@ -52,6 +76,7 @@
|
||||
"custom/mount-data": {
|
||||
"exec": "$HOME/.config/waybar/scripts/check-mount.sh /mnt/data data",
|
||||
"return-type": "json",
|
||||
"escape": false,
|
||||
"interval": 10,
|
||||
"tooltip": true,
|
||||
"on-click": "thunar /mnt/data"
|
||||
@@ -59,34 +84,37 @@
|
||||
"custom/mount-usb1": {
|
||||
"exec": "$HOME/.config/waybar/scripts/check-mount.sh /mnt/usb1 usb1",
|
||||
"return-type": "json",
|
||||
"escape": false,
|
||||
"interval": 10,
|
||||
"tooltip": true,
|
||||
"on-click": "thunar /mnt/usb1"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": " {ipaddr}/{cidr}",
|
||||
"tooltip-format": " {ifname} via {gwaddr}",
|
||||
"format-linked": " {ifname} (No IP)",
|
||||
"format-disconnected": " Disconnected",
|
||||
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||
"escape": false,
|
||||
"format-wifi": "<span foreground=\"#D8DEE9\">{essid} ({signalStrength}%)</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#88C0D0\"></span>",
|
||||
"format-ethernet": "<span foreground=\"#D8DEE9\">{ipaddr}/{cidr}</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#88C0D0\"></span>",
|
||||
"tooltip-format": "<span foreground=\"#D8DEE9\">{ifname} via {gwaddr}</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#88C0D0\"></span>",
|
||||
"format-linked": "<span foreground=\"#D8DEE9\">{ifname} (No IP)</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span>",
|
||||
"format-disconnected": "<span foreground=\"#EBCB8B\">Disconnected</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#BF616A\"></span>",
|
||||
"format-alt": "<span foreground=\"#D8DEE9\">{ifname}: {ipaddr}/{cidr}</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#88C0D0\"></span>",
|
||||
"on-click-right": "nm-connection-editor"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": " {volume}%",
|
||||
"format-source-muted": "",
|
||||
"escape": false,
|
||||
"format": "<span foreground=\"#D8DEE9\">{volume}%</span> {format_source} {icon}",
|
||||
"format-bluetooth": "<span foreground=\"#D8DEE9\">{volume}%</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span> {format_source} {icon}",
|
||||
"format-bluetooth-muted": "{format_source} <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#81A1C1\"></span> {icon} <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#D08770\"></span>",
|
||||
"format-muted": "{format_source} <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#D08770\"></span>",
|
||||
"format-source": "<span foreground=\"#D8DEE9\">{volume}%</span> <span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"format-source-muted": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#D08770\"></span>",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
"headphone": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"hands-free": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"headset": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"phone": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"portable": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"car": "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>",
|
||||
"default": ["<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>", "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>", "<span font_desc=\"SauceCodePro Nerd Font 15\" foreground=\"#B48EAD\"></span>"]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user