sporo zmian, nie pamiętam czego :)

This commit is contained in:
2023-07-08 13:12:31 +02:00
parent 060b2022d2
commit 192276ff80
38 changed files with 1260 additions and 51 deletions

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_off

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_on

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/biurko_rainbow

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_red

2
.config/waybar/bin/domofon.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/domofon

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/tv_voldown

2
.config/waybar/bin/tv_volup.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/tv_volup

View File

@ -1,11 +1,10 @@
// -*- mode: json -*-
[
{
"layer": "top",
"position": "top",
"modules-left": [
"sway/workspaces",
"sway/workspaces"
],
"modules-center": [
"sway/window"
@ -71,9 +70,15 @@
"custom/hum",
"custom/pressure",
"custom/pm_25",
"custom/pm_10",
"custom/pm_10"
],
"modules-center": [
"custom/biurko_on",
"custom/biurko_off",
"custom/biurko_rainbow",
"custom/domofon",
"custom/tv_volup",
"custom/tv_voldown"
],
"modules-right": [
"custom/rsyncnet",
@ -108,6 +113,42 @@
"exec": "$HOME/.config/waybar/bin/sensor.sh pm2_5"
},
"custom/biurko_on": {
"format": "ON",
"on-click": "$HOME/.config/waybar/bin/biurko_on.sh"
},
"custom/biurko_off": {
"format": "OFF",
"on-click": "$HOME/.config/waybar/bin/biurko_off.sh"
},
"custom/tv_volup": {
"format": "🔊",
"on-click": "$HOME/.config/waybar/bin/tv_volup.sh"
},
"custom/tv_voldown": {
"format": "🔈",
"on-click": "$HOME/.config/waybar/bin/tv_voldown.sh"
},
"custom/domofon": {
"format": "📷",
"on-click": "$HOME/.config/waybar/bin/domofon.sh"
},
"custom/biurko_rainbow": {
"format": "🎉",
"on-click": "$HOME/.config/waybar/bin/biurko_rainbow.sh"
},
"custom/biurko_red": {
"format": "RED",
"on-click": "$HOME/.config/waybar/bin/biurko_red.sh"
},
"custom/pm_10": {
"format": "pm10 {}",
"return-type": "text",
@ -115,14 +156,6 @@
"exec": "$HOME/.config/waybar/bin/sensor.sh pm10"
},
"custom/rsyncnet": {
"format": "{}",
"return-type": "text",
"interval": 60,
"exec": "cat /tmp/rsync.net"
},
"battery": {
"states": {
"good": 95,
@ -143,4 +176,4 @@
"spacing": 6
}
}
]
]

View File

@ -1,4 +1,12 @@
@import "../../.cache/wal/colors-waybar.css";
@define-color fore #dbcdac;
@define-color back #0f0e09;
@define-color inactive #9F8D5E;
@define-color dark #324443;
@define-color active #dbcdac;
@define-color orange #FFA500;
@define-color green #228b22;
@define-color blue #7cb9e8;
@define-color yellow #deb887;
* {
@ -38,6 +46,12 @@ window#waybar {
margin-left: 10px;
}
#custom-biurko_on,
#custom-biurko_off,
#custom-biurko_red,
#custom-tv_volup,
#custom-tv_voldown,
#custom-domofon,
#workspaces {
background: none;
color: white;
@ -75,7 +89,7 @@ window#waybar {
}
#workspaces button.focused {
color: #FFA500;
color: @orange;
margin: 0;
}
@ -98,3 +112,21 @@ window#waybar {
background: black;
padding: 0 10px;
}
#clock.2,
#custom-temperature {
color: @orange;
}
#custom-pressure {
color: @green;
}
#custom-hum {
color: @blue;
}
#custom-pm_25,
#custom-pm_10 {
color: @yellow;
}