From e966d5328d6f328546db213278d1a1a6cd2f58d5 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Sat, 24 May 2025 04:08:28 -0500 Subject: install scripts. reorganization. soon to be deployable --- env/.config/waybar/config.jsonc | 180 +++++++++++++++++++++++++++++++++++++++ env/.config/waybar/ref-style.css | 163 +++++++++++++++++++++++++++++++++++ env/.config/waybar/style.css | 163 +++++++++++++++++++++++++++++++++++ 3 files changed, 506 insertions(+) create mode 100644 env/.config/waybar/config.jsonc create mode 100644 env/.config/waybar/ref-style.css create mode 100644 env/.config/waybar/style.css (limited to 'env/.config/waybar') diff --git a/env/.config/waybar/config.jsonc b/env/.config/waybar/config.jsonc new file mode 100644 index 0000000..7927204 --- /dev/null +++ b/env/.config/waybar/config.jsonc @@ -0,0 +1,180 @@ +{ + "layer": "top", + "position": "bottom", + "modules-left": ["hyprland/workspaces"], + + //"modules-center": ["clock", ], //"custom/weather"], + + "modules-right": [ + "custom/mic", + "pulseaudio", + //"backlight", + "battery", + "network", + "cpu", + "memory", + //"custom/docker", + "custom/disc", + "custom/rss", + "clock", + "tray", + "custom/lock", + "custom/power" + ], + + "hyprland/workspaces": { + //"format": "{name}: {icon}", + //"all-outputs":true, + "format": "{icon}", + "format-icons": { + /* + "1": "", + "2": "", + "3": "", + "4": "", + "5": "" + */ + "1":"  ", + "2":"  ", + "3":"  ", + "4":"  ", + "5":"  ", + "6":"  ", + "7":"  ", + "8":"  ", + "9":"  ", + "10":"  ", + "11":"  ", + "12":"  ", + "13":"  ", + "14":"  ", + "15":"  ", + "16":"  ", + "17":"  ", + "18":"  ", + "19":"  ", + "20":"  " + }, + /* + "persistent-workspaces": { + "1": [], // Always show a workspace with name '3', on all outputs if it does not exists + "2": [], + "3": [], + "4": [], + "5": [], + "6": [], + "7": [], + "8": [], + "9": [], + "10": [] + }, + */ + "sort-by-name": true + }, + + "tray": { + "icon-size": 16, + "spacing": 10 + }, + + "custom/music": { + "format": " {}", + "escape": true, + "interval": 5, + "tooltip": false, + "exec": "playerctl metadata --format='{{ artist }} - {{ title }}'", + "on-click": "playerctl play-pause", + "max-length": 50 + }, + + "clock": { + "timezone": "America/Chicago", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%m/%d/%Y - %I:%M:%S}", + "interval": 1 + }, + + "network": { + "interface": "wlan0", + "format-wifi": "󰤢 {bandwidthDownBits}", + "format-ethernet": "󰈀 {bandwidthDownBits}", + "format-disconnected": "󰤠 No Network", + "interval": 5, + "tooltip": true, + "tooltip-format-wifi": "{essid} ({signalStrength}%) ", + "tooltip-format-ethernet": "{ifname} ", + "tooltip-format-disconnected": "Disconnected" + }, + + "cpu": { + "interval": 1, + "format": " {icon0}{icon1}{icon2}{icon3} {usage:>2}%", + "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"] + }, + + "memory": { + "interval": 30, + "format": " {used:0.1f}G/{total:0.1f}G" + }, + + "custom/uptime": { + "format": "{}", + "interval": 1600, + "exec": "sh -c '(uptime -p)'" + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "default": ["", "", " "] + }, + "on-click": "pavucontrol" + }, + + "custom/power": { + "tooltip": false, + "on-click": "wlogout &", + "format": "⏻" + }, + + "custom/docker": { + "format": "{}", + "return-type": "json", + "interval": 10, + "exec": "$(pwd)/scripts/docker-stats/docker-stats", + "tooltip": true + }, + + "custom/weather": { + "format": "{}", + "tooltip": true, + "interval": 1800, + "exec": "$(pwd)/scripts/weather-stats/weather-stats", + "return-type": "json" + }, + + "custom/rss": { + "format": " {}", + "interval": 3, + "exec": "/usr/bin/newsboat -x print-unread|sed 's/\\s.*//; s/Error:/IA/'" + }, + + "custom/disc": { + "format": " {}", + "interval": 20, + "exec": "df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g'" + }, + + "custom/mic": { + "format": "{}", + "interval": 1, + "exec": "[ \"$(pactl get-source-mute @DEFAULT_SOURCE@)\" == \"Mute: no\" ] && echo  || echo 󰍭" + }, + + "custom/wifi": { + "format": "{}", + "interval": 1000, + "exec": "sed \"s/down/\\:\\(/;s/up/\\:\\)/\" /sys/class/net/$wifi_device/operstate" + } +} diff --git a/env/.config/waybar/ref-style.css b/env/.config/waybar/ref-style.css new file mode 100644 index 0000000..edc87e0 --- /dev/null +++ b/env/.config/waybar/ref-style.css @@ -0,0 +1,163 @@ +* { + font-family: JetbrainsMono Nerd Font; + font-size: 13px; + min-height: 0; + padding-right: 2px; + padding-left: 2px; + padding-bottom: 0px; +} + +#waybar { + background: transparent; + color: #c6d0f5; + margin: 2px 2px; +} + +#workspaces { + border-radius: 5px; + margin: 5px; + background: #101010; + margin-left: 2px; +} + +#workspaces button { + color: #babbf1; + border-radius: 5px; + padding: 0.4rem; +} + +#workspaces button.active { + color: #99d1db; + border-radius: 5px; +} + +button { + background: transparent; +} + +#workspaces button:hover { + background: #1e1e1e; + border: 0px solid transparent; +} + +#custom-music, +#tray, +#backlight, +#clock, +#battery, +#pulseaudio, +#network, +#cpu, +#memory, +#custom-lock, +#custom-power, +#custom-weather, +#custom-uptime, +#custom-rss, +#custom-disc, +#custom-mic, +#custom-docker { + background-color: #101010; + padding: 0.5rem 1rem; + margin: 5px 0; +} + +#clock { + color: #8caaee; + border-radius: 0px; +} + +#custom-weather { + color: #8caaee; + margin-left: 0.5rem; + border-radius: 5px; +} + +#battery { + color: #a6d189; +} + +#battery.charging { + color: #a6d189; +} + +#battery.warning:not(.charging) { + color: #e78284; +} + +#backlight { + color: #e5c890; +} + +#backlight, +#battery { + border-radius: 0; +} + +#pulseaudio { + color: #ea999c; +} + +#custom-mic{ + color: #ea999c; + border-radius: 5px 0px 0px 5px; +} + +#custom-docker { + color: #85c1dc; +} + +#custom-music { + color: #ca9ee6; + border-radius: 5px; +} + +#custom-lock { + color: #babbf1; +} + +#custom-power { + margin-right: 1rem; + border-radius: 0px 5px 5px 0px; + color: #e78284; +} + +#custom-docker.docker { + color: #85c1dc; +} + +#custom-docker.docker-none { + color: #737994; +} + +#custom-docker.docker-error { + color: #e78284; +} + +#custom-weather.clear { + color: #e5c890; /* Sunny yellow */ +} + +#custom-weather.cloud { + color: #99d1db; /* Light blue */ +} + +#custom-weather.rain { + color: #8caaee; /* Blue */ +} + +#custom-weather.snow { + color: #c6d0f5; /* White-ish */ +} + +#custom-weather.thunder { + color: #ca9ee6; /* Purple */ +} + +#custom-weather.fog { + color: #b0b4bc; /* Gray */ +} + +#custom-weather.error { + color: #e78284; /* Red */ +} diff --git a/env/.config/waybar/style.css b/env/.config/waybar/style.css new file mode 100644 index 0000000..8c9e107 --- /dev/null +++ b/env/.config/waybar/style.css @@ -0,0 +1,163 @@ +* { + font-family: JetbrainsMono Nerd Font; + font-size: 13px; + min-height: 0; + padding-right: 2px; + padding-left: 2px; + padding-bottom: 0px; +} + +#waybar { + background: transparent; + color: #bfbaac; + margin: 2px 2px; +} + +#workspaces { + border-radius: 5px; + margin: 5px; + background: #263640; + margin-left: 2px; +} + +#workspaces button { + color: #696ebf; + border-radius: 5px; + padding: 0.4rem; +} + +#workspaces button.active { + color: #00c5ba; + border-radius: 5px; +} + +button { + background: transparent; +} + +#workspaces button:hover { + background: #4a697d; + border: 0px solid transparent; +} + +#custom-music, +#tray, +#backlight, +#clock, +#battery, +#pulseaudio, +#network, +#cpu, +#memory, +#custom-lock, +#custom-power, +#custom-weather, +#custom-uptime, +#custom-rss, +#custom-disc, +#custom-mic, +#custom-docker { + background-color: #263640; + padding: 0.5rem 1rem; + margin: 5px 0; +} + +#clock { + color: #2587cc; + border-radius: 0px; +} + +#custom-weather { + color: #2587cc; + margin-left: 0.5rem; + border-radius: 5px; +} + +#battery { + color: #a6d189; +} + +#battery.charging { + color: #a6d189; +} + +#battery.warning:not(.charging) { + color: #e78284; +} + +#backlight { + color: #e5c890; +} + +#backlight, +#battery { + border-radius: 0; +} + +#pulseaudio { + color: #fa3935; +} + +#custom-mic{ + color: #fa3935; + border-radius: 5px 0px 0px 5px; +} + +#custom-docker { + color: #2587cc; +} + +#custom-music { + color: #ca9ee6; + border-radius: 5px; +} + +#custom-lock { + color: #babbf1; +} + +#custom-power { + margin-right: 1rem; + border-radius: 0px 5px 5px 0px; + color: #e78284; +} + +#custom-docker.docker { + color: #85c1dc; +} + +#custom-docker.docker-none { + color: #737994; +} + +#custom-docker.docker-error { + color: #e78284; +} + +#custom-weather.clear { + color: #e5c890; /* Sunny yellow */ +} + +#custom-weather.cloud { + color: #99d1db; /* Light blue */ +} + +#custom-weather.rain { + color: #8caaee; /* Blue */ +} + +#custom-weather.snow { + color: #c6d0f5; /* White-ish */ +} + +#custom-weather.thunder { + color: #ca9ee6; /* Purple */ +} + +#custom-weather.fog { + color: #b0b4bc; /* Gray */ +} + +#custom-weather.error { + color: #263640; /* Red */ +} \ No newline at end of file -- cgit v1.3