autocommit 2022-04-07 17:31:31 CEST
This commit is contained in:
parent
1d33088dba
commit
be32036824
200 changed files with 3267 additions and 2479 deletions
|
|
@ -1,17 +1,26 @@
|
|||
use jay_config::drm::{get_connector, on_connector_connected, on_new_connector};
|
||||
use jay_config::embedded::grab_input_device;
|
||||
use jay_config::input::capability::{CAP_KEYBOARD, CAP_POINTER};
|
||||
use jay_config::input::{create_seat, input_devices, on_new_input_device, InputDevice, Seat};
|
||||
use jay_config::keyboard::mods::{Modifiers, ALT, CTRL, SHIFT};
|
||||
use jay_config::keyboard::syms::{
|
||||
SYM_Super_L, SYM_b, SYM_d, SYM_f, SYM_h, SYM_j, SYM_k, SYM_l, SYM_m, SYM_p, SYM_q, SYM_t,
|
||||
SYM_v, SYM_y, SYM_F1, SYM_F10, SYM_F11, SYM_F12, SYM_F13, SYM_F14, SYM_F15, SYM_F16, SYM_F17,
|
||||
SYM_F18, SYM_F19, SYM_F2, SYM_F20, SYM_F21, SYM_F22, SYM_F23, SYM_F24, SYM_F25, SYM_F3, SYM_F4,
|
||||
SYM_F5, SYM_F6, SYM_F7, SYM_F8, SYM_F9,
|
||||
use jay_config::{
|
||||
config,
|
||||
drm::{get_connector, on_connector_connected, on_new_connector},
|
||||
embedded::grab_input_device,
|
||||
get_workspace,
|
||||
input::{
|
||||
capability::{CAP_KEYBOARD, CAP_POINTER},
|
||||
create_seat, input_devices, on_new_input_device, InputDevice, Seat,
|
||||
},
|
||||
keyboard::{
|
||||
mods::{Modifiers, ALT, CTRL, SHIFT},
|
||||
syms::{
|
||||
SYM_Super_L, SYM_b, SYM_d, SYM_f, SYM_h, SYM_j, SYM_k, SYM_l, SYM_m, SYM_p, SYM_q,
|
||||
SYM_t, SYM_v, SYM_y, SYM_F1, SYM_F10, SYM_F11, SYM_F12, SYM_F13, SYM_F14, SYM_F15,
|
||||
SYM_F16, SYM_F17, SYM_F18, SYM_F19, SYM_F2, SYM_F20, SYM_F21, SYM_F22, SYM_F23,
|
||||
SYM_F24, SYM_F25, SYM_F3, SYM_F4, SYM_F5, SYM_F6, SYM_F7, SYM_F8, SYM_F9,
|
||||
},
|
||||
},
|
||||
quit, switch_to_vt,
|
||||
Axis::{Horizontal, Vertical},
|
||||
Command,
|
||||
Direction::{Down, Left, Right, Up},
|
||||
};
|
||||
use jay_config::Axis::{Horizontal, Vertical};
|
||||
use jay_config::Direction::{Down, Left, Right, Up};
|
||||
use jay_config::{config, get_workspace, quit, switch_to_vt, Command};
|
||||
|
||||
const MOD: Modifiers = ALT;
|
||||
|
||||
|
|
@ -95,7 +104,7 @@ pub fn configure() {
|
|||
input_devices().into_iter().for_each(handle_input_device);
|
||||
on_new_input_device(handle_input_device);
|
||||
|
||||
let connectors_changed = || {
|
||||
let handle_connectors_changed = || {
|
||||
let left = get_connector("HDMI-A-1");
|
||||
let right = get_connector("DP-1");
|
||||
if left.connected() && right.connected() {
|
||||
|
|
@ -103,9 +112,9 @@ pub fn configure() {
|
|||
right.set_position(left.width(), 0);
|
||||
}
|
||||
};
|
||||
on_new_connector(move |_| connectors_changed());
|
||||
on_connector_connected(move |_| connectors_changed());
|
||||
connectors_changed();
|
||||
on_new_connector(move |_| handle_connectors_changed());
|
||||
on_connector_connected(move |_| handle_connectors_changed());
|
||||
handle_connectors_changed();
|
||||
}
|
||||
|
||||
config!(configure);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue