1
0
Fork 0
forked from wry/wry

autocommit 2022-03-13 23:16:26 CET

This commit is contained in:
Julian Orth 2022-03-13 23:16:26 +01:00
parent a15a02a95c
commit 18806a38fb
13 changed files with 77 additions and 16 deletions

View file

@ -1,13 +1,10 @@
use jay_config::embedded::grab_input_device;
use jay_config::keyboard::mods::{Modifiers, ALT, CTRL, SHIFT};
use jay_config::keyboard::syms::{
SYM_Super_L, SYM_b, SYM_comma, SYM_d, SYM_f, SYM_h, SYM_j, SYM_k, SYM_l, SYM_p, SYM_period,
SYM_q, SYM_r, SYM_t, SYM_v, SYM_y,
};
use jay_config::keyboard::syms::{SYM_Super_L, SYM_b, SYM_comma, SYM_d, SYM_f, SYM_h, SYM_j, SYM_k, SYM_l, SYM_p, SYM_period, SYM_q, SYM_r, SYM_t, SYM_v, SYM_y, SYM_F1, SYM_F9, SYM_F12, SYM_F11, SYM_F10, SYM_F8, SYM_F7, SYM_F6, SYM_F5, SYM_F4, SYM_F3, SYM_F2};
use jay_config::theme::{get_title_height, set_title_color, set_title_height, Color};
use jay_config::Axis::{Horizontal, Vertical};
use jay_config::Direction::{Down, Left, Right, Up};
use jay_config::{config, create_seat, input_devices, on_new_input_device, quit, Command, Seat};
use jay_config::{config, create_seat, input_devices, on_new_input_device, quit, Command, Seat, switch_to_vt};
use rand::Rng;
const MOD: Modifiers = ALT;
@ -71,6 +68,19 @@ fn configure_seat(s: Seat) {
s.bind(MOD | SYM_q, || quit());
s.bind(CTRL | ALT | SYM_F1, || switch_to_vt(1));
s.bind(CTRL | ALT | SYM_F2, || switch_to_vt(2));
s.bind(CTRL | ALT | SYM_F3, || switch_to_vt(3));
s.bind(CTRL | ALT | SYM_F4, || switch_to_vt(4));
s.bind(CTRL | ALT | SYM_F5, || switch_to_vt(5));
s.bind(CTRL | ALT | SYM_F6, || switch_to_vt(6));
s.bind(CTRL | ALT | SYM_F7, || switch_to_vt(7));
s.bind(CTRL | ALT | SYM_F8, || switch_to_vt(8));
s.bind(CTRL | ALT | SYM_F9, || switch_to_vt(9));
s.bind(CTRL | ALT | SYM_F10, || switch_to_vt(10));
s.bind(CTRL | ALT | SYM_F11, || switch_to_vt(11));
s.bind(CTRL | ALT | SYM_F12, || switch_to_vt(12));
fn do_grab(s: Seat, grab: bool) {
for device in s.input_devices() {
log::info!(