howm
howm
howm.h File Reference

howm More...

#include <stdbool.h>
#include <stdint.h>
#include <xcb/xcb.h>
#include <xcb/xcb_ewmh.h>
#include <xcb/xproto.h>
#include "layout.h"
#include "types.h"

Go to the source code of this file.

Data Structures

struct  config
 

Macros

#define VERSION   "0.5.1"
 
#define WM_NAME   "howm"
 
#define CONF_NAME   "howmrc"
 
#define HOWM_PATH   "/usr/bin/howm"
 
#define ENV_SOCK_VAR   "HOWM_SOCK"
 
#define DEF_SOCK_PATH   "/tmp/howm"
 
#define IPC_BUF_SIZE   1024
 
#define WS_DEF_LAYOUT   HSTACK
 
#define MASTER_RATIO   0.6
 
#define DEF_BORDER_FOCUS   "#FFFFFF"
 
#define DEF_BORDER_UNFOCUS   "#333333"
 
#define DEF_BORDER_PREV_FOCUS   "#444444"
 
#define DEF_BORDER_URGENT   "#FF0000"
 
#define GAP   0
 

Enumerations

enum  states { OPERATOR_STATE, COUNT_STATE, MOTION_STATE, END_STATE }
 

Functions

void howm_info (void)
 Print debug information about the current state of howm. More...
 
uint32_t get_colour (char *colour)
 Converts a hexcode colour into an X11 colourmap pixel. More...
 
void quit (const int exit_status)
 Quit howm and set the return value. More...
 
void spawn (char *cmd[])
 Spawns a command. More...
 

Variables

int retval
 
xcb_connection_t * dpy
 
uint16_t screen_height
 
uint16_t screen_width
 
int cur_state
 
unsigned int mon_cnt
 
monitor_tmon
 
monitor_tmon_head
 
monitor_tmon_tail
 
unsigned int workspace_cnt
 
xcb_screen_t * screen
 
xcb_ewmh_connection_t * ewmh
 
bool running
 
struct config conf
 
const char * WM_ATOM_NAMES []
 
xcb_atom_t wm_atoms []
 

Detailed Description

howm

Author
Harvey Hunt
Date
2015

Macro Definition Documentation

#define CONF_NAME   "howmrc"
#define DEF_BORDER_FOCUS   "#FFFFFF"
#define DEF_BORDER_PREV_FOCUS   "#444444"
#define DEF_BORDER_UNFOCUS   "#333333"
#define DEF_BORDER_URGENT   "#FF0000"
#define DEF_SOCK_PATH   "/tmp/howm"
#define ENV_SOCK_VAR   "HOWM_SOCK"
#define GAP   0
#define HOWM_PATH   "/usr/bin/howm"
#define IPC_BUF_SIZE   1024
#define MASTER_RATIO   0.6
#define VERSION   "0.5.1"
#define WM_NAME   "howm"
#define WS_DEF_LAYOUT   HSTACK

Enumeration Type Documentation

enum states
Enumerator
OPERATOR_STATE 
COUNT_STATE 
MOTION_STATE 
END_STATE 

Function Documentation

uint32_t get_colour ( char *  colour)

Converts a hexcode colour into an X11 colourmap pixel.

Parameters
colourA string of the format "#RRGGBB", that will be interpreted as a colour code.
Returns
An X11 colourmap pixel.
void howm_info ( void  )

Print debug information about the current state of howm.

This can be parsed by programs such as scripts that will pipe their input into a status bar.

Variable Documentation

struct config conf
int cur_state
xcb_connection_t* dpy
xcb_ewmh_connection_t* ewmh
monitor_t* mon
unsigned int mon_cnt
monitor_t* mon_head
monitor_t* mon_tail
int retval
bool running
xcb_screen_t* screen
uint16_t screen_height
uint16_t screen_width
const char* WM_ATOM_NAMES[]
xcb_atom_t wm_atoms[]
unsigned int workspace_cnt