Skip to content

Commit

Permalink
💄 cleanup waybar
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Mar 17, 2019
1 parent a953f02 commit 8e8c673
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 74 deletions.
145 changes: 72 additions & 73 deletions .config/waybar/config
Original file line number Diff line number Diff line change
@@ -1,79 +1,78 @@
// -*- mode: json -*-
{
"layer": "top", // Waybar at top layer
"height": 24, // Waybar height
"modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"],
"modules-center": ["sway/window"],
"modules-right": ["custom/weather", "pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "clock", "tray"],
"sway/mode": {
"format": "{}"
},
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"urgent": ""
}
},
"sway/window": {
"format": "{}",
"max-length": 40
},
"tray": {
"spacing": 10
},
"clock": {
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% "
},
"memory": {
"format": "{}% "
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
"format": "{ifname}",
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname} ",
"format-disconnected": "",
"on-click": "termite -e 'sudo wifi-menu'"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
"height": 24, // Waybar height
"modules-left": ["custom/weather", "sway/workspaces", "sway/mode"],
//"modules-center": ["sway/window"],
"modules-center": ["custom/spotify"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery" "clock", "tray"],
"sway/mode": {
"format": "{}"
},
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"urgent": ""
}
},
"sway/window": {
"format": "{}",
"max-length": 40
},
"tray": {
"spacing": 10
},
"clock": {
"interval": 60,
"format": "{:%Y-%m-%d %H:%M} "
},
"cpu": {
"format": "{usage}% "
},
"memory": {
"format": "{}% "
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"custom/spotify": {
"format": " {}",
"max-length": 40,
"exec": "$HOME/.config/waybar/modules/mediaplayer.py 2> /dev/null",
"exec-if": "pgrep spotify"
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format": "{ifname}",
"format-wifi": "{signalStrength}% ",
"format-ethernet": "{ifname} ",
"format-disconnected": "",
"on-click": "termite -e 'sudo wifi-menu'"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"custom/weather": {
"format": "{}",
"interval": 1800,
"exec": "~/.config/waybar/modules/weather",
"exec-if": "ping wttr.in -c1"
}
"on-click": "pavucontrol"
},
"custom/spotify": {
"format": " {}",
"max-length": 40,
"exec": "$HOME/.config/waybar/modules/mediaplayer.py 2> /dev/null",
"exec-if": "pgrep spotify"
},
"custom/weather": {
"format": "{}",
"interval": 1800,
"exec": "~/.config/waybar/modules/weather",
"exec-if": "ping wttr.in -c1"
}
}
2 changes: 1 addition & 1 deletion .config/waybar/modules/weather
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

curl -s 'https://fr.wttr.in/?format=2'
curl -s 'https://fr.wttr.in/?format=1'

0 comments on commit 8e8c673

Please sign in to comment.