3 ms·
They're using sway/i3. I don't understand why they're doing it like that when sway/i3 already has support for modes. They could have just done something like t
by jolmg 6y ago
They're using sway/i3. I don't understand why they're doing it like that when sway/i3 already has support for modes.
They could have just done something like this in the sway/i3 config:
mode "normal" {
bindsym i mode "default"
bindsym q kill
bindsym y exec volchange -5
bindsym u exec volchange +5
bindsym o exec brightness -200
bindsym p exec brightness +200
bindsym w exec mpc prev
bindsym e exec mpc toggle
bindsym r exec mpc next
...
}
bindsym $mod+c mode "normal"
EDIT: I've realized their method has the benefit of working with other window managers that don't support modes or on-the-fly reconfiguration.