mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
fix typos (#1304)
This commit is contained in:
@@ -106,7 +106,7 @@ windowrule = float on, match:class ^(firefox)$, match:title ^(Picture-in-Picture
|
|||||||
windowrule = float on, match:class ^(zoom)$
|
windowrule = float on, match:class ^(zoom)$
|
||||||
|
|
||||||
# DMS windows floating by default
|
# DMS windows floating by default
|
||||||
# ! Hyprland doesnt size these windows correctly so disabling by default here
|
# ! Hyprland doesn't size these windows correctly so disabling by default here
|
||||||
# windowrule = float on, match:class ^(org.quickshell)$
|
# windowrule = float on, match:class ^(org.quickshell)$
|
||||||
|
|
||||||
layerrule = no_anim on, match:namespace ^(quickshell)$
|
layerrule = no_anim on, match:namespace ^(quickshell)$
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import (
|
|||||||
wlclient "github.com/AvengeMedia/DankMaterialShell/core/pkg/go-wayland/wayland/client"
|
wlclient "github.com/AvengeMedia/DankMaterialShell/core/pkg/go-wayland/wayland/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// These mime types wont be stored in history
|
// These mime types won't be stored in history
|
||||||
var sensitiveMimeTypes = []string{
|
var sensitiveMimeTypes = []string{
|
||||||
"x-kde-passwordManagerHint",
|
"x-kde-passwordManagerHint",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ func (c *CUPSClient) RejectJobs(printer string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddPrinterToClass adds a printer to a class, if the class does not exists it will be crated
|
// AddPrinterToClass adds a printer to a class, if the class does not exists it will be created
|
||||||
func (c *CUPSClient) AddPrinterToClass(class, printer string) error {
|
func (c *CUPSClient) AddPrinterToClass(class, printer string) error {
|
||||||
attributes, err := c.GetPrinterAttributes(class, []string{AttributeMemberURIs})
|
attributes, err := c.GetPrinterAttributes(class, []string{AttributeMemberURIs})
|
||||||
if err != nil && !IsNotExistsError(err) {
|
if err != nil && !IsNotExistsError(err) {
|
||||||
|
|||||||
@@ -546,7 +546,7 @@ Singleton {
|
|||||||
if (savePrefs && typeof SessionData !== "undefined" && !isGreeterMode)
|
if (savePrefs && typeof SessionData !== "undefined" && !isGreeterMode)
|
||||||
SessionData.setLightMode(light);
|
SessionData.setLightMode(light);
|
||||||
if (!isGreeterMode) {
|
if (!isGreeterMode) {
|
||||||
// Skip with matugen becuase, our script runner will do it.
|
// Skip with matugen because, our script runner will do it.
|
||||||
if (!matugenAvailable) {
|
if (!matugenAvailable) {
|
||||||
PortalService.setLightMode(light);
|
PortalService.setLightMode(light);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.pragma library
|
.pragma library
|
||||||
// This exists only beacause I haven't been able to get linkColor to work with MarkdownText
|
// This exists only because I haven't been able to get linkColor to work with MarkdownText
|
||||||
// May not be necessary if that's possible tbh.
|
// May not be necessary if that's possible tbh.
|
||||||
function markdownToHtml(text) {
|
function markdownToHtml(text) {
|
||||||
if (!text) return "";
|
if (!text) return "";
|
||||||
|
|||||||
@@ -677,12 +677,12 @@ Singleton {
|
|||||||
if (!info) {
|
if (!info) {
|
||||||
details = "Network information not found or network not available.";
|
details = "Network information not found or network not available.";
|
||||||
} else {
|
} else {
|
||||||
details += "Inteface: " + info.iface + "\\n";
|
details += "Interface: " + info.iface + "\\n";
|
||||||
details += "Driver: " + info.driver + "\\n";
|
details += "Driver: " + info.driver + "\\n";
|
||||||
details += "MAC Addr: " + info.hwAddr + "\\n";
|
details += "MAC Addr: " + info.hwAddr + "\\n";
|
||||||
details += "Speed: " + info.speed + " Mb/s\\n\\n";
|
details += "Speed: " + info.speed + " Mb/s\\n\\n";
|
||||||
|
|
||||||
details += "IPv4 informations:\\n";
|
details += "IPv4 information:\\n";
|
||||||
|
|
||||||
for (const ip4 of info.IPv4s.ips) {
|
for (const ip4 of info.IPv4s.ips) {
|
||||||
details += " IPv4 address: " + ip4 + "\\n";
|
details += " IPv4 address: " + ip4 + "\\n";
|
||||||
@@ -691,7 +691,7 @@ Singleton {
|
|||||||
details += " DNS: " + info.IPv4s.dns + "\\n";
|
details += " DNS: " + info.IPv4s.dns + "\\n";
|
||||||
|
|
||||||
if (info.IPv6s.ips) {
|
if (info.IPv6s.ips) {
|
||||||
details += "\\nIPv6 informations:\\n";
|
details += "\\nIPv6 information:\\n";
|
||||||
|
|
||||||
for (const ip6 of info.IPv6s.ips) {
|
for (const ip6 of info.IPv6s.ips) {
|
||||||
details += " IPv6 address: " + ip6 + "\\n";
|
details += " IPv6 address: " + ip6 + "\\n";
|
||||||
|
|||||||
@@ -341,11 +341,11 @@ Singleton {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatTemp(celcius, includeUnits = true, unitsShort = true) {
|
function formatTemp(celsius, includeUnits = true, unitsShort = true) {
|
||||||
if (celcius == null) {
|
if (celsius == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const value = SettingsData.useFahrenheit ? Math.round(celcius * (9 / 5) + 32) : celcius;
|
const value = SettingsData.useFahrenheit ? Math.round(celsius * (9 / 5) + 32) : celsius;
|
||||||
const unit = unitsShort ? "°" : (SettingsData.useFahrenheit ? "°F" : "°C");
|
const unit = unitsShort ? "°" : (SettingsData.useFahrenheit ? "°F" : "°C");
|
||||||
return includeUnits ? value + unit : value;
|
return includeUnits ? value + unit : value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user