aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config128
-rwxr-xr-x.config/waybar/scripts/album_art.sh9
-rwxr-xr-x.config/waybar/scripts/doppler1
-rwxr-xr-x.config/waybar/scripts/hyprdoppler1
-rwxr-xr-x.config/waybar/scripts/hyprweather1
-rwxr-xr-x.config/waybar/scripts/onclick-weather2
-rwxr-xr-x.config/waybar/scripts/pacpackages2
-rwxr-xr-x.config/waybar/scripts/pacupdate4
-rwxr-xr-x.config/waybar/scripts/weather3
-rw-r--r--.config/waybar/style.css190
-rw-r--r--.config/waybar/theme.css26
11 files changed, 367 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
new file mode 100644
index 0000000..fad921d
--- /dev/null
+++ b/.config/waybar/config
@@ -0,0 +1,128 @@
+{
+ "layer": "top",
+ "position": "bottom",
+ "spacing": 0,
+ "reload_style_on_change": true,
+ "modules-left": ["hyprland/workspaces","custom/separator","hyprland/window"],
+ "modules-center": [],
+ "modules-right": ["custom/pacman", "custom/weather","memory","temperature", "custom/separator", "image", "pulseaudio","wireplumber", "custom/separator", "clock","tray"],
+
+ "hyprland/window": {
+ "format": "{}",
+ "max-length": 50,
+ "separate-outputs": true,
+ "rewrite": {
+ "(.*) — Mozilla Firefox": "󰈹 $1",
+ "(.*)Mozilla Firefox": "󰈹 Firefox",
+ "nvim(.*)": " $1",
+ "(.*)spotify_player(.*)": "󰓇 Spotify",
+ "proxychains -q spoti(.*)": "󰓇 Spotify",
+ "(.*)Steam": "󰓓 Steam"
+ }
+ },
+
+ "hyprland/workspaces": {
+ "disable-scroll": true,
+ "all-outputs": true,
+ "on-click": "activate",
+ "format": "{name}",
+ "format-icons": {
+ "1": "",
+ "2": "",
+ "3": "",
+ "4": "",
+ "5": "",
+ "default": ""
+ },
+ },
+ "network": {
+ "tooltip": false,
+ "interval": 5,
+ "format": "󰜮 {bandwidthDownBytes} 󰜷 {bandwidthUpBytes}",
+ },
+ "tray": {
+ "spacing": 10
+ },
+ "clock": {
+ "interval": 1,
+ "format": "{:%H:%M:%S}",
+ "tooltip-format": "{:%a %d %b}"
+ },
+ "mpris": {
+ "tooltip": false,
+ "format": "{player_icon} {artist} - {title}",
+ "format-paused": "{status_icon} <b>{artist} - {title}</b>",
+ "player-icons": {
+ "default": "▶",
+ "spotify_player": "",
+ },
+ "status-icons": {
+ "paused": "󰏤",
+ "stopped": "",
+ },
+ "ignored-players": ["firefox"]
+ },
+ "cpu": {
+ "interval": 10,
+ "format": " {usage}%",
+ "tooltip": false,
+ "spacing": 0
+ },
+ "memory": {
+ "tooltip": false,
+ "format": " {used:0.01f}Gb",
+ "interval": 10,
+ },
+ "temperature": {
+ "tooltip": false,
+ "thermal-zone": 2,
+ "format": " {temperatureC}°C",
+ "interval": 10,
+ },
+ "image":{
+ "exec":"~/.config/waybar/scripts/album_art.sh",
+ //"path": "/tmp/cover.jpeg",
+ "size": 32,
+ "interval": 5,
+ },
+ "wireplumber": {
+ "format": "{icon} {volume}%",
+ "format-muted": "󰝟",
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
+ "format-icons": [" ", " ", " "]
+ },
+ "pulseaudio": {
+ "tooltip" : false,
+ "format": "{format_source}",
+ "format-source": " {volume}%",
+ "format-source-muted": " ",
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
+ },
+ "custom/weather" : {
+ "tooltip" : false,
+ "signal": 9,
+ "format" : "{}",
+ "interval" : 300,
+ "exec" : "~/.config/waybar/scripts/weather",
+ "on-click": "~/.config/waybar/scripts/hyprweather",
+ "on-click-right": "pkill -RTMIN+9 waybar"
+ },
+ "custom/pacman" : {
+ "tooltip" : false,
+ "signal": 8,
+ "format" : "{}",
+ "interval" : 18000,
+ "exec" : "~/.config/waybar/scripts/pacpackages",
+ "on-click" : "~/.config/waybar/scripts/pacupdate",
+ "on-click-right" : "pkill -RTMIN+8 waybar"
+
+ },
+ "custom/separator" : {
+ "format" : " | ",
+ },
+ "custom/doppler" : {
+ "format": "🌅 ",
+ "on-click": "~/.config/waybar/scripts/hyprdoppler",
+ }
+}
+
diff --git a/.config/waybar/scripts/album_art.sh b/.config/waybar/scripts/album_art.sh
new file mode 100755
index 0000000..5a8cdab
--- /dev/null
+++ b/.config/waybar/scripts/album_art.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+album_art=$(playerctl -p spotify_player metadata mpris:artUrl)
+if [[ -z $album_art ]]
+then
+ # spotify is dead, we should die too.
+ exit
+fi
+curl -s "${album_art}" --output "/tmp/cover.jpeg"
+echo "/tmp/cover.jpeg"
diff --git a/.config/waybar/scripts/doppler b/.config/waybar/scripts/doppler
new file mode 100755
index 0000000..3d1b7dc
--- /dev/null
+++ b/.config/waybar/scripts/doppler
@@ -0,0 +1 @@
+curl -s "https://meteoinfo.ru/hmc-output/rmap/phenomena.gif" | imv - -H 1200 -W 1200
diff --git a/.config/waybar/scripts/hyprdoppler b/.config/waybar/scripts/hyprdoppler
new file mode 100755
index 0000000..d383b32
--- /dev/null
+++ b/.config/waybar/scripts/hyprdoppler
@@ -0,0 +1 @@
+hyprctl dispatch exec "[float; size 1200 1200;]" '/home/awy/.config/waybar/scripts/doppler'
diff --git a/.config/waybar/scripts/hyprweather b/.config/waybar/scripts/hyprweather
new file mode 100755
index 0000000..45687f6
--- /dev/null
+++ b/.config/waybar/scripts/hyprweather
@@ -0,0 +1 @@
+hyprctl dispatch exec "[float; size 1430 1100;]" 'kitty -e "/home/awy/.config/waybar/scripts/onclick-weather"'
diff --git a/.config/waybar/scripts/onclick-weather b/.config/waybar/scripts/onclick-weather
new file mode 100755
index 0000000..9592932
--- /dev/null
+++ b/.config/waybar/scripts/onclick-weather
@@ -0,0 +1,2 @@
+curl wttr.in
+read -p "Press Enter to continue..."
diff --git a/.config/waybar/scripts/pacpackages b/.config/waybar/scripts/pacpackages
new file mode 100755
index 0000000..e362ee2
--- /dev/null
+++ b/.config/waybar/scripts/pacpackages
@@ -0,0 +1,2 @@
+doas pacman -Sy > /dev/null 2>&1
+pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/📦 /;s/^📦 0$//g"
diff --git a/.config/waybar/scripts/pacupdate b/.config/waybar/scripts/pacupdate
new file mode 100755
index 0000000..0bdf32e
--- /dev/null
+++ b/.config/waybar/scripts/pacupdate
@@ -0,0 +1,4 @@
+doas pacman -Syu --noconfirm
+sleep 5
+hyprctl notify 5 10000 "rgb(ff1ea3)" " Packages have been upgraded"
+pkill -RTMIN+8 waybar
diff --git a/.config/waybar/scripts/weather b/.config/waybar/scripts/weather
new file mode 100755
index 0000000..c80b387
--- /dev/null
+++ b/.config/waybar/scripts/weather
@@ -0,0 +1,3 @@
+#!/bin/sh
+#curl -s "wttr.in/?format=3" | awk '{print $3, $4}'
+curl -s "wttr.in/?format='%c%t'" | sed "s/'//g" | sed 's/ / /g'
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 0000000..243fc28
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,190 @@
+@import "theme.css";
+* {
+ border: none;
+ border-radius: 0;
+ font-family: IBMPlexMono;
+ font-weight: normal;
+ font-size: 14px;
+ min-height: 0;
+}
+
+#waybar {
+ background: rgba(0,0,0,0.5);
+ /*background: @base;*/
+}
+
+tooltip {
+ background: rgba(0,0,0,0.2);
+}
+
+#workspaces {
+ margin-left: 5px;
+}
+
+#workspaces button {
+ color:rgba(100,100,100,0.5);
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.3);
+ background: rgba(0, 0, 0,0.2);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+ margin-right: 2px;
+}
+
+#workspaces button.active {
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#window {
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#mpris {
+ color: @mauve;
+}
+
+#network {
+ margin-left: 15px;
+ color: @blue;
+}
+
+#custom-weather {
+ margin-right: 5px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#custom-pacman {
+ margin-right: 5px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+
+#custom-doppler {
+ margin-left: 15px;
+ color: @sky;
+}
+
+#pulseaudio {
+ margin-right: 5px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#wireplumber {
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#image {
+ margin-left: 3px;
+ margin-right: 8px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+
+
+
+#cpu {
+ margin-left: 15px;
+ color: @yellow;
+}
+
+#memory {
+ margin-right: 5px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#temperature {
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#custom-separator {
+ color: #BBBBBB;
+}
+
+#clock {
+ margin-right: 5px;
+ color: #FFFFFF;
+ border: 1px;
+ border-style: solid;
+ border-color: rgba(100,100,100,0.5);
+ background: rgba(0, 0, 0,0.3);
+ margin-top: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ padding: 8px;
+}
+
+#tray {
+ margin-right: 15px;
+ color: @red;
+}
diff --git a/.config/waybar/theme.css b/.config/waybar/theme.css
new file mode 100644
index 0000000..0eb6a82
--- /dev/null
+++ b/.config/waybar/theme.css
@@ -0,0 +1,26 @@
+@define-color rosewater #f5e0dc;
+@define-color flamingo #f2cdcd;
+@define-color pink #f5c2e7;
+@define-color mauve #cba6f7;
+@define-color red #f38ba8;
+@define-color maroon #eba0ac;
+@define-color peach #fab387;
+@define-color yellow #f9e2af;
+@define-color green #a6e3a1;
+@define-color teal #94e2d5;
+@define-color sky #89dceb;
+@define-color sapphire #74c7ec;
+@define-color blue #89b4fa;
+@define-color lavender #b4befe;
+@define-color text #cdd6f4;
+@define-color subtext1 #bac2de;
+@define-color subtext0 #a6adc8;
+@define-color overlay2 #9399b2;
+@define-color overlay1 #7f849c;
+@define-color overlay0 #6c7086;
+@define-color surface2 #585b70;
+@define-color surface1 #45475a;
+@define-color surface0 #313244;
+@define-color base #1e1e2e;
+@define-color mantle #181825;
+@define-color crust #11111b;