1
0
Fork 0
forked from wry/wry

autocommit 2022-04-17 17:59:45 CEST

This commit is contained in:
Julian Orth 2022-04-17 17:59:45 +02:00
parent a30306e3d5
commit 1eb0d3e173
21 changed files with 392 additions and 87 deletions

View file

@ -12,10 +12,11 @@ use {
keyboard::{
mods::{Modifiers, ALT, CTRL, SHIFT},
syms::{
SYM_Super_L, SYM_b, SYM_c, 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,
SYM_Super_L, SYM_a, SYM_b, SYM_c, SYM_d, SYM_e, SYM_f, SYM_h, SYM_j, SYM_k, SYM_l,
SYM_m, SYM_o, 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, set_env,
@ -27,7 +28,6 @@ use {
},
std::time::Duration,
};
use jay_config::keyboard::syms::{SYM_a, SYM_e, SYM_o};
const MOD: Modifiers = ALT;
@ -78,9 +78,15 @@ fn configure_seat(s: Seat) {
s.bind(MOD | sym, move || s.show_workspace(ws));
}
s.bind(MOD | SYM_a, || Command::new("spotify-remote").arg("a").spawn());
s.bind(MOD | SYM_o, || Command::new("spotify-remote").arg("o").spawn());
s.bind(MOD | SYM_e, || Command::new("spotify-remote").arg("e").spawn());
s.bind(MOD | SYM_a, || {
Command::new("spotify-remote").arg("a").spawn()
});
s.bind(MOD | SYM_o, || {
Command::new("spotify-remote").arg("o").spawn()
});
s.bind(MOD | SYM_e, || {
Command::new("spotify-remote").arg("e").spawn()
});
fn do_grab(s: Seat, grab: bool) {
for device in s.input_devices() {