diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 18:35:41 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 18:35:41 +0200 |
| commit | 6330c2827935a67ee03f18baf9cf4a7a77684760 (patch) | |
| tree | 36f454ff7c8de804987b1b4af21272ca7363d005 /glitch.h | |
| parent | f214499d3d5be0bc3582f8de5d2567b8767fef87 (diff) | |
| download | glitch-6330c2827935a67ee03f18baf9cf4a7a77684760.tar.gz | |
Merged rofi launcher alternative
Diffstat (limited to 'glitch.h')
| -rw-r--r-- | glitch.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -56,6 +56,11 @@ typedef struct Client { } Client; typedef struct { + char *name; + char *exec; +} LauncherItem; + +typedef struct { Display *dpy; Window root; Window active; @@ -76,6 +81,7 @@ typedef struct { unsigned int current_desktop; XftFont *font; + XftFont *launcher_font; XftDraw *xft_draw; XftColor xft_color; XftColor xft_bg_color; @@ -90,6 +96,12 @@ typedef struct { XftColor xft_layout_tile_fg; XftColor xft_layout_float_fg; + XftColor xft_launcher_bg; + XftColor xft_launcher_border; + XftColor xft_launcher_fg; + XftColor xft_launcher_hl_bg; + XftColor xft_launcher_hl_fg; + unsigned long last_widget_update; Client *clients; @@ -106,6 +118,16 @@ typedef struct { pa_threaded_mainloop *pa_mainloop; pa_context *pa_ctx; int mic_muted; + + // Launcher + int launcher_active; + Window launcher_win; + LauncherItem *launcher_items; + int launcher_items_count; + LauncherItem **launcher_filtered; + int launcher_filtered_count; + char launcher_search[256]; + int launcher_selected; } WindowManager; typedef struct { @@ -197,4 +219,8 @@ void toggle_mic_mute(const Arg *arg); void apply_tiling_layout(void); void toggle_layout(const Arg *arg); +void toggle_launcher(const Arg *arg); +void launcher_handle_key(void); +void launcher_draw(void); + #endif // GLITCH_H |
