mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
more mono fonts
This commit is contained in:
@@ -448,10 +448,11 @@ Singleton {
|
|||||||
"}\n" +
|
"}\n" +
|
||||||
"update_qt_config " + home + "/.config/qt5ct/qt5ct.conf " + _shq(qtThemeName) + "\n" +
|
"update_qt_config " + home + "/.config/qt5ct/qt5ct.conf " + _shq(qtThemeName) + "\n" +
|
||||||
"update_qt_config " + home + "/.config/qt6ct/qt6ct.conf " + _shq(qtThemeName) + "\n" +
|
"update_qt_config " + home + "/.config/qt6ct/qt6ct.conf " + _shq(qtThemeName) + "\n" +
|
||||||
"if command -v qt6ct >/dev/null 2>&1; then\n" +
|
"if command -v qt5ct >/dev/null 2>&1; then\n" +
|
||||||
" printf 'QT_QPA_PLATFORMTHEME=qt6ct\\nQT_QPA_PLATFORMTHEME_QT6=qt6ct\\n' > " + home + "/.config/environment.d/95-qtct.conf\n" +
|
|
||||||
"elif command -v qt5ct >/dev/null 2>&1; then\n" +
|
|
||||||
" printf 'QT_QPA_PLATFORMTHEME=qt5ct\\n' > " + home + "/.config/environment.d/95-qtct.conf\n" +
|
" printf 'QT_QPA_PLATFORMTHEME=qt5ct\\n' > " + home + "/.config/environment.d/95-qtct.conf\n" +
|
||||||
|
" if command -v qt6ct >/dev/null 2>&1; then\n" +
|
||||||
|
" printf 'QT_QPA_PLATFORMTHEME_QT6=qt6ct\\n' >> " + home + "/.config/environment.d/95-qtct.conf\n" +
|
||||||
|
" fi\n" +
|
||||||
"else\n" +
|
"else\n" +
|
||||||
" rm -f " + home + "/.config/environment.d/95-qtct.conf 2>/dev/null || true\n" +
|
" rm -f " + home + "/.config/environment.d/95-qtct.conf 2>/dev/null || true\n" +
|
||||||
"fi\n" +
|
"fi\n" +
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.totalCpuUsage.toFixed(1) + "%"
|
text: SysMonitorService.totalCpuUsage.toFixed(1) + "%"
|
||||||
font.pixelSize: Theme.fontSizeLarge
|
font.pixelSize: Theme.fontSizeLarge
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
}
|
}
|
||||||
@@ -63,6 +64,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.cpuCount + " cores"
|
text: SysMonitorService.cpuCount + " cores"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
}
|
}
|
||||||
@@ -126,6 +128,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.formatSystemMemory(SysMonitorService.usedMemoryKB)
|
text: SysMonitorService.formatSystemMemory(SysMonitorService.usedMemoryKB)
|
||||||
font.pixelSize: Theme.fontSizeLarge
|
font.pixelSize: Theme.fontSizeLarge
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
}
|
}
|
||||||
@@ -133,6 +136,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "of " + SysMonitorService.formatSystemMemory(SysMonitorService.totalMemoryKB)
|
text: "of " + SysMonitorService.formatSystemMemory(SysMonitorService.totalMemoryKB)
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
}
|
}
|
||||||
@@ -180,6 +184,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.totalSwapKB > 0 ? SysMonitorService.formatSystemMemory(SysMonitorService.usedSwapKB) : "None"
|
text: SysMonitorService.totalSwapKB > 0 ? SysMonitorService.formatSystemMemory(SysMonitorService.usedSwapKB) : "None"
|
||||||
font.pixelSize: Theme.fontSizeLarge
|
font.pixelSize: Theme.fontSizeLarge
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
}
|
}
|
||||||
@@ -187,6 +192,7 @@ Row {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.totalSwapKB > 0 ? "of " + SysMonitorService.formatSystemMemory(SysMonitorService.totalSwapKB) : "No swap configured"
|
text: SysMonitorService.totalSwapKB > 0 ? "of " + SysMonitorService.formatSystemMemory(SysMonitorService.totalSwapKB) : "No swap configured"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,18 +61,21 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.distribution + " • " + SysMonitorService.architecture + " • " + SysMonitorService.kernelVersion
|
text: SysMonitorService.distribution + " • " + SysMonitorService.architecture + " • " + SysMonitorService.kernelVersion
|
||||||
font.pixelSize: Theme.fontSizeMedium
|
font.pixelSize: Theme.fontSizeMedium
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
|
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Up " + UserInfoService.uptime + " • Boot: " + SysMonitorService.bootTime
|
text: "Up " + UserInfoService.uptime + " • Boot: " + SysMonitorService.bootTime
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.6)
|
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.6)
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Load: " + SysMonitorService.loadAverage + " • " + SysMonitorService.processCount + " processes, " + SysMonitorService.threadCount + " threads"
|
text: "Load: " + SysMonitorService.loadAverage + " • " + SysMonitorService.processCount + " processes, " + SysMonitorService.threadCount + " threads"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.6)
|
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.6)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +100,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.cpuModel
|
text: SysMonitorService.cpuModel
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
@@ -106,6 +110,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.motherboard
|
text: SysMonitorService.motherboard
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
@@ -121,6 +126,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SysMonitorService.formatMemory(SysMonitorService.totalMemoryMB) + " Memory"
|
text: SysMonitorService.formatMemory(SysMonitorService.totalMemoryMB) + " Memory"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
@@ -130,6 +136,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "BIOS " + SysMonitorService.biosVersion
|
text: "BIOS " + SysMonitorService.biosVersion
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
@@ -194,6 +201,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Device"
|
text: "Device"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.25
|
width: parent.width * 0.25
|
||||||
@@ -203,6 +211,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Mount"
|
text: "Mount"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.2
|
width: parent.width * 0.2
|
||||||
@@ -212,6 +221,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Size"
|
text: "Size"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
@@ -221,6 +231,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Used"
|
text: "Used"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
@@ -230,6 +241,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Available"
|
text: "Available"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
@@ -239,6 +251,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: "Use%"
|
text: "Use%"
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.1
|
width: parent.width * 0.1
|
||||||
@@ -272,6 +285,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.device
|
text: modelData.device
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.25
|
width: parent.width * 0.25
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@@ -281,6 +295,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.mount
|
text: modelData.mount
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.2
|
width: parent.width * 0.2
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@@ -290,6 +305,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.size
|
text: modelData.size
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@@ -299,6 +315,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.used
|
text: modelData.used
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@@ -308,6 +325,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.avail
|
text: modelData.avail
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
width: parent.width * 0.15
|
width: parent.width * 0.15
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@@ -317,6 +335,7 @@ ScrollView {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: modelData.percent
|
text: modelData.percent
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
font.family: Prefs.monoFontFamily
|
||||||
color: {
|
color: {
|
||||||
const percent = parseInt(modelData.percent);
|
const percent = parseInt(modelData.percent);
|
||||||
if (percent > 90)
|
if (percent > 90)
|
||||||
|
|||||||
@@ -17,11 +17,15 @@ This shell kinda depends on [Niri](https://github.com/YaLTeR/niri), but only for
|
|||||||
mkdir -p ~/.local/share/fonts && curl -L "https://github.com/google/material-design-icons/raw/master/variablefont/MaterialSymbolsRounded%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf" -o ~/.local/share/fonts/MaterialSymbolsRounded.ttf && fc-cache -f
|
mkdir -p ~/.local/share/fonts && curl -L "https://github.com/google/material-design-icons/raw/master/variablefont/MaterialSymbolsRounded%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf" -o ~/.local/share/fonts/MaterialSymbolsRounded.ttf && fc-cache -f
|
||||||
# Can also be installed from AUR on arch linux, paru -S ttf-material-symbols-variable-git
|
# Can also be installed from AUR on arch linux, paru -S ttf-material-symbols-variable-git
|
||||||
|
|
||||||
# 2 --- JetBrains Mono (recommended font)
|
# 2 --- Noto Sans (recommended font)
|
||||||
|
mkdir -p ~/.local/share/fonts && curl -L "https://github.com/notofonts/noto-fonts/raw/main/hinted/ttf/NotoSans/NotoSans-Regular.ttf" -o ~/.local/share/fonts/NotoSans-Regular.ttf && curl -L "https://github.com/notofonts/noto-fonts/raw/main/hinted/ttf/NotoSans/NotoSans-Bold.ttf" -o ~/.local/share/fonts/NotoSans-Bold.ttf && fc-cache -f
|
||||||
|
|
||||||
|
|
||||||
|
# 3 --- JetBrains Mono (recommended font)
|
||||||
mkdir -p ~/.local/share/fonts && curl -L "https://download-cdn.jetbrains.com/fonts/JetBrainsMono-2.304.zip" -o /tmp/JetBrainsMono.zip && unzip -j /tmp/JetBrainsMono.zip "fonts/ttf/*.ttf" -d ~/.local/share/fonts/ && rm /tmp/JetBrainsMono.zip && fc-cache -f
|
mkdir -p ~/.local/share/fonts && curl -L "https://download-cdn.jetbrains.com/fonts/JetBrainsMono-2.304.zip" -o /tmp/JetBrainsMono.zip && unzip -j /tmp/JetBrainsMono.zip "fonts/ttf/*.ttf" -d ~/.local/share/fonts/ && rm /tmp/JetBrainsMono.zip && fc-cache -f
|
||||||
|
|
||||||
|
|
||||||
# 3 --- QuickShell (recommended to use a git build)
|
# 4 --- QuickShell (recommended to use a git build)
|
||||||
paru -S quickshell-git
|
paru -S quickshell-git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user