add opacity support
This commit is contained in:
parent
4dc5aedbe7
commit
055c0c4797
4
config.h
4
config.h
|
@ -2,6 +2,7 @@
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#define URGENT_ON_BEEP
|
#define URGENT_ON_BEEP
|
||||||
#define DYNAMIC_TITLE
|
#define DYNAMIC_TITLE
|
||||||
|
@ -12,6 +13,9 @@ static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
|
||||||
static const char *url_command = "/usr/bin/firefox";
|
static const char *url_command = "/usr/bin/firefox";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// 0 -> completely transparent, 65535 -> completely opaque
|
||||||
|
static const uint16_t opacity = 65535;
|
||||||
|
|
||||||
static const char *font = "Monospace 9";
|
static const char *font = "Monospace 9";
|
||||||
static const long scrollback_lines = 1000;
|
static const long scrollback_lines = 1000;
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,7 @@ int main(int argc, char **argv) {
|
||||||
vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell);
|
vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell);
|
||||||
vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell);
|
vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell);
|
||||||
vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide);
|
vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide);
|
||||||
|
vte_terminal_set_opacity(VTE_TERMINAL(vte), opacity);
|
||||||
|
|
||||||
// set colors
|
// set colors
|
||||||
GdkColor foreground, background;
|
GdkColor foreground, background;
|
||||||
|
|
Loading…
Reference in New Issue