This commit is contained in:
khing 2023-10-23 10:39:57 +08:00
parent 17d5db244b
commit 1133800083
6 changed files with 6 additions and 28 deletions

View File

@ -1,7 +0,0 @@
{
"files.associations": {
"wdisplays.h": "c",
"wayland-client-protocol.h": "c",
"path": "c"
}
}

View File

@ -9,8 +9,12 @@ Compositors that are known to support the protocol are [Sway] and [Wayfire].
The goal of this project is to allow precise adjustment of display settings in
kiosks, digital signage, and other elaborate multi-monitor setups.
<<<<<<< HEAD
![Screenshot](hypr-display.png)
=======
![Screenshot](wdisplays.png)
>>>>>>> parent of 3b923ae (Merge pull request #1 from kRHYME7/Wdisplay_Fx)
# Installation
@ -71,16 +75,8 @@ It's intended to be the Wayland equivalent of an xrandr GUI, like [ARandR].
Sway, like i3, doesn't save any settings unless you put them in the config
file. See man `sway-output`. If you want to have multiple configurations
depending on the monitors connected, you'll need to use an external program
like [kanshi] or [way-displays].
When you apply a new change, the setting will be defaultly added to $HOME/.config/kanshi/config,
if there is already a profile for the same monitors combination, the change will be applied on
existing one.
you can add kanshi autostart to your sway config:
```
exec_always pkill kanshi
exec_always kanshi
```
like [kanshi] or [way-displays]. Integration with that and other external
daemons is planned.
### How do I add support to my compositor?

View File

@ -195,7 +195,6 @@ static void wd_head_form_init(WdHeadForm *form) {
g_menu_append(rotate_menu, "Rotate 180°", "head.rotate(180)");
g_menu_append(rotate_menu, "Rotate 270°", "head.rotate(270)");
gtk_menu_button_set_menu_model(GTK_MENU_BUTTON(priv->rotate_button), G_MENU_MODEL(rotate_menu));
gtk_menu_button_set_use_popover(GTK_MENU_BUTTON(priv->rotate_button), false);
static const GVariantType * const mode_types[] = {
G_VARIANT_TYPE_INT32,
@ -256,7 +255,6 @@ void wd_head_form_update(WdHeadForm *form, const struct wd_head *head,
g_menu_append_item(mode_menu, item);
}
gtk_menu_button_set_menu_model(GTK_MENU_BUTTON(priv->mode_button), G_MENU_MODEL(mode_menu));
gtk_menu_button_set_use_popover(GTK_MENU_BUTTON(priv->mode_button), false);
// Mode entries
int w = head->custom_mode.width;
int h = head->custom_mode.height;

View File

@ -1039,7 +1039,6 @@ static void activate(GtkApplication* app, gpointer user_data) {
g_menu_append(main_menu, "_Show Screen Contents", "app.capture-screens");
g_menu_append(main_menu, "_Overlay Screen Names", "app.show-overlay");
gtk_menu_button_set_menu_model(GTK_MENU_BUTTON(state->menu_button), G_MENU_MODEL(main_menu));
gtk_menu_button_set_use_popover(GTK_MENU_BUTTON(state->menu_button), false);
g_signal_connect(state->info_bar, "response", G_CALLBACK(info_response), state);
/* first child of GtkInfoBar is always GtkRevealer */

View File

@ -20,7 +20,6 @@ executable(
'outputs.c',
'overlay.c',
'render.c',
'store.c',
resources,
],
dependencies : [

View File

@ -28,8 +28,6 @@
#include "wlr-screencopy-unstable-v1-client-protocol.h"
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
extern int store_config(struct wl_list *outputs);
static void noop() {
// This space is intentionally left blank
}
@ -54,11 +52,6 @@ static void config_handle_succeeded(void *data,
struct wd_pending_config *pending = data;
zwlr_output_configuration_v1_destroy(config);
wd_ui_apply_done(pending->state, pending->outputs);
if (store_config(pending->outputs) == 0)
{
wd_ui_show_error(pending->state,
"Change was applied successfully and config was saved.");
}
destroy_pending(pending);
}