diff options
Diffstat (limited to 'glitch.h')
| -rw-r--r-- | glitch.h | 20 |
1 files changed, 18 insertions, 2 deletions
| @@ -32,6 +32,11 @@ typedef enum { | |||
| 32 | LOG_ERROR, | 32 | LOG_ERROR, |
| 33 | } LogLevel; | 33 | } LogLevel; |
| 34 | 34 | ||
| 35 | typedef enum { | ||
| 36 | LAYOUT_FLOATING, | ||
| 37 | LAYOUT_TILING, | ||
| 38 | } LayoutMode; | ||
| 39 | |||
| 35 | typedef struct { | 40 | typedef struct { |
| 36 | unsigned long normal_active; | 41 | unsigned long normal_active; |
| 37 | unsigned long normal_inactive; | 42 | unsigned long normal_inactive; |
| @@ -77,16 +82,23 @@ typedef struct { | |||
| 77 | XftColor xft_mic_muted_bg; | 82 | XftColor xft_mic_muted_bg; |
| 78 | XftColor xft_mic_active_fg; | 83 | XftColor xft_mic_active_fg; |
| 79 | XftColor xft_mic_muted_fg; | 84 | XftColor xft_mic_muted_fg; |
| 80 | 85 | XftColor xft_layout_tile_bg; | |
| 86 | XftColor xft_layout_float_bg; | ||
| 87 | XftColor xft_layout_tile_fg; | ||
| 88 | XftColor xft_layout_float_fg; | ||
| 89 | |||
| 81 | unsigned long last_widget_update; | 90 | unsigned long last_widget_update; |
| 82 | Client *clients; | 91 | Client *clients; |
| 83 | 92 | ||
| 84 | int is_cycling; | 93 | int is_cycling; |
| 85 | Window cycle_win; | 94 | Window cycle_win; |
| 86 | Window *cycle_clients; | 95 | Window *cycle_clients; |
| 87 | int cycle_count; | 96 | int cycle_count; |
| 88 | int active_cycle_index; | 97 | int active_cycle_index; |
| 89 | 98 | ||
| 99 | // Layout management | ||
| 100 | LayoutMode layout_modes[NUM_DESKTOPS + 1]; // 1-indexed for convenience | ||
| 101 | |||
| 90 | // PulseAudio | 102 | // PulseAudio |
| 91 | pa_threaded_mainloop *pa_mainloop; | 103 | pa_threaded_mainloop *pa_mainloop; |
| 92 | pa_context *pa_ctx; | 104 | pa_context *pa_ctx; |
| @@ -172,10 +184,14 @@ void center_window(const Arg *arg); | |||
| 172 | void widget_desktop_indicator(void); | 184 | void widget_desktop_indicator(void); |
| 173 | void widget_datetime(void); | 185 | void widget_datetime(void); |
| 174 | void widget_mic_indicator(void); | 186 | void widget_mic_indicator(void); |
| 187 | void widget_layout_indicator(void); | ||
| 175 | void redraw_widgets(void); | 188 | void redraw_widgets(void); |
| 176 | 189 | ||
| 177 | void init_audio(void); | 190 | void init_audio(void); |
| 178 | void deinit_audio(void); | 191 | void deinit_audio(void); |
| 179 | void toggle_mic_mute(const Arg *arg); | 192 | void toggle_mic_mute(const Arg *arg); |
| 180 | 193 | ||
| 194 | void apply_tiling_layout(void); | ||
| 195 | void toggle_layout(const Arg *arg); | ||
| 196 | |||
| 181 | #endif // GLITCH_H | 197 | #endif // GLITCH_H |
