all repos — quickshell @ 8884cb37c54e99e090aafdc1ee8ccc41e93fcbea

A desert-witch desktop shell

bar/TopBar.qml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
// TopBar.qml
import Quickshell
import QtQuick
import QtQuick.Layouts
import ".."
import Quickshell.I3
PanelWindow {
  id: top_bar
  anchors {
      top: true
      left: true
      right: true
  }
  margins {
    left: 8
    right: 8
    top: 0
    bottom: 0
  }
  implicitHeight: (I3.focusedMonitor?.name == "eDP-1")
  ? Resources.barsize.topbar_twister
  : Resources.barsize.topbar

  color: Resources.palette.bg
}