lightdm-webkit2-theme-glorious icon indicating copy to clipboard operation
lightdm-webkit2-theme-glorious copied to clipboard

Missing option to disable swipe gesture

Open williamblyrk opened this issue 3 years ago • 6 comments

When you use the desktop, it's quite annoying to swipe with the mouse pointer/cursor, so, could you add a way to disable this and going directly to the password area?

williamblyrk avatar Mar 27 '21 23:03 williamblyrk

You can just click on animated arrows to lift up that screen. But yeah removing that screen or having an option to remove it by let's say pressing enter would be nice.

Gendo300 avatar Apr 16 '21 17:04 Gendo300

I fixed this on mine by doing the following: On the main file index.html the main div has the id of screen-greeter and the swipe thingy is defined at js/greeter.js (I think) as this._arrowIndicatorGreeter = document.querySelector('#arrow-indicator-greeter'); with the action being defined at this._arrowIndicatorClickEvent();. You could add an event listener to the this._screenGreeter defined at the constructor. for example: js this._screenGreeter.addEventListener('keyPress', (e) => { if (e.keyCode == 'Enter') this._hideGreeter() }). Remeber to try it on a browser first :)

matthmr avatar Oct 01 '21 10:10 matthmr

In /usr/share/lightdm-webkit/themes/glorious/css/screens.css search

#screen-greeter.screen {
        top: 0;
        position: fixed;
        pointer-events: unset;
        transition: all var(--global-animation-speed);
}

and add display: none !important; to disable swipe screen

red-gecko27 avatar Nov 20 '21 13:11 red-gecko27

I fixed this on mine by doing the following: On the main file index.html the main div has the id of screen-greeter and the swipe thingy is defined at js/greeter.js (I think) as this._arrowIndicatorGreeter = document.querySelector('#arrow-indicator-greeter'); with the action being defined at this._arrowIndicatorClickEvent();. You could add an event listener to the this._screenGreeter defined at the constructor. for example: js this._screenGreeter.addEventListener('keyPress', (e) => { if (e.keyCode == 'Enter') this._hideGreeter() }). Remeber to try it on a browser first :)

I cant get this to work... Can you help me get it working?

sheeepdev avatar Dec 16 '21 20:12 sheeepdev

I fixed this on mine by doing the following: On the main file index.html the main div has the id of screen-greeter and the swipe thingy is defined at js/greeter.js (I think) as this._arrowIndicatorGreeter = document.querySelector('#arrow-indicator-greeter'); with the action being defined at this._arrowIndicatorClickEvent();. You could add an event listener to the this._screenGreeter defined at the constructor. for example: js this._screenGreeter.addEventListener('keyPress', (e) => { if (e.keyCode == 'Enter') this._hideGreeter() }). Remeber to try it on a browser first :)

I cant get this to work... Can you help me get it working?

in greeter.js, after the class declaration:

document.addEventListener ('keypress', (event) => {
  const greeter = new GreeterScreen()
  if (event.key == 'Enter')  {
  greeter._hideGreeter();
  };
});

nodgear avatar Dec 17 '21 07:12 nodgear

In /usr/share/lightdm-webkit/themes/glorious/css/screens.css search

#screen-greeter.screen {
        top: 0;
        position: fixed;
        pointer-events: unset;
        transition: all var(--global-animation-speed);
}

and add display: none !important; to disable swipe screen

It'd be nice to be able to disable this in a config instead of the actual code

lucasvianav avatar Jan 10 '22 22:01 lucasvianav