File: bspwm.hpp

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (30 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "common.hpp"
#include "utils/restack.hpp"
#include "utils/socket.hpp"

POLYBAR_NS

class connection;

namespace bspwm_util {
using connection_t = unique_ptr<socket_util::unix_connection>;

struct payload {
  char data[BUFSIZ]{'\0'};
  size_t len = 0;
};

using payload_t = unique_ptr<payload>;

restack_util::params get_restack_params(connection& conn);

string get_socket_path();

payload_t make_payload(const string& cmd);
connection_t make_connection();
connection_t make_subscriber();
} // namespace bspwm_util

POLYBAR_NS_END