all repos — quickshell @ dd57466c10ef6dfd443c4ac100f9ff6f8dcb6256

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
  }
  height: (I3.focusedMonitor.name == "eDP-1")
  ? Resources.barsize.topbar_twister
  : Resources.barsize.topbar

  color: Resources.palette.bg
}