summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config137
-rw-r--r--.config/waybar/config~137
-rwxr-xr-x.config/waybar/getvolume.sh11
-rwxr-xr-x.config/waybar/getvolume.sh~8
-rw-r--r--.config/waybar/style.css177
-rw-r--r--.config/waybar/style.css~177
6 files changed, 647 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
new file mode 100644
index 0000000..1e3dd36
--- /dev/null
+++ b/.config/waybar/config
@@ -0,0 +1,137 @@
+{
+ // "layer": "top", // Waybar at top layer
+ // "position": "bottom", // Waybar position (top|bottom|left|right)
+ "height": 30, // Waybar height (to be removed for auto height)
+ // "width": 1280, // Waybar width
+ "spacing": 4, // Gaps between modules (4px)
+ // Choose the order of the modules
+ "modules-left": ["clock", "custom/df", "custom/volume", "sway/mode", "tray"],
+ "modules-center": ["sway/workspaces"],
+ "modules-right": ["cpu", "memory", "temperature", "battery"],
+ // Modules configuration
+ // "sway/workspaces": {
+ // "disable-scroll": true,
+ // "all-outputs": true,
+ // "format": "{name}: {icon}",
+ // "format-icons": {
+ // "1": "",
+ // "2": "",
+ // "3": "",
+ // "4": "",
+ // "5": "",
+ // "urgent": "",
+ // "focused": "",
+ // "default": ""
+ // }
+ // },
+
+ "sway/workspaces": {
+ "format-icons": {
+ "1": "",
+ "2": "",
+ "3": "",
+ "4": "",
+ "5": "",
+ "default": ""
+ },
+ "format": "{icon}",
+ "persistent_workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": []
+ }
+},
+
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+
+ "tray": {
+ // "icon-size": 21,
+ "spacing": 10
+ },
+ "clock": {
+ "timezone": "Europe/Berlin",
+ "format": "{:%Y-%m-%d %H:%M}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format-alt": "{:%Y-%m-%d}",
+ },
+ "cpu": {
+ "format": "🍟 {usage}%",
+ "tooltip": false
+ },
+ "memory": {
+ "format": "🐐 {}%"
+ },
+ "temperature": {
+ "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 100,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "🔥 {temperatureC}°C",
+ },
+
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "🔋 {capacity}%",
+ },
+
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "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}"
+ },
+ "pulseaudio": {
+ // "scroll-step": 1, // %, can be a float
+ "format": "{volume}% {icon} {format_source}",
+ "format-bluetooth": "{volume}% {icon} {format_source}",
+ "format-bluetooth-muted": " {icon} {format_source}",
+ "format-muted": " {format_source}",
+ "format-source": "{volume}% ",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
+ },
+ "on-click": "pavucontrol"
+ },
+ "custom/media": {
+ "format": "{icon} {}",
+ "return-type": "json",
+ "max-length": 40,
+ "format-icons": {
+ "spotify": "",
+ "default": "🎜"
+ },
+ "escape": true,
+ "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
+ // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
+ },
+ "custom/volume": {
+ "format": "{}",
+ "exec": "$HOME/.config/waybar/getvolume.sh",
+ "interval": 1
+ },
+
+"custom/df": {
+ "format": "{}",
+ "exec": "/bin/sh $HOME/.config/sway/status.sh",
+ "interval": 60
+ }
+}
+
diff --git a/.config/waybar/config~ b/.config/waybar/config~
new file mode 100644
index 0000000..058f127
--- /dev/null
+++ b/.config/waybar/config~
@@ -0,0 +1,137 @@
+{
+ // "layer": "top", // Waybar at top layer
+ // "position": "bottom", // Waybar position (top|bottom|left|right)
+ "height": 30, // Waybar height (to be removed for auto height)
+ // "width": 1280, // Waybar width
+ "spacing": 4, // Gaps between modules (4px)
+ // Choose the order of the modules
+ "modules-left": ["clock", "custom/df", "custom/volume", "sway/mode", "tray"],
+ "modules-center": ["sway/workspaces"],
+ "modules-right": ["cpu", "memory", "temperature", "battery"],
+ // Modules configuration
+ // "sway/workspaces": {
+ // "disable-scroll": true,
+ // "all-outputs": true,
+ // "format": "{name}: {icon}",
+ // "format-icons": {
+ // "1": "",
+ // "2": "",
+ // "3": "",
+ // "4": "",
+ // "5": "",
+ // "urgent": "",
+ // "focused": "",
+ // "default": ""
+ // }
+ // },
+
+ "sway/workspaces": {
+ "format-icons": {
+ "1": "",
+ "2": "",
+ "3": "",
+ "4": "",
+ "5": "",
+ "default": ""
+ },
+ "format": "{icon}",
+ "persistent_workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": []
+ }
+},
+
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+
+ "tray": {
+ // "icon-size": 21,
+ "spacing": 10
+ },
+ "clock": {
+ "timezone": "Europe/Helsinki",
+ "format": "{:%Y-%m-%d %H:%M}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format-alt": "{:%Y-%m-%d}",
+ },
+ "cpu": {
+ "format": "🍟 {usage}%",
+ "tooltip": false
+ },
+ "memory": {
+ "format": "🐐 {}%"
+ },
+ "temperature": {
+ "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 100,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "🔥 {temperatureC}°C",
+ },
+
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "🔋 {capacity}%",
+ },
+
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "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}"
+ },
+ "pulseaudio": {
+ // "scroll-step": 1, // %, can be a float
+ "format": "{volume}% {icon} {format_source}",
+ "format-bluetooth": "{volume}% {icon} {format_source}",
+ "format-bluetooth-muted": " {icon} {format_source}",
+ "format-muted": " {format_source}",
+ "format-source": "{volume}% ",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
+ },
+ "on-click": "pavucontrol"
+ },
+ "custom/media": {
+ "format": "{icon} {}",
+ "return-type": "json",
+ "max-length": 40,
+ "format-icons": {
+ "spotify": "",
+ "default": "🎜"
+ },
+ "escape": true,
+ "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
+ // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
+ },
+ "custom/volume": {
+ "format": "{}",
+ "exec": "$HOME/.config/waybar/getvolume.sh",
+ "interval": 1
+ },
+
+"custom/df": {
+ "format": "{}",
+ "exec": "/bin/sh $HOME/.config/sway/status.sh",
+ "interval": 60
+ }
+}
+
diff --git a/.config/waybar/getvolume.sh b/.config/waybar/getvolume.sh
new file mode 100755
index 0000000..03c28fb
--- /dev/null
+++ b/.config/waybar/getvolume.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+sink=$(pactl list sinks |sed '/^Sink #./!d;s/^Sink #\(.\)/\1/' |tail -n1)
+
+if test "Mute: yes" = "$(pactl get-sink-mute $sink)"
+then
+ echo 
+ exit
+fi
+
+echo  $(pactl get-sink-volume $sink |sed -E '/balance/d;s/.*([0-9 ][0-9 ][0-9]%).*/\1/' |tr -d " ")
diff --git a/.config/waybar/getvolume.sh~ b/.config/waybar/getvolume.sh~
new file mode 100755
index 0000000..306f18d
--- /dev/null
+++ b/.config/waybar/getvolume.sh~
@@ -0,0 +1,8 @@
+#!/bin/sh
+if test "Mute: yes" = "$(pactl get-sink-mute 0)"
+then
+ echo 
+ exit
+fi
+
+echo  $(pactl get-sink-volume $(pactl list sinks |sed '/^Sink #./!d;s/^Sink #\(.\)/\1/' |tail -n1) |sed -E '/balance/d;s/.*([0-9 ][0-9 ][0-9]%).*/\1/' |tr -d " ")
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 0000000..441eaea
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,177 @@
+/*
+ ********************************************
+ *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
+ *░░█▀█░█░░░█░█░█▀▀░░░█░█░█░░░▀█▀░█▀▄░█▀█░░*
+ *░░█▀▀░█░░░█░█░▀▀█░░░█░█░█░░░░█░░█▀▄░█▀█░░*
+ *░░▀░░░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░░*
+ *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
+ ********************************************
+ */
+
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "Liberation Mono";
+ font-weight: bold;
+ font-size: 14px;
+ min-height: 24px;
+ padding-top: 2px;
+}
+
+window#waybar {
+ background: transparent;
+}
+
+window#waybar.hidden {
+ opacity: 0.2;
+}
+
+#window {
+ margin-top: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ border-radius: 26px;
+ transition: none;
+ /*
+ color: #f8f8f2;
+ background: #282a36;
+ */
+ color: transparent;
+ background: transparent;
+}
+
+window#waybar.termite #window,
+window#waybar.Firefox #window,
+window#waybar.Navigator #window,
+window#waybar.PCSX2 #window {
+ color: #4d4d4d;
+ background: #e6e6e6;
+}
+
+#workspaces {
+ margin-top: 8px;
+ margin-left: 12px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ background: #161320;
+ transition: none;
+}
+
+#workspaces button {
+ transition: none;
+ color: #C9CBFF;
+ background: transparent;
+ font-size: 16px;
+ margin-left: -1px;
+ margin-right: -1px;
+}
+
+#workspaces button.focused {
+ color: #ABE9B3;
+}
+
+#workspaces button:hover {
+ transition: none;
+ box-shadow: inherit;
+ text-shadow: inherit;
+ color: #ff79c6;
+}
+/*
+#sway/mode {
+ margin-top: 8px;nn
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #C9CBFF;
+ background: #302D41;
+}
+*/
+
+#temperature {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#battery {
+ margin-top: 8px;
+ margin-left: 8px;
+ margin-right: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#cpu {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#memory {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#clock {
+ margin-top: 8px;
+ margin-left: 8px;
+ margin-right: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#custom-volume {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#custom-df {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
diff --git a/.config/waybar/style.css~ b/.config/waybar/style.css~
new file mode 100644
index 0000000..441eaea
--- /dev/null
+++ b/.config/waybar/style.css~
@@ -0,0 +1,177 @@
+/*
+ ********************************************
+ *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
+ *░░█▀█░█░░░█░█░█▀▀░░░█░█░█░░░▀█▀░█▀▄░█▀█░░*
+ *░░█▀▀░█░░░█░█░▀▀█░░░█░█░█░░░░█░░█▀▄░█▀█░░*
+ *░░▀░░░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░░*
+ *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
+ ********************************************
+ */
+
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "Liberation Mono";
+ font-weight: bold;
+ font-size: 14px;
+ min-height: 24px;
+ padding-top: 2px;
+}
+
+window#waybar {
+ background: transparent;
+}
+
+window#waybar.hidden {
+ opacity: 0.2;
+}
+
+#window {
+ margin-top: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ border-radius: 26px;
+ transition: none;
+ /*
+ color: #f8f8f2;
+ background: #282a36;
+ */
+ color: transparent;
+ background: transparent;
+}
+
+window#waybar.termite #window,
+window#waybar.Firefox #window,
+window#waybar.Navigator #window,
+window#waybar.PCSX2 #window {
+ color: #4d4d4d;
+ background: #e6e6e6;
+}
+
+#workspaces {
+ margin-top: 8px;
+ margin-left: 12px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ background: #161320;
+ transition: none;
+}
+
+#workspaces button {
+ transition: none;
+ color: #C9CBFF;
+ background: transparent;
+ font-size: 16px;
+ margin-left: -1px;
+ margin-right: -1px;
+}
+
+#workspaces button.focused {
+ color: #ABE9B3;
+}
+
+#workspaces button:hover {
+ transition: none;
+ box-shadow: inherit;
+ text-shadow: inherit;
+ color: #ff79c6;
+}
+/*
+#sway/mode {
+ margin-top: 8px;nn
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #C9CBFF;
+ background: #302D41;
+}
+*/
+
+#temperature {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#battery {
+ margin-top: 8px;
+ margin-left: 8px;
+ margin-right: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#cpu {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#memory {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#clock {
+ margin-top: 8px;
+ margin-left: 8px;
+ margin-right: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#custom-volume {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}
+
+#custom-df {
+ margin-top: 8px;
+ margin-left: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ margin-bottom: 0;
+ border-radius: 26px;
+ transition: none;
+ color: #F28FAD;
+ background: #161320;
+}