rebase send-shortcut

This commit is contained in:
elviosak 2026-04-29 20:22:56 -03:00
commit 13a487fb35
24 changed files with 256 additions and 44 deletions

View file

@ -88,21 +88,21 @@ static struct key_combos {
.action = "Execute",
.attributes[0] = {
.name = "command",
.value = "amixer sset Master 5%-",
.value = "pactl set-sink-volume @DEFAULT_SINK@ -5%",
},
}, {
.binding = "XF86AudioRaiseVolume",
.action = "Execute",
.attributes[0] = {
.name = "command",
.value = "amixer sset Master 5%+",
.value = "pactl set-sink-volume @DEFAULT_SINK@ +5%",
},
}, {
.binding = "XF86AudioMute",
.action = "Execute",
.attributes[0] = {
.name = "command",
.value = "amixer sset Master toggle",
.value = "pactl set-sink-mute @DEFAULT_SINK@ toggle",
},
}, {
.binding = "XF86MonBrightnessUp",

View file

@ -31,6 +31,7 @@ struct libinput_category {
int dwt; /* -1 or libinput_config_dwt_state */
int click_method; /* -1 or libinput_config_click_method */
int scroll_method; /* -1 or libinput_config_scroll_method */
int scroll_button; /* -1 or a button from linux/input_event_codes.h */
int send_events_mode; /* -1 or libinput_config_send_events_mode */
bool have_calibration_matrix;
double scroll_factor;

View file

@ -90,6 +90,7 @@ struct rcxml {
bool focus_follow_mouse;
bool focus_follow_mouse_requires_movement;
bool raise_on_focus;
uint32_t raise_on_focus_delay_ms;
/* theme */
char *theme_name;

View file

@ -150,6 +150,11 @@ struct seat {
struct server {
struct wl_display *wl_display;
struct wl_event_loop *wl_event_loop; /* Can be used for timer events */
/* Pending auto-raise timer (used when rc.raise_on_focus_delay_ms > 0) */
struct view *pending_auto_raise_view;
struct wl_event_source *pending_auto_raise_timer;
struct wlr_renderer *renderer;
struct wlr_allocator *allocator;
struct wlr_backend *backend;
@ -343,6 +348,13 @@ void xdg_shell_finish(void);
*/
void desktop_focus_view(struct view *view, bool raise);
/**
* desktop_cancel_pending_auto_raise() - cancel any pending delayed auto-raise
* (from raiseOnFocusDelay). Called when a view is being destroyed, on config
* reload, or when a new focus change with raise=false supersedes the pending.
*/
void desktop_cancel_pending_auto_raise(void);
/**
* desktop_focus_view_or_surface() - like desktop_focus_view() but can
* also focus other (e.g. xwayland-unmanaged) surfaces