I want to created a shortcut for locking my screen. Normally I lock my screen by typing the following in the terminal
i3lock -c 000000I try adding to my config file by doing following but nothing works
- copy copy
/etc/i3/configto~/.i3/config $ vim .i3/config- scroll down and add following line to file:
bindsym Mod1+l i3lock -c 000000. I also tried variants such asbindsym Mod1+l exec i3lock -c 000000andbindsym Mod1+l exec "i3lock -c 000000" - Save file
- Reload i3 with
Mod1+Shift+R - Try login out with shortcut
Mod1+lbut it doesn't work. In factMod1+lsimply change focus of my window to another window.
1 Answer
It turns out in addition to having the ~/.i3/config file, I also had a ~/.config/i3/config file. So even though I was editing ~/.i3/config, the system was not seeing my changes. So I went ahead and deleted ~/.config/i3/config. Now it works fine.