summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
l---------.config/waybar/config1
-rw-r--r--.config/waybar/config.json27
-rw-r--r--.config/waybar/modules.json66
-rw-r--r--.config/waybar/style.css56
4 files changed, 150 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
new file mode 120000
index 0000000..0cffcb3
--- /dev/null
+++ b/.config/waybar/config
@@ -0,0 +1 @@
+config.json \ No newline at end of file
diff --git a/.config/waybar/config.json b/.config/waybar/config.json
new file mode 100644
index 0000000..f61d9bd
--- /dev/null
+++ b/.config/waybar/config.json
@@ -0,0 +1,27 @@
+{
+ "position": "top",
+ "layer": "top",
+ "height": 12,
+ "spacing": 0,
+
+ "_Modules_": "Choose the order of the modules",
+
+ "modules-left": [
+ "dwl/tags",
+ "dwl/window",
+ ],
+
+ "modules-center": [
+ ],
+
+ "modules-right": [
+ "custom/dotfiles",
+ "custom/mail",
+ "custom/eselect",
+ "custom/date",
+ "custom/time",
+ "custom/battery",
+ ],
+
+ "include": "~/.config/waybar/modules.json"
+}
diff --git a/.config/waybar/modules.json b/.config/waybar/modules.json
new file mode 100644
index 0000000..6902c6b
--- /dev/null
+++ b/.config/waybar/modules.json
@@ -0,0 +1,66 @@
+{
+ "dwl/tags": {
+ "num-tags": 9,
+ "disable-click": true,
+ "tag-labels": [
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9"
+ ],
+ },
+ "dwl/window": {
+ "format": " <tt>{layout}</tt> {title} ",
+ "tooltip": false,
+ "max-length": 255,
+ },
+ "custom/time": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-time",
+ "interval": 3600,
+ "signal": 8,
+ },
+ "custom/dotfiles": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-dotfiles",
+ "interval": 3600,
+ "signal": 7,
+ },
+ "custom/mail": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-mail",
+ "exec-if": "$HOME/.local/bin/dwmbar/check-mail",
+ "interval": 3600,
+ "signal": 12,
+ },
+ "custom/eselect": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-eselect",
+ "exec-if": "$HOME/.local/bin/dwmbar/check-eselect",
+ "interval": 3600,
+ "signal": 11,
+ },
+ "custom/battery": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-battery",
+ "interval": 3600,
+ "signal": 1,
+ },
+ "custom/date": {
+ "format": "<tt>{}</tt>",
+ "return-type": "json",
+ "exec": "$HOME/.local/bin/dwmbar/dwmb-date",
+ "interval": 3600,
+ "signal": 6,
+ },
+}
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 0000000..a7e49ca
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,56 @@
+* {
+ /* `otf-font-awesome` is required to be installed for icons */
+ font-size: 11px;
+ padding: 0px;
+ font-family: sans-serif;
+ /* color: #1b1d1b; */
+}
+
+window#waybar {
+ /* background-color: rgba(43, 48, 59, 0); */
+ background-color: rgba(27, 29, 27, 0.78); /* #1b1d1b */
+}
+
+#tags {
+ font-family: sans-serif;
+}
+
+#tags button:not(.occupied):not(.focused) {
+ font-size: 0;
+ min-width: 0;
+ min-height: 0;
+ margin: -17px;
+ padding: 0;
+ border: 0;
+ opacity: 0;
+ box-shadow: none;
+ background-color: transparent;
+}
+
+#tags button.occupied, .block {
+ /* background-color: rgba(27, 29, 27, 0.8); /1* #1b1d1b *1/ */
+ color: rgba(68, 122, 108, 1); /* #447a6c */
+}
+
+#tags button.focused, #window {
+ background-color: rgba(125,75,35,0.8); /* #7d4b23 */
+ color: rgba(27, 29, 27, 1); /* #1b1d1b */
+}
+
+.block {
+ padding-right: 5px;
+}
+
+#workspaces button {
+ background-color: transparent;
+ color: #f2f1f0;
+}
+
+button {
+ /* Use box-shadow instead of border so the text isn't offset */
+ /* box-shadow: inset 0 -3px transparent; */
+ /* Avoid rounded borders under each button name */
+ margin: -4px 0px;
+ border: none;
+ border-radius: 0;
+}