From 363cf5c64c83f29c0b218d44b9ae67572d0602c9 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 21 Jul 2020 13:11:49 +0200 Subject: waybar: Switch to material design icons --- .config/waybar/config | 87 ++++++++++++++++++++-------------------- .config/waybar/modules/toggl.lua | 2 +- .config/waybar/style.css | 2 +- 3 files changed, 46 insertions(+), 45 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 021492b..09bb1e5 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -12,9 +12,9 @@ "all-outputs": false, "format": "{icon}", "format-icons": { - "m": "", - "v": "", - "g": "" + "m": "󰎇", + "v": "󰿏", + "g": "󰺵" } }, "sway/window": { @@ -27,8 +27,8 @@ "idle_inhibitor": { "format": "{icon}", "format-icons": { - "activated": "", - "deactivated": "" + "activated": "󰛐", + "deactivated": "󰛑" } }, "tray": { @@ -46,27 +46,27 @@ }, "disk#root": { "path": "/", - "format": " / {percentage_used}%" + "format": "󰋊 / {percentage_used}%" }, "disk#home": { "path": "/home", "format": "/home {percentage_used}%" }, "cpu": { - "format": " {}%", + "format": "󰊚 {}%", "on-click": "$HOME/bin/swx -t -f htop" }, "memory": { - "format": " {}%" + "format": "󰍛 {}%" }, "temperature": { "critical-threshold": 90, "format": "{icon} {temperatureC}℃", - "format-icons": ["", "", ""] + "format-icons": ["󱃃", "󰔏", "󱃂", "󰸁"] }, "backlight": { "format": "{icon} {percent}%", - "format-icons": [""], + "format-icons": ["󰹐", "󰌶", "󰛩"], "on-scroll-down": "light -D 5", "on-scroll-up": "light -U 5", }, @@ -77,68 +77,69 @@ "critical": 15 }, "format": "{icon} {capacity}%", - "format-charging": " {capacity}%", - "format-plugged": " {capacity}%", + "format-charging": "󰗱 {capacity}%", + "format-plugged": "󰚥 {capacity}%", "format-alt": "{icon} {time}", "format-full": "{icon}", - "format-icons": ["", "", "", "", ""] + "format-icons": ["󱃍", "󱊡", "󱊢", "󱊣"] }, "network": { "format-wifi": "{icon} ({signalStrength}%)", - "format-icons": [""], - "format-ethernet": " {ifname}: {ipaddr}/{cidr}", - "format-linked": " {ifname} (-)", - "format-disconnected": " (-)", + "format-icons": ["󰤫", "󰤟", "󰤢", "󰤥", "󰤨"], + "format-ethernet": "󰌗 {ifname}: {ipaddr}/{cidr}", + "format-linked": "󰈀 {ifname} (-)", + "format-disconnected": "󰌙 (-)", "tooltip-format": "{ifname}: {ipaddr}/{cidr}\nssid: {essid}\nsignal: {signaldBm} dbm", "tooltip-format-disconnected": "disconnected", - "on-click": "$HOME/bin/swx -t -f iwctl" + "on-click": "swx -t -f iwctl" }, "network#wg": { "interface": "wg0", - "format": "", + "format": "󰯄", "tooltip-format": "wg0: {ipaddr}/{cidr}", "tooltip-format-disconnected": "disconnected", - "on-click": "swaymsg exec doas wg-quick up wg0", - "on-click-right": "swaymsg exec doas wg-quick down wg0" + "on-click": "doas wg-quick up wg0", + "on-click-right": "doas wg-quick down wg0" }, "pulseaudio": { "format": "{icon} {volume}%", "format-bluetooth": "{icon} {volume}%", - "format-muted": " {volume}%", - "format-source": " {volume}%", + "format-muted": "󰝟 {volume}%", + "format-source": "󰍬 {volume}%", "format-source-muted": " {volume}%", "format-icons": { - "headphones": "", - "handsfree": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] + "headphones": "󰋋", + "handsfree": "󰜟", + "headset": "󰋎", + "phone": "󰏲", + "portable": "󰛵", + "car": "󰄋", + "default": ["󰕿", "󰖀", "󰕾"] }, "on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle", - "on-click": "swaymsg exec soundswitch" + "on-click": "swx -t -f pulsemixer" }, "custom/media": { "format": "{icon} {}", "return-type": "json", "max-length": 80, "format-icons": { - "spotify": "", - "mpv": "", - "default": "" + "spotify": "󰓇", + "mpv": "󰐍", + "default": "󰴙" }, "on-click": "sway [workspace=$wsMusic] focus", "escape": false, - "exec": "$HOME/.config/waybar/mediaplayer.py -I chromium -I firefox 2> /dev/null" + "exec": "$HOME/.config/waybar/modules/mediaplayer.py -I chromium -I firefox 2> /dev/null" }, "custom/toggl": { - "exec": "$HOME/.config/waybar/toggl.lua 2>/dev/null", + "format": "󰔟 {}", + "exec": "$HOME/.config/waybar/modules/toggl.lua 2>/dev/null", "interval": 30 }, "custom/redshift": { "exec-if": "pgrep redshift", - "exec": "$HOME/devel/projects/waybar-bites/redshift/waybar-redshift", + "exec": "$HOME/.config/waybar/modules/waybar-redshift", "return-type": "json", "on-click": "pkill -x -USR1 redshift", "on-click-right": "pkill -x -HUP waybar-redshift" @@ -148,21 +149,21 @@ "format-disconnected": "", "unknown-tag": "N/A", "consume-icons": { - "on": " " + "on": "󰆐" }, "random-icons": { "off": "", - "on": " " + "on": "󰒝" }, "repeat-icons": { - "on": " " + "on": "󰑖" }, "single-icons": { - "on": "1 " + "on": "󰑘" }, "state-icons": { - "paused": "", - "playing": "" + "paused": "󰏤", + "playing": "󰐊" }, "tooltip-format": "mpd (connected)", "tooltip-format-disconnected": "mpd (disconnected)" diff --git a/.config/waybar/modules/toggl.lua b/.config/waybar/modules/toggl.lua index e44fce2..7c9f0b9 100755 --- a/.config/waybar/modules/toggl.lua +++ b/.config/waybar/modules/toggl.lua @@ -25,4 +25,4 @@ end d = unix_time + diff -print(string.format(' %dh %.2dm', d/(60*60), d/60%60)) +print(string.format('%dh %.2dm', d/(60*60), d/60%60)) diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 6db3013..fb890ae 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -9,7 +9,7 @@ * { border: none; border-radius: 0; - font-family: Iosevka SS05, Liberation Mono, Noto Sans, Font Awesome; + font-family: Iosevka SS05, Noto Mono, Material Design Icons, Font Awesome; font-size: 12pt; } -- cgit 1.4.1