Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Palko
0f71e6ca45 pywal 2025-07-23 22:42:26 -04:00
Benjamin Palko
912d0542c8 better why 2025-07-23 21:46:31 -04:00
4 changed files with 44 additions and 2 deletions

View file

@ -3,6 +3,7 @@ pragma Singleton
import Quickshell
Singleton {
property string brickWall: "\u{E586}"
property string coffee: "\u{E09a}"
property string triangle: "\u{E192}"
property string triangleDashed: "\u{E642}"

View file

@ -92,6 +92,10 @@ Scope {
spacing: Dimensions.bar.spacing
Pywal {
anchors.verticalCenter: parent.verticalCenter
}
Pipewire {
anchors.verticalCenter: parent.verticalCenter
}

View file

@ -1,4 +1,3 @@
import QtQuick
import Quickshell.Io
import "../../../config/"
import "../../../constants/"
@ -41,6 +40,6 @@ Clickable {
Process {
id: process
command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why=Caffeine --mode=block sleep inf"]
command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why='Caffeine module is active' --mode=block sleep inf"]
}
}

View 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"]
}
}