-
Notifications
You must be signed in to change notification settings - Fork 0
/
bar.h
54 lines (36 loc) · 1.28 KB
/
bar.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include "nwm.h"
// apply systray to selected monitor
Monitor* systraytomon(Monitor* mon);
// draw status bar (with pretty colors ^-^)
int drawstatusbar(Monitor* mon, unsigned barh, char* stext, unsigned statusw);
// draw a status bar on a monitor
extern void drawbar(Monitor* mon);
// draw all status bars on all monitors
extern void drawbars(void);
// update status in bar
extern void updatestatus(void);
// update all the bars
extern void updatebars(void);
// update position of the bar
extern void updatebarpos(Monitor* mon);
// update position of the tab bar
extern void updatetabspos(Monitor* mon);
// resize bar window
extern void resizebarwin(Monitor* mon);
// draw a tabs on a monitors
extern void drawtab(Monitor* mon);
// draw all tabs on all monitors
extern void drawtabs(void);
// get width of systray
extern unsigned getsystraywidth();
// update geometry of systray icons
extern void updatesystrayicongeom(Client* icon, unsigned w, unsigned h);
// update states of systray icons
extern void updatesystrayiconstate(Client* icon, XPropertyEvent* ev);
// update systray
extern void updatesystray(void);
// gets a systray icon client from its window
extern Client* wintosystrayicon(Window win);
// remove system tray icon
extern void removesystrayicon(Client* icon);