diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 16:35:36 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 16:35:36 +0200 |
| commit | 893e4ab58fce2918480501f999313000b6de6249 (patch) | |
| tree | bd3d588210ef2aa56434fbf94adfc6f333311b84 /glitch.h | |
| parent | 91fe87974e8c0d02b230fb1218905920154f5af5 (diff) | |
| download | glitch-893e4ab58fce2918480501f999313000b6de6249.tar.gz | |
Add tiling and floating mode
Diffstat (limited to 'glitch.h')
| -rw-r--r-- | glitch.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -32,6 +32,11 @@ typedef enum { LOG_ERROR, } LogLevel; +typedef enum { + LAYOUT_FLOATING, + LAYOUT_TILING, +} LayoutMode; + typedef struct { unsigned long normal_active; unsigned long normal_inactive; @@ -77,16 +82,23 @@ typedef struct { XftColor xft_mic_muted_bg; XftColor xft_mic_active_fg; XftColor xft_mic_muted_fg; - + XftColor xft_layout_tile_bg; + XftColor xft_layout_float_bg; + XftColor xft_layout_tile_fg; + XftColor xft_layout_float_fg; + unsigned long last_widget_update; Client *clients; - + int is_cycling; Window cycle_win; Window *cycle_clients; int cycle_count; int active_cycle_index; + // Layout management + LayoutMode layout_modes[NUM_DESKTOPS + 1]; // 1-indexed for convenience + // PulseAudio pa_threaded_mainloop *pa_mainloop; pa_context *pa_ctx; @@ -172,10 +184,14 @@ void center_window(const Arg *arg); void widget_desktop_indicator(void); void widget_datetime(void); void widget_mic_indicator(void); +void widget_layout_indicator(void); void redraw_widgets(void); void init_audio(void); void deinit_audio(void); void toggle_mic_mute(const Arg *arg); +void apply_tiling_layout(void); +void toggle_layout(const Arg *arg); + #endif // GLITCH_H |
