wlmaker
Loading...
Searching...
No Matches
wlmaker.c File Reference
#include <libbase/libbase.h>
#include <wlr/util/log.h>
#include <limits.h>
#include <regex.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include "clip.h"
#include "dock.h"
#include "server.h"
#include "task_list.h"
Include dependency graph for wlmaker.c:

Macros

#define _POSIX_C_SOURCE   200112L
 setenv() is a POSIX extension.
 

Functions

static void wlr_to_bs_log (enum wlr_log_importance importance, const char *fmt, va_list args)
 
void handle_quit (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void new_terminal (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void prev_workspace (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void next_workspace (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void lower_view (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void raise_view (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void toggle_fullscreen (wlmaker_server_t *server_ptr, void *arg_ptr)
 
void toggle_maximize (wlmaker_server_t *server_ptr, void *arg_ptr)
 
int main (int argc, char *argv[])
 

Variables

static const char * autostarted_commands []
 
static regex_t wlmaker_wlr_log_regex
 
static const char * wlmaker_wlr_log_regex_string
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ handle_quit()

void handle_quit ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Quits the server.

◆ lower_view()

void lower_view ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Lowers the currently-active view, if any.

◆ main()

int main ( int argc,
char * argv[] )

The main program.

◆ new_terminal()

void new_terminal ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Creates a new terminal.

◆ next_workspace()

void next_workspace ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Switches to next workspace.

◆ prev_workspace()

void prev_workspace ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Switches to previous workspace.

◆ raise_view()

void raise_view ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Raises the currently-active view, if any.

◆ toggle_fullscreen()

void toggle_fullscreen ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Toggles fullscreen view for the activated view.

◆ toggle_maximize()

void toggle_maximize ( wlmaker_server_t * server_ptr,
void * arg_ptr )

Toggles maximization for the activated view.

◆ wlr_to_bs_log()

static void wlr_to_bs_log ( enum wlr_log_importance importance,
const char * fmt,
va_list args )
static

Wraps the wlr_log calls on bs_log.

Parameters
importance
fmt
args

Variable Documentation

◆ autostarted_commands

const char* autostarted_commands[]
static
Initial value:
= {
"/usr/bin/foot",
NULL
}

Set of commands to be executed on startup.

◆ wlmaker_wlr_log_regex

regex_t wlmaker_wlr_log_regex
static

Compiled regular expression for extracting file & line no. from wlr_log.

◆ wlmaker_wlr_log_regex_string

const char* wlmaker_wlr_log_regex_string
static
Initial value:
=
"^\\[([^\\:]+)\\:([0-9]+)\\]\\ "

Regular expression string for extracting file & line no. from wlr_log.