summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-05-05 16:38:48 +0300
committerThanos Apollo <[email protected]>2023-05-05 16:38:48 +0300
commitb6c2589eae30877cc5e362e06f3d480a0aee2e81 (patch)
treeb2158ab099ff4bf3c1523ddc658740f9ba05715e /.config/waybar
parent5d97d357864c5e7b973df45bf19be944c55d7093 (diff)
remove old files
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config.jsonc115
-rwxr-xr-x.config/waybar/scripts/sound.sh3
-rwxr-xr-x.config/waybar/scripts/waybar-wttr.py119
-rw-r--r--.config/waybar/style.css149
4 files changed, 0 insertions, 386 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
deleted file mode 100644
index 98881f3..0000000
--- a/.config/waybar/config.jsonc
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "layer": "top",
- "position": "top",
- "mod": "dock",
- "exclusive": true,
- "passthrough": false,
- "gtk-layer-shell": true,
- "height": 0,
- "modules-left": [
- "clock",
- "custom/weather"
- // "hyprland/window",
- ],
- "modules-center": ["wlr/workspaces"],
- "modules-right": [
- "tray",
- "custom/updates",
- "custom/language",
- "battery",
- "backlight",
- "custom/volume"
- // "pulseaudio#microphone"
- ],
-
- "hyprland/window": {
- "format": "{}"
- },
- "wlr/workspaces": {
- "disable-scroll": true,
- "all-outputs": true,
- "on-click": "activate",
- //"format": "{icon}",
- "persistent_workspaces": {
- "1": [],
- "2": [],
- "3": [],
- "4": [],
- "5": [],
- "6": [],
- "7": [],
- "8": [],
- "9": [],
- "10": []
- }
- },
- "custom/updates": {
- "exec": "(pacman -Qu ; paru -Qua) | wc -l",
- "interval": 7200,
- "format": " {}"
- },
- "custom/weather" : {
- "tooltip" : true,
- "format" : "{}",
- "interval" : 30,
- "exec" : "~/.config/waybar/scripts/waybar-wttr.py",
- "return-type" : "json"
- },
- "tray": {
- "icon-size": 13,
- "spacing": 10
- },
- "clock": {
- "format": "{: %R  %d/%m}",
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
- },
- "backlight": {
- "device": "intel_backlight",
- "format": "{icon} {percent}%",
- "format-icons": ["", "", ""],
- "on-scroll-up": "brightnessctl set 1%+",
- "on-scroll-down": "brightnessctl set 1%-",
- "min-length": 6
- },
- "battery": {
- "states": {
- "good": 95,
- "warning": 30,
- "critical": 20
- },
- "format": "{icon} {capacity}%",
- "format-charging": " {capacity}%",
- "format-plugged": " {capacity}%",
- "format-alt": "{time} {icon}",
- "format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
- },
- "pulseaudio": {
- "format": "{icon} {volume}%",
- "tooltip": false,
- "format-muted": " Muted",
- "on-click": "pamixer -t",
- "on-scroll-up": "pamixer -i 5",
- "on-scroll-down": "pamixer -d 5",
- "scroll-step": 5,
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- }
- },
- "custom/volume": {
- "exec": "~/.config/waybar/scripts/sound.sh",
- "interval": 1,
- "format": " {}",
- "tooltip": true
- }
- // "custom/pipewire": {
- // "format": {},
- // "exec": "awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master)",
- // "interval": 10
- // },
-}
diff --git a/.config/waybar/scripts/sound.sh b/.config/waybar/scripts/sound.sh
deleted file mode 100755
index 8c19a5b..0000000
--- a/.config/waybar/scripts/sound.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master)
diff --git a/.config/waybar/scripts/waybar-wttr.py b/.config/waybar/scripts/waybar-wttr.py
deleted file mode 100755
index 08b49a6..0000000
--- a/.config/waybar/scripts/waybar-wttr.py
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/usr/bin/env python
-
-import json
-import requests
-from datetime import datetime
-
-WEATHER_CODES = {
- '113': '☀️ ',
- '116': '⛅ ',
- '119': '☁️ ',
- '122': '☁️ ',
- '143': '☁️ ',
- '176': '🌧️',
- '179': '🌧️',
- '182': '🌧️',
- '185': '🌧️',
- '200': '⛈️ ',
- '227': '🌨️',
- '230': '🌨️',
- '248': '☁️ ',
- '260': '☁️ ',
- '263': '🌧️',
- '266': '🌧️',
- '281': '🌧️',
- '284': '🌧️',
- '293': '🌧️',
- '296': '🌧️',
- '299': '🌧️',
- '302': '🌧️',
- '305': '🌧️',
- '308': '🌧️',
- '311': '🌧️',
- '314': '🌧️',
- '317': '🌧️',
- '320': '🌨️',
- '323': '🌨️',
- '326': '🌨️',
- '329': '❄️ ',
- '332': '❄️ ',
- '335': '❄️ ',
- '338': '❄️ ',
- '350': '🌧️',
- '353': '🌧️',
- '356': '🌧️',
- '359': '🌧️',
- '362': '🌧️',
- '365': '🌧️',
- '368': '🌧️',
- '371': '❄️',
- '374': '🌨️',
- '377': '🌨️',
- '386': '🌨️',
- '389': '🌨️',
- '392': '🌧️',
- '395': '❄️ '
-}
-
-data = {}
-
-
-weather = requests.get("https://wttr.in/?format=j1").json()
-
-
-def format_time(time):
- return time.replace("00", "").zfill(2)
-
-
-def format_temp(temp):
- return (hour['FeelsLikeC']+"°").ljust(3)
-
-
-def format_chances(hour):
- chances = {
- "chanceoffog": "Fog",
- "chanceoffrost": "Frost",
- "chanceofovercast": "Overcast",
- "chanceofrain": "Rain",
- "chanceofsnow": "Snow",
- "chanceofsunshine": "Sunshine",
- "chanceofthunder": "Thunder",
- "chanceofwindy": "Wind"
- }
-
- conditions = []
- for event in chances.keys():
- if int(hour[event]) > 0:
- conditions.append(chances[event]+" "+hour[event]+"%")
- return ", ".join(conditions)
-
-tempint = int(weather['current_condition'][0]['FeelsLikeC'])
-extrachar = ''
-if tempint > 0 and tempint < 10:
- extrachar = '+'
-
-
-data['text'] = ' '+WEATHER_CODES[weather['current_condition'][0]['weatherCode']] + \
- " "+extrachar+weather['current_condition'][0]['FeelsLikeC']+"°"
-
-data['tooltip'] = f"<b>{weather['current_condition'][0]['weatherDesc'][0]['value']} {weather['current_condition'][0]['temp_C']}°</b>\n"
-data['tooltip'] += f"Feels like: {weather['current_condition'][0]['FeelsLikeC']}°\n"
-data['tooltip'] += f"Wind: {weather['current_condition'][0]['windspeedKmph']}Km/h\n"
-data['tooltip'] += f"Humidity: {weather['current_condition'][0]['humidity']}%\n"
-for i, day in enumerate(weather['weather']):
- data['tooltip'] += f"\n<b>"
- if i == 0:
- data['tooltip'] += "Today, "
- if i == 1:
- data['tooltip'] += "Tomorrow, "
- data['tooltip'] += f"{day['date']}</b>\n"
- data['tooltip'] += f"⬆️ {day['maxtempF']}° ⬇️ {day['mintempF']}° "
- data['tooltip'] += f"🌅 {day['astronomy'][0]['sunrise']} 🌇 {day['astronomy'][0]['sunset']}\n"
- for hour in day['hourly']:
- if i == 0:
- if int(format_time(hour['time'])) < datetime.now().hour-2:
- continue
- data['tooltip'] += f"{format_time(hour['time'])} {WEATHER_CODES[hour['weatherCode']]} {format_temp(hour['FeelsLikeC'])} {hour['weatherDesc'][0]['value']}, {format_chances(hour)}\n"
-
-
-print(json.dumps(data))
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
deleted file mode 100644
index bcfb4b0..0000000
--- a/.config/waybar/style.css
+++ /dev/null
@@ -1,149 +0,0 @@
-* {
- border: none;
- border-radius: 0;
- font-family: Jetbrains Mono, Cartograph CF Nerd Font, monospace;
- font-weight: bold;
- font-size: 14px;
- min-height: 0;
-}
-
-window#waybar {
- background: rgba(21, 18, 27, 0);
- color: #cdd6f4;
-}
-
-tooltip {
- background: #0d1017;
- border-radius: 10px;
- border-width: 2px;
- border-style: solid;
- border-color: #11111b;
-}
-
-#workspaces button {
- padding: 5px;
- color: #313244;
- margin-right: 5px;
-}
-
-#workspaces button.active {
- color: #39bae6;
-}
-
-#workspaces button.focused {
- color: #a6adc8;
- background: #eba0ac;
- border-radius: 10px;
-}
-
-#workspaces button.urgent {
- color: #11111b;
- background: #a6e3a1;
- border-radius: 10px;
-}
-
-#workspaces button:hover {
- background: #11111b;
- color: #cdd6f4;
- border-radius: 10px;
-}
-
-#custom-language,
-#custom-updates,
-#custom-caffeine,
-#custom-weather,
-#window,
-#clock,
-#battery,
-#pulseaudio,
-#custrom-volume,
-#network,
-#workspaces,
-#tray,
-#backlight {
- background: #0d1017;
- padding: 0px 10px;
- margin: 3px 0px;
- margin-top: 10px;
- border: 1px solid #181825;
-}
-
-#tray {
- border-radius: 10px;
- margin-right: 10px;
-}
-
-#workspaces {
- background: #0d1017;
- border-radius: 10px;
- margin-left: 10px;
- padding-right: 0px;
- padding-left: 5px;
-}
-
-#custom-caffeine {
- color: #89dceb;
- border-radius: 10px 0px 0px 10px;
- border-right: 0px;
- margin-left: 10px;
-}
-
-#custom-language {
- color: #f38ba8;
- border-left: 0px;
- border-right: 0px;
-}
-
-#custom-updates {
- color: #ff8f40;
- border-left: 0px;
- border-right: 0px;
-}
-
-#window {
- border-radius: 10px;
- margin-left: 20px;
- margin-right: 60px;
-}
-
-#clock {
- color: #39bae6;
- border-radius: 10px 0px 0px 10px;
- margin-left: 0px;
- border-right: 0px;
-}
-
-#network {
- color: #f9e2af;
- border-left: 0px;
- border-right: 0px;
-}
-
-#pulseaudio {
- color: #59c2ff;
- border-left: 5px;
- border-right: 5px;
-}
-#custom-volume {
- background: #0d1017;
- color: #59c2ff;
- padding: 8px;
- margin-top: 11px;
- margin-bottom: 3px;
- border-left: 0px;
- border-right: 0px;
-}
-
-#battery {
- color: #a6e3a1;
- border-radius: 0 10px 10px 0;
- margin-right: 10px;
- border-left: 0px;
-
-}
-
-#custom-weather {
- border-radius: 0px 10px 10px 0px;
- border-right: 0px;
- margin-left: 0px;
-}