summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config114
-rwxr-xr-x.config/waybar/modules/storage.sh24
-rwxr-xr-x.config/waybar/modules/weather.sh6
-rw-r--r--.config/waybar/style.css71
-rwxr-xr-x.config/waybar/waybar.sh10
5 files changed, 0 insertions, 225 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
deleted file mode 100644
index 9d3deb3..0000000
--- a/.config/waybar/config
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "layer": "bottom",
- "position": "bottom",
- "height": 24,
- "modules-left": ["sway/workspaces", "sway/mode"],
- "modules-center": [""],
- "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "custom/storage", "cpu", "memory", "custom/weather", "tray", "clock"],
- "sway/mode": {
- "format": " {}"
- },
- "sway/workspaces": {
- "format": "{name}",
- "disable-scroll": true
- },
- "clock": {
- "format": "{:%a, %b %d | %H:%M}",
- "tooltip": true,
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- },
- "battery": {
- "format": "| {capacity}% {icon} | ",
- "format-alt": "{time} {icon}",
- "format-icons": ["", "", "", "", ""],
- "format-charging": "{capacity}% CHR",
- "interval": 30,
- "states": {
- "warning": 25,
- "critical": 10
- },
- "tooltip": false
- },
- "network": {
- "interface": "wlp2s0",
- "format": "{ifname}",
- "format-wifi": "{essid} ({signalStrength}%) | ",
- "format-ethernet": "{ifname} ",
- "format-disconnected": "", //An empty format will hide the module.
- "tooltip-format": "{ifname}",
- "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
- "tooltip-format-ethernet": "{ifname} ",
- "tooltip-format-disconnected": "Disconnected",
- "on-click": "alacritty -e nmtui",
- "tooltip": false
- },
- "pulseaudio": {
- "format": "{icon}",
- "format-alt": "{volume} {icon} | ",
- "format-alt-click": "click-right",
- "format-muted": "",
- "format-icons": {
- "phone": [" ", " ", " ", " "],
- "default": ["", "", "", ""]
- },
- "scroll-step": 10,
- "on-click": "pavucontrol",
- "tooltip": false
- },
- "mpd": {
- "format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) | ",
- "format-disconnected": "Disconnected ",
- "format-stopped": "Stopped ",
- "interval": 2,
- "state-icons": {
- "paused": "",
- "playing": ""
- },
- "tooltip": false,
- "on-click": "mpc toggle",
- "on-click-right": "mpc next"
- },
- "custom/storage": {
- "format": "{}  |",
- "format-alt": "{percentage}% ",
- "format-alt-click": "click-right",
- "return-type": "json",
- "interval": 60,
- "exec": "$HOME/.config/waybar/modules/storage.sh"
- },
- "backlight": {
- "format": "{icon}",
- "format-alt": "{percent}% {icon} | ",
- "format-alt-click": "click-right",
- "format-icons": ["", ""],
- "on-scroll-down": "light -A 1",
- "on-scroll-up": "light -U 1"
- },
- "custom/weather": {
- "format": "{} |",
- "format-alt": "{alt}: {}",
- "format-alt-click": "click-right",
- "interval": 1800,
- "return-type": "json",
- "exec": "$HOME/.config/waybar/modules/weather.sh",
- "exec-if": "ping wttr.in -c1"
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- },
- "tooltip": false
- },
- "cpu": {
- "format": "{usage}%  | ",
- "tooltip": false
- },
- "memory": {
- "format": "{used:0.1f}G/{total:0.1f}G | "
- },
- "tray": {
- "icon-size": 14
- }
-}
diff --git a/.config/waybar/modules/storage.sh b/.config/waybar/modules/storage.sh
deleted file mode 100755
index d495da4..0000000
--- a/.config/waybar/modules/storage.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-mount="/"
-warning=20
-critical=10
-
-df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical '
-/\/.*/ {
- text=$4
- tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6
- use=$5
- exit 0
-}
-END {
- class=""
- gsub(/%$/,"",use)
- if ((100 - use) < critical) {
- class="critical"
- } else if ((100 - use) < warning) {
- class="warning"
- }
- print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}"
-}
- '
diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh
deleted file mode 100755
index d64acd0..0000000
--- a/.config/waybar/modules/weather.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-w=$(curl -s wttr.in/ahn?format="%l:+%c+%t+%C+%w+%h+%m")
-w=${w:7}
-w="$(echo -e "${w}" | sed -e 's/^[[:space:]]*//')"
-m=$(python ~/bin/moonphase-waybar.py)
-echo "{\"text\":\""$w ""$m"\", \"tooltip\":\""tooltip"\", \"class\":\""lxf-weather"\"}"
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
deleted file mode 100644
index e05c395..0000000
--- a/.config/waybar/style.css
+++ /dev/null
@@ -1,71 +0,0 @@
-* {
- border: none;
- border-radius: 0;
- font-family: Sans;
- font-size: 15px;
- box-shadow: none;
- text-shadow: none;
- transition-duration: 0s;
-}
-
-window {
- color: rgba(217, 216, 216, 1);
- background: rgba(35, 31, 32, 0.00);
-}
-
-window#waybar.solo {
- color: rgba(217, 216, 216, 1);
- background: rgba(35, 31, 32, 0.85);
-}
-
-#workspaces {
- margin: 0 5px;
-}
-
-#workspaces button {
- padding: 0 5px;
- color: rgba(217, 216, 216, 0.4);
-}
-
-#workspaces button.visible {
- color: rgba(217, 216, 216, 1);
-}
-
-#workspaces button.focused {
- border-top: 3px solid rgba(217, 216, 216, 1);
- border-bottom: 3px solid rgba(217, 216, 216, 0);
-}
-
-#workspaces button.urgent {
- color: rgba(238, 46, 36, 1);
-}
-
-#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
- margin: 0px 6px 0px 10px;
- min-width: 25px;
-}
-
-#clock {
- margin: 0px 4px 0px 6px;
- min-width: 140px;
-}
-
-#battery.warning {
- color: rgba(255, 210, 4, 1);
-}
-
-#battery.critical {
- color: rgba(238, 46, 36, 1);
-}
-
-#battery.charging {
- color: rgba(217, 216, 216, 1);
-}
-
-#custom-storage.warning {
- color: rgba(255, 210, 4, 1);
-}
-
-#custom-storage.critical {
- color: rgba(238, 46, 36, 1);
-}
diff --git a/.config/waybar/waybar.sh b/.config/waybar/waybar.sh
deleted file mode 100755
index 720620c..0000000
--- a/.config/waybar/waybar.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env sh
-
-# Terminate already running bar instances
-killall -q waybar
-
-# Wait until the processes have been shut down
-while pgrep -x waybar >/dev/null; do sleep 1; done
-
-# Launch main
-waybar