howm
howm
op.c File Reference

All of howm's operators are implemented here. More...

#include <string.h>
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#include "client.h"
#include "helper.h"
#include "howm.h"
#include "op.h"
#include "scratchpad.h"
#include "types.h"
#include "workspace.h"

Functions

static void change_gaps (const unsigned int type, unsigned int cnt, int size)
 Does the heavy lifting of changing the gaps of clients. More...
 
void op_kill (const unsigned int type, unsigned int cnt)
 An operator that kills an arbitrary amount of clients or workspaces. More...
 
void op_move_down (const unsigned int type, unsigned int cnt)
 Move client/s down. More...
 
void op_move_up (const unsigned int type, unsigned int cnt)
 Move client/s up. More...
 
void op_focus_up (const unsigned int type, unsigned int cnt)
 Operator function to move the current focus up. More...
 
void op_focus_down (const unsigned int type, unsigned int cnt)
 Operator function to move the current focus down. More...
 
void op_grow_gaps (const unsigned int type, unsigned int cnt)
 An operator to grow the gaps of either workspaces or clients by conf.op_gap_size. More...
 
void op_cut (const unsigned int type, unsigned int cnt)
 Cut one or more clients and add them onto howm's delete register stack (if there is space). More...
 
void op_shrink_gaps (const unsigned int type, unsigned int cnt)
 An operator to shrink the gaps of either workspaces or clients by conf.op_gap_size. More...
 
void count (const unsigned int cnt)
 Set the current count for the current operator. More...
 
void motion (char *target)
 Tell howm which motion is to be performed. More...
 

Variables

static int cur_cnt = 1
 

Detailed Description

All of howm's operators are implemented here.

Author
Harvey Hunt
Date
2015

Function Documentation

static void change_gaps ( const unsigned int  type,
unsigned int  cnt,
int  size 
)
static

Does the heavy lifting of changing the gaps of clients.

Parameters
typeWhether to perform the operation on a client or workspace.
cntThe amount of times to perform the operation.
sizeThe amount of pixels to change the gap size by. This is configured through conf.op_gap_size.

Variable Documentation

int cur_cnt = 1
static