pywal
This commit is contained in:
parent
912d0542c8
commit
0f71e6ca45
3 changed files with 43 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ pragma Singleton
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
|
property string brickWall: "\u{E586}"
|
||||||
property string coffee: "\u{E09a}"
|
property string coffee: "\u{E09a}"
|
||||||
property string triangle: "\u{E192}"
|
property string triangle: "\u{E192}"
|
||||||
property string triangleDashed: "\u{E642}"
|
property string triangleDashed: "\u{E642}"
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,10 @@ Scope {
|
||||||
|
|
||||||
spacing: Dimensions.bar.spacing
|
spacing: Dimensions.bar.spacing
|
||||||
|
|
||||||
|
Pywal {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
}
|
||||||
|
|
||||||
Pipewire {
|
Pipewire {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
38
modules/bar/components/Pywal.qml
Normal file
38
modules/bar/components/Pywal.qml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell.Io
|
||||||
|
import "../../../config/"
|
||||||
|
import "../../../constants/"
|
||||||
|
import "../../../styled/"
|
||||||
|
|
||||||
|
Clickable {
|
||||||
|
id: clickable
|
||||||
|
|
||||||
|
implicitWidth: text.width
|
||||||
|
implicitHeight: Dimensions.caffeine.height
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
process.running = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
id: text
|
||||||
|
|
||||||
|
font.family: Theme.lucide.font.family
|
||||||
|
font.pixelSize: Dimensions.caffeine.fontSize
|
||||||
|
font.bold: true
|
||||||
|
text: Icons.brickWall
|
||||||
|
|
||||||
|
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
||||||
|
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
topPadding: Dimensions.caffeine.verticalPadding
|
||||||
|
bottomPadding: Dimensions.caffeine.verticalPadding
|
||||||
|
leftPadding: Dimensions.caffeine.horizontalPadding
|
||||||
|
rightPadding: Dimensions.caffeine.horizontalPadding
|
||||||
|
}
|
||||||
|
|
||||||
|
Process {
|
||||||
|
id: process
|
||||||
|
command: ["sh", "-c", "~/dotfiles/.scripts/pywal-swww.sh"]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue