[{"data":1,"prerenderedAt":103},["ShallowReactive",2],{"blog-\u002Fblog\u002Fgnome-screensaver-language-switch-simple-workaround":3},{"id":4,"title":5,"body":6,"date":90,"description":91,"extension":92,"image":34,"meta":93,"navigation":94,"path":95,"seo":96,"stem":97,"tags":98,"__hash__":102},"blog\u002Fblog\u002Fgnome-screensaver-language-switch-simple-workaround.md","Gnome Screensaver Language Switch simple workaround",{"type":7,"value":8,"toc":84},"minimark",[9,13,18,21,25,28,35,63,66,69,74,81],[10,11,12],"p",{},"After installing Budgie desktop on my Debian machine I am unable to switch between languages using Alt+Shift Key on the lock screen. The Keys combination works perfectly on the Desktop environment but if I lock my device with the wrong Language (Greek\u002FEnglish Layouts) I get locked out of.",[14,15,17],"h2",{"id":16},"dirty-workaround","Dirty workaround",[10,19,20],{},"The first idea was to just kill gnome-screensaver through tty something that helps me to pass through lock screen but keeps turning off the screen after a minute or two of idle.",[14,22,24],{"id":23},"workaround","Workaround",[10,26,27],{},"So the next solution was to change the Language layout through tty.",[10,29,30],{},[31,32],"img",{"alt":33,"src":34},"fix_screensaver","\u002Fimages\u002Fblog\u002Fgnome-screensaver-language-switch-simple-workaround\u002Ffix_screensaver.png",[36,37,38],"ol",{},[39,40,41],"li",{},[36,42,43,46,56],{},[39,44,45],{},"Open up a tty console (Ctrl + Alt +  F3)",[39,47,48,49,52],{},"Then we have to change our display and Xauthority for the running X Server using this command:",[50,51],"br",{},[53,54,55],"code",{},"export XAUTHORITY=\u002Fhome\u002F$USER\u002F.Xauthority && export DISPLAY=:0",[39,57,58,59,62],{},"And lastly, switch to our preferred language using: ",[53,60,61],{},"setxkbmap us"," (my password is in English that's why I used 'us')",[10,64,65],{},"Too bored to run all these commands every time?",[10,67,68],{},"Edit .bashrc file stored in your home directory and add an alias like so:",[10,70,71],{},[53,72,73],{},"alias fixme='export XAUTHORITY=\u002Fhome\u002F$USER\u002F.Xauthority && export DISPLAY=:0 && setxkbmap us'",[10,75,76,77,80],{},"(If you want to try it out without restart type ",[53,78,79],{},"source .bashrc"," )",[10,82,83],{},"This just a quick workaround just to be able to login. The best solution would be to patch gnome-screensaver but didn't have the time to patch it. I'll update this post if I find a \"correct solution\".",{"title":85,"searchDepth":86,"depth":86,"links":87},"",2,[88,89],{"id":16,"depth":86,"text":17},{"id":23,"depth":86,"text":24},"2018-07-20","After installing Budgie desktop on my Debian machine I am unable to switch between languages using Alt+Shift Key on the lock screen. The Keys combination works ","md",{},true,"\u002Fblog\u002Fgnome-screensaver-language-switch-simple-workaround",{"title":5,"description":91},"blog\u002Fgnome-screensaver-language-switch-simple-workaround",[99,100,101],"debian","gnome","screensaver","JF2m500wOgSOPRFmoFY3y98rcW3AfX-gl3kXK4TXo1k",1785393037011]