cal: attempt to fix "jump into video call" link
parent
bdfa5d1777
commit
0ac58b8dbc
|
@ -50,6 +50,9 @@ def tooltip(evt):
|
||||||
{evt["s"].strftime("%b %d %H:%M")} - {evt["e"].strftime("%H:%M")}
|
{evt["s"].strftime("%b %d %H:%M")} - {evt["e"].strftime("%H:%M")}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def openURI(uri):
|
||||||
|
subprocess.call(["systemd-run", "--user", "chromium", uri])
|
||||||
|
|
||||||
def click(evt):
|
def click(evt):
|
||||||
# todo: only on certain time before
|
# todo: only on certain time before
|
||||||
if 'hangoutLink' in evt:
|
if 'hangoutLink' in evt:
|
||||||
|
@ -57,12 +60,12 @@ def click(evt):
|
||||||
url = evt["hangoutLink"] + "?authuser=" + str(authuser(evt))
|
url = evt["hangoutLink"] + "?authuser=" + str(authuser(evt))
|
||||||
subprocess.call(["playerctl", "pause"])
|
subprocess.call(["playerctl", "pause"])
|
||||||
i3.command("focus output 'DVI-D-1', workspace --no-auto-back-and-forth 9")
|
i3.command("focus output 'DVI-D-1', workspace --no-auto-back-and-forth 9")
|
||||||
subprocess.call(["chromium", url])
|
openURI(url)
|
||||||
else:
|
else:
|
||||||
subprocess.call(["xdg-open", evt["htmlLink"]])
|
openURI(evt["htmlLink"])
|
||||||
|
|
||||||
def rightclick(evt):
|
def rightclick(evt):
|
||||||
subprocess.call(["xdg-open", "https://calendar.google.com"])
|
openURI("https://calendar.google.com")
|
||||||
|
|
||||||
events = [e for e in events if not gcal._DeclinedEvent(e)]
|
events = [e for e in events if not gcal._DeclinedEvent(e)]
|
||||||
if opt == "dump":
|
if opt == "dump":
|
||||||
|
|
|
@ -22,7 +22,7 @@ in {
|
||||||
onChange = "systemctl --user restart waybar";
|
onChange = "systemctl --user restart waybar";
|
||||||
};
|
};
|
||||||
systemd.user.services.waybar.Service.Environment = [
|
systemd.user.services.waybar.Service.Environment = [
|
||||||
"PATH=${lib.makeBinPath (with pkgs; [ pavucontrol xdg-utils bin.y-cal-widget playerctl bluez gnugrep bash ])}"
|
"PATH=${lib.makeBinPath (with pkgs; [ pavucontrol xdg-utils bin.y-cal-widget playerctl bluez gnugrep bash systemd chromium ])}"
|
||||||
];
|
];
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -106,6 +106,9 @@ window#waybar {
|
||||||
#custom-cal.user-1 {
|
#custom-cal.user-1 {
|
||||||
background: #f67755;
|
background: #f67755;
|
||||||
}
|
}
|
||||||
|
#custom-cal.user-2 {
|
||||||
|
background: #33b679;
|
||||||
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
background-color: #2980b9;
|
background-color: #2980b9;
|
||||||
|
|
Loading…
Reference in New Issue