| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="libadwaita" version="1.0"/> |
| 5 |
<object class="AdwApplicationWindow" id="main_window"> |
| 6 |
<property name="title" translatable="yes">System Monitor</property> |
| 7 |
<property name="icon-name">org.gnome.SystemMonitor</property> |
| 8 |
<child> |
| 9 |
<object class="AdwToolbarView" id="main_box"> |
| 10 |
<property name="width-request">620</property> |
| 11 |
<property name="height-request">480</property> |
| 12 |
<child type="top"> |
| 13 |
<object class="AdwHeaderBar" id="header_bar"> |
| 14 |
<child type="title"> |
| 15 |
<object class="AdwViewSwitcher" id="view_switcher"> |
| 16 |
<property name="policy">wide</property> |
| 17 |
<property name="stack">stack</property> |
| 18 |
</object> |
| 19 |
</child> |
| 20 |
<child type="start"> |
| 21 |
<object class="GtkToggleButton" id="search_button"> |
| 22 |
<property name="tooltip-text" translatable="yes">Search</property> |
| 23 |
<property name="icon-name">edit-find-symbolic</property> |
| 24 |
<property name="action-name">win.search</property> |
| 25 |
</object> |
| 26 |
</child> |
| 27 |
<child type="end"> |
| 28 |
<object class="GtkMenuButton" id="app_menu_button"> |
| 29 |
<property name="tooltip-text" translatable="yes">Main Menu</property> |
| 30 |
<property name="icon-name">open-menu-symbolic</property> |
| 31 |
<property name="primary">true</property> |
| 32 |
</object> |
| 33 |
</child> |
| 34 |
</object> |
| 35 |
</child> |
| 36 |
<child type="top"> |
| 37 |
<object class="GtkSearchBar" id="proc_searchbar"> |
| 38 |
<property name="search-mode-enabled" |
| 39 |
bind-source="search_button" |
| 40 |
bind-property="active" |
| 41 |
bind-flags="bidirectional"/> |
| 42 |
<property name="child"> |
| 43 |
<object class="GtkSearchEntry" id="proc_searchentry"> |
| 44 |
<property name="placeholder-text" translatable="yes">Search processes and users</property> |
| 45 |
<property name="width-request">300</property> |
| 46 |
</object> |
| 47 |
</property> |
| 48 |
</object> |
| 49 |
</child> |
| 50 |
<property name="content"> |
| 51 |
<object class="AdwViewStack" id="stack"> |
| 52 |
<property name="hexpand">True</property> |
| 53 |
<property name="vexpand">True</property> |
| 54 |
<child> |
| 55 |
<object class="AdwViewStackPage"> |
| 56 |
<property name="name">resources</property> |
| 57 |
<property name="use-underline">True</property> |
| 58 |
<property name="title" translatable="yes">_Resources</property> |
| 59 |
<property name="icon-name">resources-symbolic</property> |
| 60 |
<property name="child"> |
| 61 |
<object class="GtkScrolledWindow" id="res_scrolled"> |
| 62 |
<property name="hexpand">True</property> |
| 63 |
<property name="vexpand">True</property> |
| 64 |
<property name="child"> |
| 65 |
<object class="GtkBox" id="res_box"> |
| 66 |
<property name="hexpand">True</property> |
| 67 |
<property name="vexpand">True</property> |
| 68 |
<property name="margin-top">12</property> |
| 69 |
<property name="margin-bottom">30</property> |
| 70 |
<property name="margin-start">24</property> |
| 71 |
<property name="margin-end">24</property> |
| 72 |
<property name="orientation">vertical</property> |
| 73 |
<property name="spacing">10</property> |
| 74 |
<child> |
| 75 |
<object class="GtkExpander" id="cpu_expander"> |
| 76 |
<property name="vexpand">True</property> |
| 77 |
<property name="expanded">True</property> |
| 78 |
<child> |
| 79 |
<object class="GtkBox" id="cpu_graph_box"> |
| 80 |
<property name="hexpand">True</property> |
| 81 |
<property name="vexpand">True</property> |
| 82 |
<property name="orientation">vertical</property> |
| 83 |
<property name="margin-top">6</property> |
| 84 |
<property name="spacing">6</property> |
| 85 |
<child> |
| 86 |
<object class="GtkGrid" id="cpu_table"> |
| 87 |
<property name="margin-start">21</property> |
| 88 |
<property name="hexpand">True</property> |
| 89 |
<property name="row-spacing">1</property> |
| 90 |
<property name="column-spacing">6</property> |
| 91 |
<property name="row-homogeneous">True</property> |
| 92 |
<property name="column-homogeneous">True</property> |
| 93 |
</object> |
| 94 |
</child> |
| 95 |
</object> |
| 96 |
</child> |
| 97 |
<child type="label"> |
| 98 |
<object class="GtkBox" id="cpu_header"> |
| 99 |
<property name="margin-start">6</property> |
| 100 |
<child> |
| 101 |
<object class="GtkLabel" id="cpu_label"> |
| 102 |
<property name="halign">start</property> |
| 103 |
<property name="label" translatable="yes">CPU</property> |
| 104 |
<attributes> |
| 105 |
<attribute name="weight" value="bold"/> |
| 106 |
</attributes> |
| 107 |
</object> |
| 108 |
</child> |
| 109 |
</object> |
| 110 |
</child> |
| 111 |
</object> |
| 112 |
</child> |
| 113 |
<child> |
| 114 |
<object class="GtkExpander" id="mem_expander"> |
| 115 |
<property name="vexpand">True</property> |
| 116 |
<property name="expanded">True</property> |
| 117 |
<child> |
| 118 |
<object class="GtkBox" id="mem_graph_box"> |
| 119 |
<property name="hexpand">True</property> |
| 120 |
<property name="vexpand">True</property> |
| 121 |
<property name="orientation">vertical</property> |
| 122 |
<property name="margin-top">6</property> |
| 123 |
<property name="spacing">6</property> |
| 124 |
<child> |
| 125 |
<object class="GtkGrid" id="mem_table"> |
| 126 |
<property name="margin-start">54</property> |
| 127 |
<property name="hexpand">True</property> |
| 128 |
<property name="column-spacing">6</property> |
| 129 |
<property name="row-homogeneous">True</property> |
| 130 |
<child> |
| 131 |
<object class="GtkLabel" id="memory_label"> |
| 132 |
<property name="hexpand">True</property> |
| 133 |
<property name="halign">start</property> |
| 134 |
<property name="label" translatable="yes">Memory</property> |
| 135 |
<layout> |
| 136 |
<property name="column">1</property> |
| 137 |
<property name="row">0</property> |
| 138 |
</layout> |
| 139 |
</object> |
| 140 |
</child> |
| 141 |
<child> |
| 142 |
<object class="GtkLabel" id="swap_label"> |
| 143 |
<property name="hexpand">True</property> |
| 144 |
<property name="halign">start</property> |
| 145 |
<property name="label" translatable="yes">Swap</property> |
| 146 |
<layout> |
| 147 |
<property name="column">3</property> |
| 148 |
<property name="row">0</property> |
| 149 |
</layout> |
| 150 |
</object> |
| 151 |
</child> |
| 152 |
</object> |
| 153 |
</child> |
| 154 |
</object> |
| 155 |
</child> |
| 156 |
<child type="label"> |
| 157 |
<object class="GtkBox" id="mem_header"> |
| 158 |
<property name="margin-start">6</property> |
| 159 |
<child> |
| 160 |
<object class="GtkLabel" id="mem_label"> |
| 161 |
<property name="halign">start</property> |
| 162 |
<property name="label" translatable="yes">Memory and Swap</property> |
| 163 |
<attributes> |
| 164 |
<attribute name="weight" value="bold"/> |
| 165 |
</attributes> |
| 166 |
</object> |
| 167 |
</child> |
| 168 |
</object> |
| 169 |
</child> |
| 170 |
</object> |
| 171 |
</child> |
| 172 |
<child> |
| 173 |
<object class="GtkExpander" id="net_expander"> |
| 174 |
<property name="vexpand">True</property> |
| 175 |
<property name="expanded">True</property> |
| 176 |
<child> |
| 177 |
<object class="GtkBox" id="net_graph_box"> |
| 178 |
<property name="hexpand">True</property> |
| 179 |
<property name="vexpand">True</property> |
| 180 |
<property name="orientation">vertical</property> |
| 181 |
<property name="margin-top">6</property> |
| 182 |
<property name="spacing">6</property> |
| 183 |
<child> |
| 184 |
<object class="GtkGrid" id="net_table"> |
| 185 |
<property name="margin-start">54</property> |
| 186 |
<property name="margin-end">12</property> |
| 187 |
<property name="hexpand">True</property> |
| 188 |
<property name="column-spacing">6</property> |
| 189 |
<property name="row-homogeneous">True</property> |
| 190 |
<child> |
| 191 |
<object class="GtkLabel" id="receiving_label"> |
| 192 |
<property name="halign">start</property> |
| 193 |
<property name="label" translatable="yes">Receiving</property> |
| 194 |
<layout> |
| 195 |
<property name="column">1</property> |
| 196 |
<property name="row">0</property> |
| 197 |
</layout> |
| 198 |
</object> |
| 199 |
</child> |
| 200 |
<child> |
| 201 |
<object class="GtkLabel" id="total_received_label"> |
| 202 |
<property name="halign">start</property> |
| 203 |
<property name="label" translatable="yes">Total Received</property> |
| 204 |
<layout> |
| 205 |
<property name="column">1</property> |
| 206 |
<property name="row">1</property> |
| 207 |
</layout> |
| 208 |
</object> |
| 209 |
</child> |
| 210 |
<child> |
| 211 |
<object class="GtkLabel" id="sending_label"> |
| 212 |
<property name="halign">start</property> |
| 213 |
<property name="label" translatable="yes">Sending</property> |
| 214 |
<layout> |
| 215 |
<property name="column">5</property> |
| 216 |
<property name="row">0</property> |
| 217 |
</layout> |
| 218 |
</object> |
| 219 |
</child> |
| 220 |
<child> |
| 221 |
<object class="GtkLabel" id="total_sent_label"> |
| 222 |
<property name="halign">start</property> |
| 223 |
<property name="label" translatable="yes">Total Sent</property> |
| 224 |
<layout> |
| 225 |
<property name="column">5</property> |
| 226 |
<property name="row">1</property> |
| 227 |
</layout> |
| 228 |
</object> |
| 229 |
</child> |
| 230 |
</object> |
| 231 |
</child> |
| 232 |
</object> |
| 233 |
</child> |
| 234 |
<child type="label"> |
| 235 |
<object class="GtkBox" id="net_header"> |
| 236 |
<property name="margin-start">6</property> |
| 237 |
<child> |
| 238 |
<object class="GtkLabel" id="net_label"> |
| 239 |
<property name="halign">start</property> |
| 240 |
<property name="label" translatable="yes">Network</property> |
| 241 |
<attributes> |
| 242 |
<attribute name="weight" value="bold"/> |
| 243 |
</attributes> |
| 244 |
</object> |
| 245 |
</child> |
| 246 |
</object> |
| 247 |
</child> |
| 248 |
</object> |
| 249 |
</child> |
| 250 |
<child> |
| 251 |
<object class="GtkExpander" id="disk_expander"> |
| 252 |
<property name="vexpand">True</property> |
| 253 |
<property name="expanded">True</property> |
| 254 |
<child> |
| 255 |
<object class="GtkBox" id="disk_graph_box"> |
| 256 |
<property name="hexpand">True</property> |
| 257 |
<property name="vexpand">True</property> |
| 258 |
<property name="orientation">vertical</property> |
| 259 |
<property name="margin-top">6</property> |
| 260 |
<property name="spacing">6</property> |
| 261 |
<child> |
| 262 |
<object class="GtkGrid" id="disk_table"> |
| 263 |
<property name="margin-start">54</property> |
| 264 |
<property name="margin-end">12</property> |
| 265 |
<property name="hexpand">True</property> |
| 266 |
<property name="column-spacing">6</property> |
| 267 |
<property name="row-homogeneous">True</property> |
| 268 |
<child> |
| 269 |
<object class="GtkLabel" id="reading_label"> |
| 270 |
<property name="halign">start</property> |
| 271 |
<property name="label" translatable="yes">Reading</property> |
| 272 |
<layout> |
| 273 |
<property name="column">1</property> |
| 274 |
<property name="row">0</property> |
| 275 |
</layout> |
| 276 |
</object> |
| 277 |
</child> |
| 278 |
<child> |
| 279 |
<object class="GtkLabel" id="total_read_label"> |
| 280 |
<property name="halign">start</property> |
| 281 |
<property name="label" translatable="yes">Total Read</property> |
| 282 |
<layout> |
| 283 |
<property name="column">1</property> |
| 284 |
<property name="row">1</property> |
| 285 |
</layout> |
| 286 |
</object> |
| 287 |
</child> |
| 288 |
<child> |
| 289 |
<object class="GtkLabel" id="writing_label"> |
| 290 |
<property name="halign">start</property> |
| 291 |
<property name="label" translatable="yes">Writing</property> |
| 292 |
<layout> |
| 293 |
<property name="column">5</property> |
| 294 |
<property name="row">0</property> |
| 295 |
</layout> |
| 296 |
</object> |
| 297 |
</child> |
| 298 |
<child> |
| 299 |
<object class="GtkLabel" id="total_written_label"> |
| 300 |
<property name="halign">start</property> |
| 301 |
<property name="label" translatable="yes">Total Written</property> |
| 302 |
<layout> |
| 303 |
<property name="column">5</property> |
| 304 |
<property name="row">1</property> |
| 305 |
</layout> |
| 306 |
</object> |
| 307 |
</child> |
| 308 |
</object> |
| 309 |
</child> |
| 310 |
</object> |
| 311 |
</child> |
| 312 |
<child type="label"> |
| 313 |
<object class="GtkBox" id="disk_header"> |
| 314 |
<property name="margin-start">6</property> |
| 315 |
<child> |
| 316 |
<object class="GtkLabel" id="disk_label"> |
| 317 |
<property name="halign">start</property> |
| 318 |
<property name="label" translatable="yes">Disk</property> |
| 319 |
<attributes> |
| 320 |
<attribute name="weight" value="bold"/> |
| 321 |
</attributes> |
| 322 |
</object> |
| 323 |
</child> |
| 324 |
</object> |
| 325 |
</child> |
| 326 |
</object> |
| 327 |
</child> |
| 328 |
</object> |
| 329 |
</property> |
| 330 |
</object> |
| 331 |
</property> |
| 332 |
</object> |
| 333 |
</child> |
| 334 |
<child> |
| 335 |
<object class="AdwViewStackPage"> |
| 336 |
<property name="name">processes</property> |
| 337 |
<property name="use-underline">True</property> |
| 338 |
<property name="title" translatable="yes">_Processes</property> |
| 339 |
<property name="icon-name">processes-symbolic</property> |
| 340 |
<property name="child"> |
| 341 |
<object class="GtkBox"> |
| 342 |
<property name="orientation">vertical</property> |
| 343 |
<child> |
| 344 |
<object class="GtkScrolledWindow" id="processes_scrolled"> |
| 345 |
<property name="hexpand">True</property> |
| 346 |
<property name="vexpand">True</property> |
| 347 |
<property name="margin-bottom">12</property> |
| 348 |
<property name="margin-start">12</property> |
| 349 |
<property name="margin-end">12</property> |
| 350 |
</object> |
| 351 |
</child> |
| 352 |
<child> |
| 353 |
<object class="GtkRevealer" id="proc_actionbar_revealer"> |
| 354 |
<property name="transition-type">slide-up</property> |
| 355 |
<property name="child"> |
| 356 |
<object class="GtkActionBar" id="proc_actionbar"> |
| 357 |
<child> |
| 358 |
<object class="GtkButton" id="end_process_button"> |
| 359 |
<property name="label" translatable="yes" context="interface">_End Process…</property> |
| 360 |
<property name="receives-default">True</property> |
| 361 |
<property name="halign">start</property> |
| 362 |
<property name="use-underline">True</property> |
| 363 |
<property name="action-name">win.send-signal-term</property> |
| 364 |
<child> |
| 365 |
<object class="GtkShortcutController"> |
| 366 |
<property name="scope">managed</property> |
| 367 |
<child> |
| 368 |
<object class="GtkShortcut"> |
| 369 |
<property name="trigger">Delete</property> |
| 370 |
<property name="action">activate</property> |
| 371 |
</object> |
| 372 |
</child> |
| 373 |
</object> |
| 374 |
</child> |
| 375 |
<style> |
| 376 |
<class name="destructive-action"/> |
| 377 |
</style> |
| 378 |
</object> |
| 379 |
</child> |
| 380 |
<child type="end"> |
| 381 |
<object class="GtkButton" id="proc_properties_button"> |
| 382 |
<property name="tooltip-text" translatable="yes">Process Properties</property> |
| 383 |
<property name="icon-name">document-properties-symbolic</property> |
| 384 |
<property name="action-name">win.process-properties</property> |
| 385 |
</object> |
| 386 |
</child> |
| 387 |
</object> |
| 388 |
</property> |
| 389 |
</object> |
| 390 |
</child> |
| 391 |
</object> |
| 392 |
</property> |
| 393 |
</object> |
| 394 |
</child> |
| 395 |
<child> |
| 396 |
<object class="AdwViewStackPage"> |
| 397 |
<property name="name">disks</property> |
| 398 |
<property name="use-underline">True</property> |
| 399 |
<property name="title" translatable="yes">_File Systems</property> |
| 400 |
<property name="icon-name">drive-harddisk-symbolic</property> |
| 401 |
<property name="child"> |
| 402 |
<object class="GsmDisksView" id="disks_view"> |
| 403 |
<property name="hexpand">True</property> |
| 404 |
<property name="vexpand">True</property> |
| 405 |
<property name="margin-bottom">12</property> |
| 406 |
<property name="margin-start">12</property> |
| 407 |
<property name="margin-end">12</property> |
| 408 |
</object> |
| 409 |
</property> |
| 410 |
</object> |
| 411 |
</child> |
| 412 |
</object> |
| 413 |
</property> |
| 414 |
</object> |
| 415 |
</child> |
| 416 |
<style> |
| 417 |
<class name="view" /> |
| 418 |
</style> |
| 419 |
</object> |
| 420 |
</interface> |